Skip to content

Commit 46f7850

Browse files
chore: Synced file(s) with googlemaps/.github (#258)
1 parent f410cdb commit 46f7850

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ updates:
1818
directory: "/"
1919
schedule:
2020
interval: "daily"
21-
labels:
22-
- "automatic" # see .github/workflows/dependabot.yml

.github/workflows/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
GITHUB_TOKEN: ${{secrets.SYNCED_GITHUB_TOKEN_REPO}}
2828
steps:
2929
- name: approve
30-
run: gh pr review --comment -b "Automatically approved since dependabot is [configured](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels) with label `automatic`."
31-
if: ${{ github.event.label.name == 'automatic' }}
30+
run: gh pr review --comment -b "Automatically approved since dependabot is not [configured](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels) with label `do not merge`."
31+
if: ${{ github.event.label.name != 'do not merge' }}
3232
- name: approve-instructions
33-
run: echo "configure dependabot with label 'automatic' to have it automatically approved and merged. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels"
34-
if: ${{ github.event.label.name != 'automatic' }}
33+
run: echo "Configure dependabot with label 'do not merge' to prevent it from being automatically approved and merged. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#labels"
34+
if: ${{ github.event.label.name == 'do not merge' }}
3535
- name: merge
3636
run: gh pr merge --auto --squash --delete-branch "$PR_URL"

0 commit comments

Comments
 (0)