Skip to content

Commit

Permalink
Merge pull request #58 from nowsprinting/chore/conflibot
Browse files Browse the repository at this point in the history
Add conflibot workflow
  • Loading branch information
nowsprinting authored Nov 5, 2024
2 parents f69645f + 50c9a3d commit d39d836
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
paths:
- .github/workflows/**

permissions: {}

defaults:
run:
shell: bash

jobs:
actionlint:
runs-on: ubuntu-latest
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/conflibot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check pull requests for conflicts

on:
pull_request_target:
types: [ opened, synchronize, reopened ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
conflibot:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: read
checks: write

steps:
- uses: actions/checkout@v4
- uses: wktk/conflibot@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
exclude: ""
6 changes: 6 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ name: Create release pull request
on:
workflow_dispatch:

permissions: {}

defaults:
run:
shell: bash

jobs:
create-release-pr:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/metacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
pull_request:
types: [ opened, synchronize, reopened ] # Same as default

permissions: {}

defaults:
run:
shell: bash

jobs:
meta-check:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
pull_request:
types: [ opened ]

permissions: {}

defaults:
run:
shell: bash

jobs:
pr-labeler:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
release-drafter:
if: github.repository_owner == 'nowsprinting' # Skip on forked repo
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
paths:
- package.json

permissions: {}

defaults:
run:
shell: bash

jobs:
check-bump-version:
if: github.repository_owner == 'nowsprinting' # Skip on forked repo
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
test:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
Expand Down

0 comments on commit d39d836

Please sign in to comment.