Skip to content

Commit 8bd7c3b

Browse files
committed
Create a separate Privacy issue when the review of a charter is requested
1 parent 6fcf174 commit 8bd7c3b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: .github/workflows/charter-review.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create Cross-Repo Issue on Horizontal Label
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
create-issue:
9+
if: github.event.label.name == 'Horizontal review requested'
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
issues: write # Still needed to read source issue
14+
15+
steps:
16+
- name: Create new issue in target repository
17+
run: |
18+
gh issue create \
19+
--repo "w3cping/privacy-request" \
20+
--title " #${{ github.event.issue.title }}" \
21+
--body "This issue was created because the 'horizontal review requested' label was added to\n\n ${{ github.event.issue.html_url }}" \
22+
--label "charter"
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.W3CBOT_TOKEN }}

0 commit comments

Comments
 (0)