diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml new file mode 100644 index 000000000..86ba9ba1a --- /dev/null +++ b/.github/workflows/issues.yaml @@ -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/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/SovereignCloudStack/projects/6/views/7 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + labeled: Container + label-operator: AND