-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH Action to link incoming issues and pull-requests to the Terraform …
…DevEx Team board (#897) * GH Action to link incoming issues and pull-requests to the Terraform DevEx Team board * Delete .gitignore * Delete modules.xml * Delete terraform-plugin-sdk.iml * Delete vcs.xml
- Loading branch information
Ivan De Marino
authored
Mar 8, 2022
1 parent
b73052f
commit aeb1360
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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: | ||
# NOTE: The way content is added to project board is equivalent to an "upsert". | ||
# Calling it multiple times will be idempotent. | ||
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/[email protected] | ||
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/[email protected] | ||
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\"}]' |