Skip to content

Commit

Permalink
chore: respect do-not-merge label
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Dec 4, 2023
1 parent c79ede4 commit 40e373e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automerge.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/automerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Automerge {
workflow.addJobs({
automerge: {
runsOn: ["ubuntu-latest"],
if: "contains(github.event.pull_request.labels.*.name, 'automerge') && github.event.pull_request.draft == false",
if: "contains(github.event.pull_request.labels.*.name, 'automerge') && !contains(github.event.pull_request.labels.*.name, 'do-not-merge') && github.event.pull_request.draft == false",
steps: [
{
name: "Checkout",
Expand Down

0 comments on commit 40e373e

Please sign in to comment.