Skip to content

Commit

Permalink
rename okr-health to okr-quality (#41862)
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren authored Jul 24, 2024
1 parent 49bab1a commit 2a7153c
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 138 deletions.
124 changes: 62 additions & 62 deletions .github/policies/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,69 +6,69 @@ resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description: Label doc-bug issues with okr-health (scheduled search)
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: doc-bug
- isNotLabeledWith:
label: okr-health
actions:
- addLabel:
label: okr-health
resourceManagementConfiguration:
scheduledSearches:
- description: Label doc-bug issues with okr-quality (scheduled search)
frequencies:
- hourly:
hour: 3
filters:
- isIssue
- isOpen
- hasLabel:
label: doc-bug
- isNotLabeledWith:
label: okr-quality
actions:
- addLabel:
label: okr-quality

eventResponderTasks:
- description: Add in-pr label to issues
if:
- payloadType: Pull_Request
then:
- inPrLabel:
label: in-pr
eventResponderTasks:
- description: Add in-pr label to issues
if:
- payloadType: Pull_Request
then:
- inPrLabel:
label: in-pr

- description: Synchronize OKR and release labels from PRs to closing issues
if:
- payloadType: Pull_Request
then:
- labelSync:
pattern: okr-
- labelSync:
pattern: ':checkered_flag: Release'
- description: Synchronize OKR and release labels from PRs to closing issues
if:
- payloadType: Pull_Request
then:
- labelSync:
pattern: okr-
- labelSync:
pattern: ":checkered_flag: Release"

- description: Label issues with okr-freshness (event-based)
if:
- payloadType: Issues
- or:
- titleContains:
pattern: freshness
isRegex: False
- titleContains:
pattern: out( |-)of( |-)date
isRegex: True
- titleContains:
pattern: stale
isRegex: False
then:
- addLabel:
label: okr-freshness
- description: Label issues with okr-freshness (event-based)
if:
- payloadType: Issues
- or:
- titleContains:
pattern: freshness
isRegex: False
- titleContains:
pattern: out( |-)of( |-)date
isRegex: True
- titleContains:
pattern: stale
isRegex: False
then:
- addLabel:
label: okr-freshness

- description: Label typo issues
if:
- payloadType: Issues
- isAction:
action: Opened
- titleContains:
pattern: (T|t)ypo
isRegex: True
then:
- addLabel:
label: doc-bug
- addLabel:
label: help wanted
- addLabel:
label: good first issue
- description: Label typo issues
if:
- payloadType: Issues
- isAction:
action: Opened
- titleContains:
pattern: (T|t)ypo
isRegex: True
then:
- addLabel:
label: doc-bug
- addLabel:
label: help wanted
- addLabel:
label: good first issue
150 changes: 75 additions & 75 deletions .github/policies/label-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,82 +8,82 @@ where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Label community PRs
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- and:
- not:
activitySenderHasPermission:
permission: Admin
- not:
activitySenderHasPermission:
permission: Write
- not:
isActivitySender:
user: github-actions[bot]
- not:
isActivitySender:
user: github-actions
- not:
isActivitySender:
user: azure-sdk
- not:
isActivitySender:
user: dependabot
then:
- addLabel:
label: community-contribution
- description: Label community PRs
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- and:
- not:
activitySenderHasPermission:
permission: Admin
- not:
activitySenderHasPermission:
permission: Write
- not:
isActivitySender:
user: github-actions[bot]
- not:
isActivitySender:
user: github-actions
- not:
isActivitySender:
user: azure-sdk
- not:
isActivitySender:
user: dependabot
then:
- addLabel:
label: community-contribution

- description: Label publish PRs from the dotnet-policy-service bot
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- isActivitySender:
user: dotnet-policy-service[bot]
- titleContains:
pattern: Merge main into live
isRegex: False
then:
- addLabel:
label: ':octocat: auto-merge'
- description: Label publish PRs from the dotnet-policy-service bot
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- isActivitySender:
user: dotnet-policy-service[bot]
- titleContains:
pattern: Merge main into live
isRegex: False
then:
- addLabel:
label: ":octocat: auto-merge"

- description: Label PRs from the Azure SDK bot
if:
- payloadType: Pull_Request
- isActivitySender:
user: azure-sdk
then:
- addLabel:
label: ':octocat: auto-merge'
- description: Label PRs from the Azure SDK bot
if:
- payloadType: Pull_Request
- isActivitySender:
user: azure-sdk
then:
- addLabel:
label: ":octocat: auto-merge"

- description: Label PRs with okr-health
if:
- payloadType: Pull_Request
- or:
- titleContains:
pattern: build warning
isRegex: False
- bodyContains:
pattern: build warning
isRegex: False
then:
- addLabel:
label: okr-health
- description: Label PRs with okr-quality
if:
- payloadType: Pull_Request
- or:
- titleContains:
pattern: build warning
isRegex: False
- bodyContains:
pattern: build warning
isRegex: False
then:
- addLabel:
label: okr-quality

- description: Label PRs with okr-freshness
if:
- payloadType: Pull_Request
- or:
- titleContains:
pattern: freshness
isRegex: False
- bodyContains:
pattern: freshness
isRegex: False
then:
- addLabel:
label: okr-freshness
- description: Label PRs with okr-freshness
if:
- payloadType: Pull_Request
- or:
- titleContains:
pattern: freshness
isRegex: False
- bodyContains:
pattern: freshness
isRegex: False
then:
- addLabel:
label: okr-freshness
2 changes: 1 addition & 1 deletion quest-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ParentNodeId": 233465
},
{
"Label": "okr-health",
"Label": "okr-quality",
"ParentNodeId": 237266
},
{
Expand Down

0 comments on commit 2a7153c

Please sign in to comment.