From 8844abac7b758cc2f988754354fb89f8a4cd4af0 Mon Sep 17 00:00:00 2001 From: Florent Poinsard <35779988+frouioui@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:49:28 -0600 Subject: [PATCH] Assign and tag the release team for go update/upgrade auto PRs (#15737) Signed-off-by: Florent Poinsard --- .github/workflows/update_golang_dependencies.yml | 7 +++++-- .github/workflows/update_golang_version.yml | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_golang_dependencies.yml b/.github/workflows/update_golang_dependencies.yml index 88388246549..97c99a54397 100644 --- a/.github/workflows/update_golang_dependencies.yml +++ b/.github/workflows/update_golang_dependencies.yml @@ -41,16 +41,19 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: + token: ${{ secrets.CREATE_PR_VITESS_BOT }} branch: "upgrade-go-deps-on-main" commit-message: "upgrade go deps" signoff: true delete-branch: true + team-reviewers: Release title: "Upgrade the Golang Dependencies" body: | This Pull Request updates all the Golang dependencies to their latest version using `go get -u ./...`. + + cc @vitessio/release base: main labels: | go - dependencies Component: General - Type: Internal Cleanup + Type: Dependencies diff --git a/.github/workflows/update_golang_version.yml b/.github/workflows/update_golang_version.yml index 0ef0c3483c9..1bbe05a5ed8 100644 --- a/.github/workflows/update_golang_version.yml +++ b/.github/workflows/update_golang_version.yml @@ -66,10 +66,12 @@ jobs: if: steps.detect-and-update.outputs.create-pr == 'true' uses: peter-evans/create-pull-request@v4 with: + token: ${{ secrets.CREATE_PR_VITESS_BOT }} branch: "upgrade-go-to-${{steps.detect-and-update.outputs.go-version}}-on-${{ matrix.branch }}" commit-message: "bump go version to go${{steps.detect-and-update.outputs.go-version}}" signoff: true delete-branch: true + team-reviewers: Release title: "[${{ matrix.branch }}] Upgrade the Golang version to `go${{steps.detect-and-update.outputs.go-version}}`" body: | This Pull Request bumps the Golang version to `go${{steps.detect-and-update.outputs.go-version}}` and the bootstrap version to `${{steps.detect-and-update.outputs.bootstrap-version}}`. @@ -81,6 +83,8 @@ jobs: - [ ] Build and Push the bootstrap images to Docker Hub, the bot cannot handle that. - [ ] Update the `./.github/workflows/*.yml` files with the newer Golang version, the bot cannot handle that due to permissions. - To accomplish this, run the following: `go run ./go/tools/go-upgrade/go-upgrade.go upgrade workflows --go-to=${{steps.detect-and-update.outputs.go-version}}` + + cc @vitessio/release base: ${{ matrix.branch }} labels: | Skip CI