Skip to content

Commit

Permalink
update policies per label updates (dotnet#40300)
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren authored Apr 3, 2024
1 parent f9d5748 commit 210ec65
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/policies/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,16 @@ configuration:
- if:
- payloadType: Issues
- or:
- hasLabel:
label: doc-bug
- titleContains:
pattern: freshness
isRegex: False
- titleContains:
pattern: out( |-)of( |-)date
isRegex: True
- titleContains:
pattern: stale
isRegex: False
then:
- addLabel:
label: okr-health
description: Label issues with okr-health (event-based)
label: okr-freshness
description: Label issues with okr-freshness (event-based)
14 changes: 12 additions & 2 deletions .github/policies/label-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,20 @@ configuration:
- bodyContains:
pattern: build warning
isRegex: False
then:
- addLabel:
label: okr-health
description: Label PRs with okr-health
- if:
- payloadType: Pull_Request
- or:
- titleContains:
pattern: freshness
isRegex: False
- bodyContains:
pattern: freshness
isRegex: False
then:
- addLabel:
label: okr-health
description: Label PRs with okr-health
label: okr-freshness
description: Label PRs with okr-freshness

0 comments on commit 210ec65

Please sign in to comment.