From 0d156bd7dff51a379aae66b9fefdddf11ceb3a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93lafur=20P=C3=A1ll=20Geirsson?= Date: Tue, 21 Sep 2021 12:24:06 +0200 Subject: [PATCH] Add new issues to the Code Intel project board --- .github/project-board.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/project-board.yml diff --git a/.github/project-board.yml b/.github/project-board.yml new file mode 100644 index 00000000..785f408a --- /dev/null +++ b/.github/project-board.yml @@ -0,0 +1,25 @@ +name: Add new issues to the Code Intel project board +on: + issues: + types: + - opened +jobs: + # Uses issues beta API - see https://docs.github.com/en/issues/trying-out-the-new-projects-experience/automating-projects#example-workflow + code-intel-board: + runs-on: ubuntu-latest + env: + PROJECT_ID: MDExOlByb2plY3ROZXh0NDI1MA== # https://github.com/orgs/sourcegraph/projects/211 + GITHUB_TOKEN: ${{ secrets.GH_PROJECTS_ACTION_TOKEN }} + steps: + - name: Add to board + env: + NODE_ID: ${{ github.event.issue.node_id }} + run: | + gh api graphql --header 'GraphQL-Features: projects_next_graphql' -f query=' + mutation($project:ID!, $node_id:ID!) { + addProjectNextItem(input: {projectId: $project, contentId: $node_id}) { + projectNextItem { + id + } + } + }' -f project=$PROJECT_ID -f node_id=$NODE_ID