Enable auto merge & filter codeql
This commit is contained in:
parent
e65f1bf9f4
commit
eed1352374
2 changed files with 35 additions and 0 deletions
31
.github/workflows/auto_merge.yaml
vendored
Normal file
31
.github/workflows/auto_merge.yaml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
auto_merge:
|
||||
name: Auto merge
|
||||
runs-on: ubuntu-latest
|
||||
needs: tests
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
if: >-
|
||||
github.event.pull_request
|
||||
&& github.event.pull_request.merged == false
|
||||
&& (
|
||||
github.event.pull_request.user.login == 'crocmagnon-pr[bot]'
|
||||
|| github.event.pull_request.user.login == 'pre-commit-ci[bot]'
|
||||
)
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Auto merge
|
||||
run: gh pr merge ${{github.event.pull_request.number}} --delete-branch --rebase
|
4
.github/workflows/codeql-analysis.yaml
vendored
4
.github/workflows/codeql-analysis.yaml
vendored
|
@ -14,9 +14,13 @@ name: "CodeQL"
|
|||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
paths:
|
||||
- "**.js"
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ "master" ]
|
||||
paths:
|
||||
- "**.js"
|
||||
schedule:
|
||||
- cron: '35 4 * * 3'
|
||||
|
||||
|
|
Loading…
Reference in a new issue