-
Notifications
You must be signed in to change notification settings - Fork 146
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
Maintenance: Enable auto-merge for dependabot #126
Comments
I think that the new permisions on dependabot PRs would make this more difficult as the workflow will only have read only permission, so would not be able to do the merge |
I agree that it'd reduce the maintenance load but not sure if the risk we'd introducing is worth the benefit. Second @alan-churley opinion. There's a way of giving more privileges to the workflow but we should be careful as it exposes the repository to pwn requests. The main question here is do we trust dependabot enough to auto-merge whatever throws at us?
|
This is automated in java repo https://github.com/awslabs/aws-lambda-powertools-java if you want to take inspiration from. It works based on githubs new permission model. As long as the build steps i.e. test cases pass, we merge the PR. It should be pretty safe trusting our own automated tests I think and saves us from alot of effort of manually merging PR.s |
Resolved by #169 |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Given that we have disabled Dependabot updates in #992 is not relevant anymore. Closing it. |
|
Description of the feature request
Problem statement
Today dependabot PRs require manual approval, which consists of checking if the PR builds succeeded and then merging the changes.
Summary of the feature
By enabling auto-merge for a dependabot pull requests we can reduce the required maintenance time, and focus our time on more creative tasks.
To auto-merge your pull requests, we can use GitHub's auto-merge functionality. This enables the pull request to be merged when all required tests and approvals are successfully met.
The auto-merge functionality lets us configure under which conditions we want to enable auto-merge. This lets us start with a list of trusted dependencies (e.g.
aws-sdk
) and a certain version type (e.g. patch). The example below limits auto-merge to patches ofaws-sdk
.Auto-merge requires permissions to write to PRs, as shown below:
Code examples
Below is an example that I copied from the Github docs and switched the trusted library to
aws-sdk
. I did not dive deep into the stepDependabot metadata
yet.Benefits for you and the wider AWS community
Maintainers spend less time on chores, and have more time to engage with the community.
Describe alternatives you've considered
I have not yet investigated alternatives, as this seems to be the recommended approach for Github.
With this issue I am not suggesting that we should enable the auto-merge feature through the GitHub UI.
Additional context
None yet.
Related issues, RFCs
None yet.
The text was updated successfully, but these errors were encountered: