diff --git a/.github/workflows/add-to-project.yaml b/.github/workflows/add-to-project.yaml index 9ba4e810..eb88a3bf 100644 --- a/.github/workflows/add-to-project.yaml +++ b/.github/workflows/add-to-project.yaml @@ -69,22 +69,26 @@ jobs: steps: - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} run: | - gh api \ - --method PUT \ - -H "Accept: application/vnd.github+json" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - /orgs/$OWNER/teams/$TEAM/repos/$OWNER/$REPO \ - -f permission='push' + IFS=, + for TEAM in $TEAMS; + do + gh api \ + --method PUT \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /orgs/$OWNER/teams/$TEAM/repos/$OWNER/$REPO \ + -f permission='push' + done env: GITHUB_TOKEN: ${{ secrets.REPO_PAT }} OWNER: ${{ github.repository_owner }} REPO: ${{ github.event.repository.name }} - TEAM: ${{ inputs.reviewers-team != '' && inputs.reviewers-team || 'backend-devs' }} + TEAMS: ${{ inputs.reviewers-team != '' && inputs.reviewers-team || 'backend-devs,ops' }} - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} uses: rowi1de/auto-assign-review-teams@v1.1.3 with: repo-token: ${{ secrets.REPO_PAT }} - teams: ${{ inputs.reviewers-team != '' && inputs.reviewers-team || 'backend-devs' }} # only works for GitHub Organisation/Teams + teams: ${{ inputs.reviewers-team != '' && inputs.reviewers-team || 'backend-devs,ops' }} # only works for GitHub Organisation/Teams persons: ${{ inputs.reviewers-individuals }} # add individual persons here include-draft: false # Draft PRs will be skipped (default: false) skip-with-manual-reviewers: 1 # Skip this action, if the number of reviwers was already assigned (default: 0) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index e089f4ae..631efa30 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -4,15 +4,15 @@ ### Features +- Add Docker, Go lang and Docker Clean Up workflows (PR #54 by @cosimomeli) - markdown workflow: run jobs only when there are changes to markdown related files (PR #52 by @chicco785) -- Add Docker, Go lang and Docker Clean Up workflows (PR #54 by @cosimomeli) - add-to-project workflow: set PR on creation to `🏗 In progress` and when ready to `🔖 Ready` (PR #50 by @chicco785) -- markdown workflow: run jobs only when there are changes to markdown related - files (PR #52 by @chicco785) - markdown workflow: exclude `vendor` folder from links check (PR #47 by @tejo) - markdown workflow: exclude `vendor` folder from checks (PR #46 by @tejo) +- add-to-project workflow: add support to assign multiple teams as reviewers + (comma separated without space) (PR #42 by @chicco785) - add-to-project workflow: automatically add reviewers without need of CODEOWNERS (PR #37 by @chicco785) - add-to-project workflow: automatically assign pr to its creator (PR #36 by