Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning #32897

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Loading