-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 941 Bytes
/
pr-admin.yml
File metadata and controls
38 lines (32 loc) · 941 Bytes
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
name: PR Admin
on:
pull_request:
types: [opened, synchronize]
jobs:
label:
name: Auto-label PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Label PR based on changed files
uses: actions/labeler@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
add-to-project:
name: Add to project board
runs-on: ubuntu-latest
# Disabled until PROJECT_TOKEN secret is configured at org level
# See: https://github.com/DiamondLightSource/smartem-devtools/issues/121
if: false
permissions:
contents: read
steps:
- name: Add PR to SmartEM project
uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/DiamondLightSource/projects/51
github-token: ${{ secrets.PROJECT_TOKEN }}