From 3f2d1258df6bf46972b0cb3d6abb4084923109f1 Mon Sep 17 00:00:00 2001 From: ericbsd Date: Sun, 23 Apr 2023 15:31:31 -0300 Subject: [PATCH] Added automation for PR --- .github/workflows/project_automation.yml | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/project_automation.yml diff --git a/.github/workflows/project_automation.yml b/.github/workflows/project_automation.yml new file mode 100644 index 0000000..b538967 --- /dev/null +++ b/.github/workflows/project_automation.yml @@ -0,0 +1,28 @@ +name: Project automations + +on: + pull_request_target: + types: + - opened + branches: + - 'master' + +# map fields with customized labels +env: + in_review: In Review + +jobs: + pr_opened: + name: pr_opened + runs-on: ubuntu-latest + if: github.event_name == 'pull_request_target' && github.event.action == 'opened' + steps: + - name: Move PR to ${{ env.in_review }} + uses: leonsteinhaeuser/project-beta-automations@v2.1.0 + with: + gh_token: ${{ secrets.MY_GITHUB_TOKEN }} + # user: ghostbsd + organization: ghostbsd + project_id: 4 + resource_node_id: ${{ github.event.pull_request.node_id }} + status_value: ${{ env.in_review }}