From adc130a73e517287b67ea8befbf4fb1bccc2cf74 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Wed, 25 May 2022 17:01:04 -0400 Subject: [PATCH] Update project GitHub actions (#11805) To assist in tracking newly created issues and pull-requests a new set of actions is being added to assign inbound request to a new project board. Where the team can view, filter, and organize in bound requests across all Packer repos. --- .github/workflows/issues-opened.yml | 13 +++++++++++-- .github/workflows/pull-requests-opened.yml | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pull-requests-opened.yml diff --git a/.github/workflows/issues-opened.yml b/.github/workflows/issues-opened.yml index d6831f955..540a8398a 100644 --- a/.github/workflows/issues-opened.yml +++ b/.github/workflows/issues-opened.yml @@ -1,11 +1,10 @@ -name: Issue Opened Triage - on: issues: types: [opened] jobs: issue_triage: + name: Issue Opened Triage runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -14,4 +13,14 @@ jobs: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeler-issue-triage.yml enable-versioned-regex: 0 + add-to-project: + name: Add issue to request queue + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/hashicorp/projects/105 + github-token: ${{ secrets.PACKER_PROJ_BOARD_TOKEN }} + labeled: bug, enhancement + label-operator: OR diff --git a/.github/workflows/pull-requests-opened.yml b/.github/workflows/pull-requests-opened.yml new file mode 100644 index 000000000..b81b12cb1 --- /dev/null +++ b/.github/workflows/pull-requests-opened.yml @@ -0,0 +1,14 @@ +on: + pull_request: + types: + - opened + +jobs: + add-to-project: + name: Add pull-requests to request queue + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/hashicorp/projects/105 + github-token: ${{ secrets.PACKER_PROJ_BOARD_TOKEN }}