Skip to content

Commit

Permalink
Add PRs and Issues automatically to the Python SDK gh project (and la…
Browse files Browse the repository at this point in the history
…bel with potel, if pr wants to merge into potel-base
  • Loading branch information
antonpirker committed Nov 22, 2024
1 parent e28437d commit 3a66112
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/project-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Automation: Update GH Project"

on:
pull_request:
types: [opened, reopened]
issues:
types: [opened, reopened]

jobs:
add-to-project:
name: Add item to "Python SDK" project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/getsentry/projects/235
github-token: ${{ secrets.GH_PROJECT_AUTOMATION }}

add-label:
name: Add POTel label if needed
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'potel-base'
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Project: POTel"
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3a66112

Please sign in to comment.