Skip to content
Open
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
19 changes: 19 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: dependabot
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workflow names in this repo appear to be Title Case (e.g., “Docs”, “Jest”, “Pytest”). To match that convention, consider renaming this workflow from dependabot to something like “Dependabot”.

Suggested change
name: dependabot
name: Dependabot

Copilot uses AI. Check for mistakes.
permissions:
contents: write
pull-requests: write

on:
- pull_request

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The job condition uses github.actor == 'dependabot[bot]', which will stop enabling auto-merge if a non-Dependabot user triggers a pull_request event on a Dependabot PR (e.g., via “Update branch”/rebases that generate a new synchronize event). Consider gating on the PR author instead (e.g., github.event.pull_request.user.login) so the workflow consistently applies to Dependabot-authored PRs regardless of who triggered the latest event.

Suggested change
if: github.actor == 'dependabot[bot]'
if: github.event.pull_request.user.login == 'dependabot[bot]'

Copilot uses AI. Check for mistakes.

steps:
- name: auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading