Add community issues to Community project

Signed-off-by: David Ko <dko@suse.com>
This commit is contained in:
David Ko 2022-08-02 14:46:23 +08:00
parent b7dcd5b348
commit 2d7e6a1283
2 changed files with 21 additions and 2 deletions

View File

@ -1,9 +1,10 @@
name: Add issues to QA & DevOps project
name: Add issues to projects
on:
pull_request:
issues:
types:
- labeled
- opened
jobs:
add-to-qa-devops-project:
@ -16,3 +17,20 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
labeled: kind/test, area/test-infra
label-operator: OR
add-to-community-project:
name: Add issue to Community project
runs-on: ubuntu-latest
steps:
- uses: JamesSingleton/is-organization-member@1.0.0
id: is_organization_member
if: github.event.action == 'opened'
with:
organization: longhorn
username: ${{ github.event.issue.user.login }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/add-to-project@v0.3.0
if: steps.is_organization_member.outputs.result == false
with:
project-url: https://github.com/orgs/longhorn/projects/5
github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,4 +1,5 @@
name: 'Close stale issues and PRs'
on:
workflow_call:
workflow_dispatch: