From 232a936202125d4783ae4f93df140667a2595a3d Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Wed, 24 Aug 2022 20:58:49 -0400 Subject: [PATCH] ci(workflows): `add-to-project` Signed-off-by: Lexus Drumgold --- .github/workflows/add-to-project.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 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..2eaff84 --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,30 @@ +# Add To Project +# +# Add new issues and pull requests to the project board. +# +# References: +# +# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issues +# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request +# - https://github.com/actions/add-to-project + +--- +name: add-to-project +on: + issues: + types: + - opened + pull_request: + types: + - opened +jobs: + add-to-project: + runs-on: ubuntu-latest + steps: + - id: add + name: Add ${{ format('#{0}', github.event.number || github.event.issue.number) }} to project + uses: actions/add-to-project@v0.3.0 + with: + github-token: ${{ secrets.PAT_REPO_ADMIN }} + project-url: | + ${{ format('{0}/orgs/{1}/projects/{2}', github.server_url, github.repository_owner, secrets.GH_PROJECT_ID) }}