From abe94e7ba65b2c70ab50a637c71b4bac105084e0 Mon Sep 17 00:00:00 2001 From: Chad Audet <96076722+caudetgit@users.noreply.github.com> Date: Wed, 19 Apr 2023 14:24:02 -0700 Subject: [PATCH] Create add_to_project.yml Adds all new issues to project board --- .github/workflows/add_to_project.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/add_to_project.yml diff --git a/.github/workflows/add_to_project.yml b/.github/workflows/add_to_project.yml new file mode 100644 index 0000000..7c2d96d --- /dev/null +++ b/.github/workflows/add_to_project.yml @@ -0,0 +1,26 @@ +name: Adds all new issues to project board + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/rive-app/projects/12/views/1 + github-token: ${{ secrets.ADD_TO_PROJECT_ACTION }} + + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["triage"] + })