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

Automatically merge Dependabot pull requests #65

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dolfinus
Copy link
Contributor

@dolfinus dolfinus commented Mar 25, 2021

Hello.

I see that Dependabot integration is set up on your repo. Here I propose to add an automatic step of merging pull requests from this bot if tests have been passed successfully.

The only thing should be done for enabling this feature is generating new personal token with write repo write access and saving it as PERSONAL_TOKEN secret.

This is because events made using Github Actions token, like rebasing the branch and pushing commits, do not trigger workflow runs.
This leads to strange issues - for example, you've set branch protection rule and checked some workflow as mandatory (e.g. running tests), and then 2 Dependabot merge requests were created. First MR was approved and merged automatically, then the second MR was rebased by this action, but now workflow haven't been started this MR cannot be merged automatically.
Using personal access token instead of GITHUB_TOKEN solves this issue.

@dolfinus
Copy link
Contributor Author

@Betree Could you please take a look?

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