-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 995 Bytes
/
pr.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
29
30
31
32
33
34
35
36
37
38
39
40
name: PR Helper
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
label:
name: Auto PR Label
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
assign:
name: Auto PR Assign
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
pull-requests: write
repository-projects: read
if: endsWith(github.event.pull_request.user.login, '[bot]') == false && github.event.pull_request.assignee == null
steps:
- name: Assign Author to PR
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: gh pr edit ${{ github.event.number }} --add-assignee ${{ github.event.pull_request.user.login }}