Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/bug-tracker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Bug tracker

on:
workflow_dispatch:
issues:
types: [opened, labeled]

jobs:
get-org-repos:
runs-on: ubuntu-latest
steps:
- uses: austenstone/get-org-repos@main
with:
github-token: ${{ secrets.PROJECT_PAT }}
id: get-org-repos
outputs:
repos: ${{ steps.get-org-repos.outputs.repos }}

sync:
needs:
- get-org-repos
runs-on: ubuntu-latest
strategy:
matrix:
repo: ${{ fromJson(needs.get-org-repos.outputs.repos) }}
fail-fast: false
steps:
- uses: actions/checkout@main
with:
repository: ${{ github.event.organization.login }}/${{ matrix.repo }}
token: ${{ secrets.PROJECT_PAT }}
- uses: amenocal/stale@main
with:
repo-token: ${{ secrets.PROJECT_PAT }}
repo-name: ${{ matrix.repo }}

add_bug_to_project:
if: github.event.label.name == 'bug' || contains(github.event.issue.labels.*.name, 'bug')
runs-on: ubuntu-latest
steps:
- name: Add issue to project
uses: actions/add-to-project@v1
with:
project-url: https://github.com/orgs/fairpm/projects/2
github-token: ${{ secrets.PROJECT_PAT }}
labeled: bug