Skip to content

Commit

Permalink
chore: common .github files (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Jan 23, 2024
1 parent 32ff2bc commit da52468
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: add issues to project

on:
issues:
types:
- opened

jobs:
add-to-project:
name: add issue to project
runs-on: ubuntu-latest
steps:
- name: register bug/needs-triage with bug tracker project
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/varfish-org/projects/3
github-token: ${{ secrets.BOT_TOKEN }}
labeled: bug, needs-triage
label-operator: OR

- name: register bug/enhancement issues with release planning project
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/varfish-org/projects/2
labeled: bug, needs-triage, enhancement
label-operator: OR
github-token: ${{ secrets.BOT_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/add-pr-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: add needs-review pull requests to projects

on:
pull_request:
types:
- labeled

jobs:
add-to-project:
name: Add pull request to project
runs-on: ubuntu-latest
steps:
- name: register pull requests with release planning project
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/varfish-org/projects/2
github-token: ${{ secrets.BOT_TOKEN }}
labeled: needs-review

0 comments on commit da52468

Please sign in to comment.