Skip to content

Commit 3a66112

Browse files
committed
Add PRs and Issues automatically to the Python SDK gh project (and label with potel, if pr wants to merge into potel-base
1 parent e28437d commit 3a66112

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Automation: Update GH Project"
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
issues:
7+
types: [opened, reopened]
8+
9+
jobs:
10+
add-to-project:
11+
name: Add item to "Python SDK" project
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/[email protected]
15+
with:
16+
project-url: https://github.com/orgs/getsentry/projects/235
17+
github-token: ${{ secrets.GH_PROJECT_AUTOMATION }}
18+
19+
add-label:
20+
name: Add POTel label if needed
21+
runs-on: ubuntu-latest
22+
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'potel-base'
23+
steps:
24+
- uses: actions-ecosystem/action-add-labels@v1
25+
with:
26+
labels: "Project: POTel"
27+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)