Skip to content

Commit 6721ac8

Browse files
authored
Merge pull request #31 from nowsprinting/chore/conflibot
Add conflibot workflow
2 parents 90d1636 + ec7ab22 commit 6721ac8

File tree

5 files changed

+55
-0
lines changed

5 files changed

+55
-0
lines changed

.github/workflows/actionlint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ on:
1414
paths:
1515
- .github/workflows/**
1616

17+
permissions: {}
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
1723
jobs:
1824
actionlint:
1925
runs-on: ubuntu-latest

.github/workflows/conflibot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check pull requests for conflicts
2+
3+
on:
4+
pull_request_target:
5+
types: [ opened, synchronize, reopened ]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions: {}
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
conflibot:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 5
21+
permissions:
22+
contents: read
23+
pull-requests: read
24+
checks: write
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: wktk/conflibot@v1
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
exclude: ""

.github/workflows/metacheck.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
pull_request:
1111
types: [ opened, synchronize, reopened ] # Same as default
1212

13+
permissions: {}
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
1319
jobs:
1420
meta-check:
1521
runs-on: ubuntu-latest

.github/workflows/test-integration.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ concurrency:
2222
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.runner }}
2323
cancel-in-progress: true
2424

25+
permissions: {}
26+
27+
defaults:
28+
run:
29+
shell: bash
30+
2531
jobs:
2632
test:
2733
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ concurrency:
2222
group: ${{ github.workflow }}-${{ github.ref }}
2323
cancel-in-progress: true
2424

25+
permissions: {}
26+
27+
defaults:
28+
run:
29+
shell: bash
30+
2531
jobs:
2632
test:
2733
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.

0 commit comments

Comments
 (0)