Skip to content

Commit

Permalink
tweak policies to try and fix the scheduled PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren committed May 23, 2024
1 parent 99bb2d3 commit 24b2bd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
2 changes: 0 additions & 2 deletions .github/policies/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ configuration:
- enableAutoMerge:
mergeMethod: Squash
- description: Auto-merge PRs to live with title "Merge main into live"
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
- isAction:
Expand All @@ -34,7 +33,6 @@ configuration:
- enableAutoMerge:
mergeMethod: Merge
- description: Auto-merge PRs to live labeled with auto-merge
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
- labelAdded:
Expand Down
12 changes: 0 additions & 12 deletions .github/policies/label-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ configuration:
comment: "Approved; this PR will merge when all status checks pass."
- addLabel:
label: ':octocat: auto-merge'
- description: Label PRs from Dotnet Policy Service
if:
- payloadType: Pull_Request
- isActivitySender:
user: dotnet-policy-service
issueAuthor: False
then:
- approvePullRequest:
comment: "Approved; this PR will merge when all status checks pass."
- addLabel:
label: ':octocat: auto-merge'
triggerOnOwnActions: true
- description: Label PRs with okr-health
if:
- payloadType: Pull_Request
Expand Down
8 changes: 3 additions & 5 deletions .github/policies/scheduled-pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
name: GitOps.PullRequestIssueManagement - Scheduled PRs
description: Creates pull requests on a schedule
resource: repository
disabled: false

where:
configuration:
resourceManagementConfiguration:
Expand Down

0 comments on commit 24b2bd9

Please sign in to comment.