Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a work in progress.
Based on GA doc's example.
The
pull_request_target
event is likepull_request
except it allows write permissions.gh pr merge --auto --merge "$PR_URL"
will enable auto-merging of the PR that triggered the event. The merge will occur only after all the required conditions are fulfilled (in our case the build checker workflow). Doc : https://cli.github.com/manual/gh_pr_mergeThe metadata step allows to filter by update types in the second step, I configured it to auto-merge minor and patch only. There's seemingly no way to filter on package-ecosystem (like
docker
) atm, so we'll have to set auto-merge on every dependabot's PR or find an alternative if we want to filter.Will require allowing auto-merge in repository settings.
TODO
github-actions[bot]
) to trigger themaster
workflow, if possible and deemed necessary. WDYT @axelpavageau, would the PR workflow + scheduled workflow be enough ? It would publish on nightly only if I remember right, until next human merge or tag.pull-requests: write
permissionaction
permission scope affects the triggering of master workflow after auto-merge by the botTests
On my fork with auto-merge and dependabot enabled :
github-actions[bot]
was the one setting auto-merge