diff --git a/.github/policies/label-issues.yml b/.github/policies/label-issues.yml index 924aab319b7bc..30da739ecc93d 100644 --- a/.github/policies/label-issues.yml +++ b/.github/policies/label-issues.yml @@ -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) diff --git a/.github/policies/label-prs.yml b/.github/policies/label-prs.yml index 1aa8d47955293..32bf209a354c3 100644 --- a/.github/policies/label-prs.yml +++ b/.github/policies/label-prs.yml @@ -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