Skip to content
Draft
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
37 changes: 37 additions & 0 deletions .github/policies/pr.dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
id: pr.dependabot-auto-merge
name: GitOps.PullRequestIssueManagement
description: Automatically approve and merge Dependabot updates
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Approve and auto-merge Dependabot updates
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- targetsBranch:
branch: main
- isActivitySender:
user: dependabot[bot]
issueAuthor: true
then:
- approvePullRequest:
comment: "Approved automatically for a Dependabot update."
- addLabel:
label: auto-merge
- enableAutoMerge:
mergeMethod: Squash

- description: Disable auto-merge when the auto-merge label is removed
if:
- payloadType: Pull_Request
- labelRemoved:
label: auto-merge
then:
- disableAutoMerge
onFailure:
onSuccess:
13 changes: 7 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,13 @@ Process labels

Misc labels

| Name | Color | Description |
| ------------------- | ------- | -------------------------------------------------- |
| `agentic-workflows` | #000000 | Issues/PR created by github agentic workflows |
| `good first issue` | #7057ff | Good for newcomers |
| `mq` | #0969da | Good candidate for MQ |
| `int:azure-specs` | #0e8a16 | Run integration tests against azure-rest-api-specs |
| Name | Color | Description |
| ------------------- | ------- | ---------------------------------------------------------------- |
| `agentic-workflows` | #000000 | Issues/PR created by github agentic workflows |
| `auto-merge` | #0e8a16 | Automatically merge the pull request after all requirements pass |
| `good first issue` | #7057ff | Good for newcomers |
| `mq` | #0969da | Good candidate for MQ |
| `int:azure-specs` | #0e8a16 | Run integration tests against azure-rest-api-specs |

<!-- LABEL GENERATED REF END -->

Expand Down
4 changes: 4 additions & 0 deletions eng/common/config/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ export default defineConfig({
color: "000000",
description: "Issues/PR created by github agentic workflows",
},
"auto-merge": {
color: "0e8a16",
description: "Automatically merge the pull request after all requirements pass",
},
"good first issue": {
color: "7057ff",
description: "Good for newcomers",
Expand Down
Loading