Skip to content

Commit

Permalink
FabricBot: Onboarding to GitOps.ResourceManagement because of FabricB…
Browse files Browse the repository at this point in the history
…ot decommissioning (dotnet#32897)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

 Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: dotnet-policy-service[bot] <123482357+dotnet-policy-service[bot]@users.noreply.github.com>
  • Loading branch information
dotnet-policy-service[bot] authored and roji committed Feb 9, 2024
1 parent 5677e30 commit 5ea85b5
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 165 deletions.
165 changes: 0 additions & 165 deletions .github/fabricbot.json

This file was deleted.

66 changes: 66 additions & 0 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches: []
eventResponderTasks:
- if:
- payloadType: Pull_Request
- hasLabel:
label: auto-merge
then:
- enableAutoMerge:
mergeMethod: Squash
description: Auto-merge PRs
- if:
- payloadType: Pull_Request
- labelRemoved:
label: auto-merge
then:
- disableAutoMerge
description: Auto-merge PRs
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
- isActivitySender:
user: dotnet-maestro[bot]
issueAuthor: False
- titleContains:
pattern: Update dependencies
isRegex: False
then:
- addLabel:
label: area-infrastructure
- addLabel:
label: 'type-dependency update :arrow_up_small:'
- approvePullRequest:
comment: Auto-approving dependency update.
description: '[Infrastructure PRs] Add area-infrastructure label to dependency update Pull Requests'
- if:
- payloadType: Pull_Request
- isAction:
action: Opened
- isActivitySender:
user: dotnet-maestro-bot
issueAuthor: False
- titleContains:
pattern: Merge branch
isRegex: False
then:
- addLabel:
label: area-infrastructure
- addLabel:
label: 'type-merge forward :fast_forward:'
- approvePullRequest:
comment: Auto-approving branch merge.
- addLabel:
label: auto-merge
description: '[Infrastructure PRs] Add area-infrastructure label to auto-merge Pull Requests'
onFailure:
onSuccess:

0 comments on commit 5ea85b5

Please sign in to comment.