-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🎨 Force automerge as admin * 💄 Make linter happy * 🚚 Rename admin variable to force * 🎨 Change default type for force * 📝 Add force documentation * 📝 Add hint for prrotection rules * 📝 Only run if the PR is created * ⬇️ More explanation for force merge
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,15 +29,24 @@ In this section you can find examples of how to use template workflows. For more | |
<summary>The action can be used to auto-merge a dependabot PR with minor and patch updates.</summary> | ||
The action is called by creating a PR. It is necessary that the repository is enabled for auto-merge. | ||
Afterward the PR will be merged with the help of the merge queue if all required conditions of the repository are fulfilled. | ||
⚠️ You can also force a merge of a PR. This means that the PR will immediately be merged. | ||
If you want to enable the force merge, make sure that the app can bypass any protection rules. | ||
```yml | ||
name: Enable Dependabot Auto-Merge | ||
|
||
on: pull_request | ||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
dependabot: | ||
uses: Staffbase/gha-workflows/.github/workflows/[email protected] | ||
with: | ||
# optional: ⚠️ only enable the force merge if you want to do the merge just now | ||
force: true | ||
secrets: | ||
# identifier of the GitHub App for authentication | ||
app_id: ${{ <your-app-id> }} | ||
|