-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (30 loc) · 931 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
name: Pull requests
on:
pull_request_target: # Default: ['opened', 'synchronize', 'reopened']
types: ["opened", "synchronize", "reopened", "ready_for_review"]
jobs:
labeller:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
deployment_on_base:
runs-on: ubuntu-latest
steps:
- name: Check for previous deployment on base
run: |
[[ $(
curl https://api.github.com/repos/${{ github.repository }}/releases |
jq '.[].target_commitish == "${{ github.event.pull_request.base.ref }}"' |
grep true | wc -l
) != 0 ]]
assign:
runs-on: ubuntu-latest
if: github.event.pull_request.assignee == null
steps:
- name: Assign reviewer
uses: kentaro-m/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"