Skip to content

Commit

Permalink
Merge pull request #540 from MicrosoftDocs/localden/policy-fixes
Browse files Browse the repository at this point in the history
Update auto-label-pr.yml
  • Loading branch information
localden authored Nov 1, 2024
2 parents 4dfa2a0 + b18ec05 commit 8e942a9
Showing 1 changed file with 28 additions and 72 deletions.
100 changes: 28 additions & 72 deletions .github/policies/auto-label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,75 +8,31 @@ 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
- not:
isActivitySender:
user: microsoft-github-policy-service[bot]
then:
- addLabel:
label: community-contribution

- description: Label ref docs sync PRs from the microsoft-github-policy-service bot
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- isActivitySender:
user: microsoft-github-policy-service[bot]
- titleContains:
pattern: Merge smoke-test into main
isRegex: False
then:
- addLabel:
label: ":octocat: auto-merge"

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

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

0 comments on commit 8e942a9

Please sign in to comment.