Add community issues to Community project
Signed-off-by: David Ko <dko@suse.com>
This commit is contained in:
parent
b7dcd5b348
commit
2d7e6a1283
22
.github/workflows/add-to-projects.yaml
vendored
22
.github/workflows/add-to-projects.yaml
vendored
@ -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 }}
|
||||
|
1
.github/workflows/stale.yaml
vendored
1
.github/workflows/stale.yaml
vendored
@ -1,4 +1,5 @@
|
||||
name: 'Close stale issues and PRs'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
Loading…
Reference in New Issue
Block a user