Skip to content

Commit 4b68774

Browse files
authored
Create workflow to add persona-labeled items to review board (#63730)
1 parent 7c192d6 commit 4b68774

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Add persona-labeled issues and PRs to Docs Content Review Board
2+
3+
# When the builder persona or driver persona label is added to an issue or PR
4+
# in github/docs, add it to the Docs Content Review Board project.
5+
6+
on:
7+
issues:
8+
types: [labeled]
9+
pull_request_target:
10+
types: [labeled]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
add-to-review-board:
17+
name: Add to Docs Content Review Board
18+
runs-on: ubuntu-latest
19+
if: >-
20+
github.repository == 'github/docs' &&
21+
(github.event.label.name == 'builder persona' || github.event.label.name == 'driver persona')
22+
steps:
23+
- name: Add item to project
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
26+
ITEM_URL: ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
27+
PROJECT_NUMBER: 2936
28+
run: |
29+
echo "Adding $ITEM_URL to project $PROJECT_NUMBER..."
30+
gh project item-add "$PROJECT_NUMBER" --owner github --url "$ITEM_URL"

0 commit comments

Comments
 (0)