From f867ed4a85774159728b3e45a4c93f8c0bfc0d42 Mon Sep 17 00:00:00 2001 From: Ivan De Marino Date: Thu, 19 May 2022 15:53:54 +0100 Subject: [PATCH 1/3] Setting `@hashicorp/terraform-devex` as Code Owners --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..922ee27f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @hashicorp/terraform-devex From 9a60eb5810676b7f3c8f32b566333f05b8128402 Mon Sep 17 00:00:00 2001 From: Ivan De Marino Date: Thu, 19 May 2022 15:54:08 +0100 Subject: [PATCH 2/3] Git-ignoring Jetbrains IDEs files --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 458ebf99..79e962bf 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,7 @@ typings/ # ./wrapper/dist gets included in top-level ./dist wrapper/dist + +# Jetbrains IDEs +.idea/ +.iml From 8d6e47a98a827d02c8a7f3d1cdf679a4f311bfb7 Mon Sep 17 00:00:00 2001 From: Ivan De Marino Date: Thu, 19 May 2022 15:54:27 +0100 Subject: [PATCH 3/3] Add new Issues/PRs to TF Provider DevEx team board --- .github/workflows/add-content-to-project.yml | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/add-content-to-project.yml diff --git a/.github/workflows/add-content-to-project.yml b/.github/workflows/add-content-to-project.yml new file mode 100644 index 00000000..f7e75133 --- /dev/null +++ b/.github/workflows/add-content-to-project.yml @@ -0,0 +1,40 @@ +# Based on https://github.com/leonsteinhaeuser/project-beta-automations + +name: "Add Issues/PRs to TF Provider DevEx team board" + +on: + issues: + types: [opened, reopened] + pull_request_target: + # NOTE: The way content is added to project board is equivalent to an "upsert". + # Calling it multiple times will be idempotent. + # + # See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ + # to see the reasoning behind using `pull_request_target` instead of `pull_request` + types: [opened, reopened, ready_for_review] + +jobs: + add-content-to-project: + name: "Add Content to project" + runs-on: ubuntu-latest + steps: + - name: "Set Issue to 'Priority = Triage Next'" + uses: leonsteinhaeuser/project-beta-automations@v1.2.1 + if: github.event_name == 'issues' + with: + gh_token: ${{ secrets.TF_DEVEX_PROJECT_GITHUB_TOKEN }} + organization: "hashicorp" + project_id: 99 #< https://github.com/orgs/hashicorp/projects/99 + resource_node_id: ${{ github.event.issue.node_id }} + operation_mode: custom_field + custom_field_values: '[{\"name\":\"Priority\",\"type\":\"single_select\",\"value\":\"Triage Next\"}]' + - name: "Set Pull Request to 'Priority = Triage Next'" + uses: leonsteinhaeuser/project-beta-automations@v1.2.1 + if: github.event_name == 'pull_request' + with: + gh_token: ${{ secrets.TF_DEVEX_PROJECT_GITHUB_TOKEN }} + organization: "hashicorp" + project_id: 99 #< https://github.com/orgs/hashicorp/projects/99 + resource_node_id: ${{ github.event.pull_request.node_id }} + operation_mode: custom_field + custom_field_values: '[{\"name\":\"Priority\",\"type\":\"single_select\",\"value\":\"Triage Next\"}]'