Skip to content

Commit

Permalink
chore: fix auto-approve workflow (aws#13392)
Browse files Browse the repository at this point in the history
I believe the reason our auto-approve workflow does not work is because it was triggered when the pull request was _created_ and before the `pr/auto-approve` label was applied to it.

This adds `types: [ labeled ]` so the workflow is triggered when a PR is labeled. The condition remains the same.
  • Loading branch information
Elad Ben-Israel authored and cornerwings committed Mar 8, 2021
1 parent 1274ec0 commit 6f0d88d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Approve PRs with "pr/auto-approve". mergify takes care of the actual merge.

name: auto-approve
on: pull_request
on:
pull_request:
types: [ labeled, unlabeled, opened, synchronize, reopened, ready_for_review, review_requested ]

jobs:
auto-approve:
Expand Down

0 comments on commit 6f0d88d

Please sign in to comment.