From 45fc9814257057c95ea441c0bb173e006011f1b2 Mon Sep 17 00:00:00 2001 From: yevgenypats Date: Thu, 24 Mar 2022 11:23:18 +0000 Subject: [PATCH] chore: Sync form .github --- .github/workflows/issue_to_project.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/issue_to_project.yml diff --git a/.github/workflows/issue_to_project.yml b/.github/workflows/issue_to_project.yml new file mode 100644 index 00000000000000..27eb26e50559bf --- /dev/null +++ b/.github/workflows/issue_to_project.yml @@ -0,0 +1,25 @@ +name: Add issue to project +on: + issues: + types: + - opened + - reopened + +# map fields with customized labels +env: + todo: Triage + +jobs: + issue_opened_or_reopened: + name: issue_opened_or_reopened + runs-on: ubuntu-latest + if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') + steps: + - name: Move issue to ${{ env.todo }} + uses: leonsteinhaeuser/project-beta-automations@v1.2.1 + with: + gh_token: ${{ secrets.GH_CQ_BOT }} + organization: cloudquery + project_id: 2 + resource_node_id: ${{ github.event.issue.node_id }} + status_value: ${{ env.todo }} # Target status