Skip to content

Commit

Permalink
automate labeling issues and adding to projects
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <[email protected]>
  • Loading branch information
kranurag7 committed Jun 24, 2024
1 parent 41aa27e commit 907a67d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Label issues And add to projects
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: Container

add-to-project:
name: Add pull request to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/SovereignCloudStack/projects/6/views/7
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: Container
label-operator: AND

0 comments on commit 907a67d

Please sign in to comment.