-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(dependabot): auto merge pull requests
- Loading branch information
1 parent
ae35eab
commit 19106f6
Showing
7 changed files
with
74 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
root = true | ||
|
||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: auto-merge | ||
on: | ||
pull_request: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
dependabot: | ||
if: github.triggering_actor == 'dependabot[bot]' | ||
name: Auto merge pull requests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Approve Dependabot PR | ||
run: gh pr review --approve "${PR_URL}" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.MACHINE_TOKEN }} | ||
- if: contains(github.event.pull_request.labels.*.name, 'github_actions') | ||
name: Enable auto-merge for Dependabot PR | ||
run: gh pr merge --auto --merge "${PR_URL}" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"default": true, | ||
"line-length": { | ||
"tables": false | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# vi: ft=yaml | ||
--- | ||
formatter: | ||
type: basic | ||
# There is a "bug" with the behaviour of this option that will move file head | ||
# comments below the initial document start. For example front matter is | ||
# rearraged and therefore misplaced in the file. This behaviour prevents | ||
# `ymalfmt` from being run in CI or automatically in code editors. | ||
include_document_start: true | ||
indentless_arrays: true | ||
pad_line_comments: 2 | ||
# There is missing functionality in `yamlfmt` to remove redundantly quoted | ||
# strings from YAML documents, and prefer the use of double quotes (or | ||
# whatever is configured). This means further manual effort is required to | ||
# correct files. |
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