Skip to content

Commit

Permalink
ci: add workflows from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 11, 2024
1 parent 3f6fffb commit e6c3b03
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pull-request-open.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Assign pull request author'

on:
pull_request:
types:
- opened

concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number }}'
cancel-in-progress: true

jobs:
assign-author:
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/pr-assign-author@v4
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
20 changes: 20 additions & 0 deletions .github/workflows/pull-request-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Label pull request'

on:
pull_request_review:

concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number }}'
cancel-in-progress: true

jobs:
label:
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/pr-label-by-review@v4
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
label-approved: 'approved'
label-changes-requested: 'changes requested'
protection-type: 'rulesets'
22 changes: 22 additions & 0 deletions .github/workflows/pull-request-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Validate pull request title'

on:
pull_request:
types:
- edited
- opened
- reopened
- synchronize

concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number }}'
cancel-in-progress: true

jobs:
validate:
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/pr-validate-title-conventional@v4
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
16 changes: 16 additions & 0 deletions .github/workflows/rebase-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: '♻️ Rebase PRs'

on:
workflow_call:

jobs:
rebase-prs:
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/rebase-prs@v4
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
base: ${{ github.ref_name }}
exclude-drafts: true
exclude-labels: 'dependencies'

0 comments on commit e6c3b03

Please sign in to comment.