Skip to content

Update conditions for auto-approve job - #211

Merged
nev21 merged 1 commit into
mainfrom
nev21-patch-1
Jan 3, 2026
Merged

nev21 merged 1 commit into
mainfrom
nev21-patch-1

Conversation

@nev21

@nev21 nev21 commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 3, 2026 00:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the conditions for the auto-approve job in the GitHub Actions workflow to use a more precise check for PR authors. The change moves from checking github.actor to github.event.pull_request.user.login, which is more specific to the PR creator rather than the workflow trigger actor.

Key changes:

  • Replaced github.actor with github.event.pull_request.user.login for more accurate PR author identification
  • Removed the dependabot-sync[bot] from the auto-approve list

if: github.actor == 'dependabot[bot]' || github.actor == 'nev21' || github.actor == 'dependabot-sync[bot]'
if: |
github.event.pull_request.user.login == 'nev21' ||
github.event.pull_request.user.login == 'dependabot[bot]'

Copilot AI Jan 3, 2026

Copy link

Choose a reason for hiding this comment

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

The removal of 'dependabot-sync[bot]' from the auto-approve condition may be unintentional. If this bot should still be auto-approved, it needs to be added back to the condition list.

Suggested change
github.event.pull_request.user.login == 'dependabot[bot]'
github.event.pull_request.user.login == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'dependabot-sync[bot]'

Copilot uses AI. Check for mistakes.
@nev21
nev21 merged commit 5895288 into main Jan 3, 2026
13 checks passed
@nev21
nev21 deleted the nev21-patch-1 branch January 3, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants