-
Notifications
You must be signed in to change notification settings - Fork 76
28 lines (28 loc) · 1004 Bytes
/
pr-bot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: PR Bot
on:
pull_request:
branches: [main, rc]
permissions:
pull-requests: write
issues: write
jobs:
assign-author:
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/assignPullRequestAuthor.js')
await action({github, context, core})
label-type:
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/labelPullRequestWithCommitType.js')
await action({github, context, core})