Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable auto-merge on human push to dependabot PR #233

Closed
wants to merge 1 commit into from

Conversation

willmurphyscode
Copy link
Contributor

When dependabot PR fails and a human starts interacting with it to try to unblock it, it would previously be left with auto-merge enabled, which would surprise the human if, for example, they pushed an experimental change meant to unblock CI, and it accidentally ended up on main. Therefore, if an author besides dependabot pushes to the dependabot PR, disable the auto-merge.

When dependabot PR fails and a human starts interacting with it to try
to unblock it, it would previously be left with auto-merge enabled,
which would surprise the human if, for example, they pushed an
experimental change meant to unblock CI, and it accidentally ended up on
main. Therefore, if an author besides dependabot pushes to the
dependabot PR, disable the auto-merge.

Signed-off-by: Will Murphy <[email protected]>
echo "Additional PR Authors: $EXTRA_AUTHORS"
echo "::set-output name=extra_pr_authors::$EXTRA_AUTHORS"
if [ -n "$EXTRA_AUTHORS" ]; then
echo "::set-output name=human_pushed::true"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

From @wagoodman offline: We should use >> $GITHUB_OUTPUT instead, the ::set-output still works, but is no longer recommended.

@willmurphyscode
Copy link
Contributor Author

We are iterating on this workflow over in bubbly, see for example anchore/bubbly#34. Closing for now.

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.

1 participant