Skip to content

Commit e2680bf

Browse files
authored
Create bug-tracker.yml
will this work? who can say. Signed-off-by: Jory Burson <jburson@linuxfoundation.org>
1 parent 85da1f6 commit e2680bf

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/bug-tracker.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Bug tracker
2+
3+
on:
4+
workflow_dispatch:
5+
issues:
6+
types: [opened, labeled]
7+
8+
jobs:
9+
get-org-repos:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: austenstone/get-org-repos@main
13+
with:
14+
github-token: ${{ secrets.GH_TOKEN }}
15+
id: get-org-repos
16+
outputs:
17+
repos: ${{ steps.get-org-repos.outputs.repos }}
18+
19+
sync:
20+
needs:
21+
- get-org-repos
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
repo: ${{ fromJson(needs.get-org-repos.outputs.repos) }}
26+
fail-fast: false
27+
steps:
28+
- uses: actions/checkout@main
29+
with:
30+
repository: ${{ github.event.organization.login }}/${{ matrix.repo }}
31+
token: ${{ secrets.GH_TOKEN }}
32+
- uses: amenocal/stale@main
33+
with:
34+
repo-token: ${{ secrets.GH_TOKEN }}
35+
repo-name: ${{ matrix.repo }}
36+
37+
add_bug_to_project:
38+
if: github.event.label.name == 'bug' || contains(github.event.issue.labels.*.name, 'bug')
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Add issue to project
42+
uses: actions/add-to-project@v1
43+
with:
44+
project-url: https://github.com/orgs/fairpm/projects/2
45+
github-token: ${{ secrets.PROJECT_PAT }}
46+
labeled: bug

0 commit comments

Comments
 (0)