summaryrefslogtreecommitdiffstats
path: root/.github/workflows/add-to-project.yml
blob: a80d8b41db4636512bc76c047be3aa63a5f7f0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Add issues to Agent Board

on:
  issues:
    types:
      - opened
      - transferred

jobs:
  add-to-project:
    name: Add issue to project
    if: github.repository == 'netdata/netdata'
    runs-on: ubuntu-latest
    steps:
      - name: Add issues to Agent project board
        uses: actions/add-to-project@v0.4.0
        with:
          project-url: https://github.com/orgs/netdata/projects/32
          github-token: ${{ secrets.NETDATABOT_ORG_GITHUB_TOKEN }}

      - name: Add issues to Product Bug project board
        uses: actions/add-to-project@v0.4.0
        with:
          project-url: https://github.com/orgs/netdata/projects/45
          github-token: ${{ secrets.NETDATABOT_ORG_GITHUB_TOKEN }}
          labeled: bug