From b651210be1defcba1ae8413c38861258185254a0 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Sun, 25 Feb 2024 16:56:12 +0300 Subject: [PATCH] ci: link issues and prs to project automatically --- .github/workflows/add-issues-to-project.yaml | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/add-issues-to-project.yaml diff --git a/.github/workflows/add-issues-to-project.yaml b/.github/workflows/add-issues-to-project.yaml new file mode 100644 index 0000000..6918e53 --- /dev/null +++ b/.github/workflows/add-issues-to-project.yaml @@ -0,0 +1,27 @@ +name: Link issue to InNoHassle project + +on: + issues: + types: + - opened + - reopened + - transferred + pull_request: + types: + - opened + - reopened + +jobs: + add-to-project: + name: Add issue to project + if: github.repository_owner == 'one-zero-eight' # Do not run in forks + runs-on: ubuntu-latest + permissions: # Permissions granted to the 'GITHUB_TOKEN' + contents: read + issues: + repository-projects: write + steps: + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/one-zero-eight/projects/4 + github-token: ${{ secrets.GITHUB_TOKEN }}