forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This workflow runs whenever a new issue is created | ||
name: Issue opened | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
automation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Add the new issue to a project board, if it needs triage | ||
# See https://github.com/marketplace/actions/create-project-card-action | ||
- name: Add issue to project board | ||
# Only add to project board if issue is flagged as "needs triage" or has no labels | ||
# NOTE: By default we flag new issues as "needs triage" in our issue template | ||
if: (contains(github.event.issue.labels.*.name, 'needs triage') || join(github.event.issue.labels.*.name) == '') | ||
uses: technote-space/create-project-card-action@v1 | ||
# Note, the authentication token below is an ORG level Secret. | ||
# It must be created/recreated manually via a personal access token with "public_repo" and "admin:org" permissions | ||
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token | ||
# This is necessary because the "DSpace Backlog" project is an org level project (i.e. not repo specific) | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.ORG_PROJECT_TOKEN }} | ||
PROJECT: DSpace Backlog | ||
COLUMN: Triage | ||
CHECK_ORG_PROJECT: true | ||
# Ignore errors. It is possible the PR was created by someone who cannot be assigned | ||
continue-on-error: true |