diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8cfe4c1b59..c39f909e34 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -13,4 +13,5 @@ # Generated code. These ownerless rules override the catch-all above so # CI-green sync PRs (e.g. Management API OpenAPI spec) can be auto-merged. +/apps/cli-go/pkg/api/*.gen.go /packages/api/src/generated/ diff --git a/.github/workflows/api-package-sync.yml b/.github/workflows/api-package-sync.yml index 20a2f31178..bb1117b38a 100644 --- a/.github/workflows/api-package-sync.yml +++ b/.github/workflows/api-package-sync.yml @@ -65,14 +65,6 @@ jobs: branch: sync/api-package base: develop - - name: Approve a PR - if: steps.check.outputs.has_changes == 'true' && steps.cpr.outputs.pull-request-operation == 'created' - continue-on-error: true - run: gh pr review --approve --repo "${{ github.repository }}" "${STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER}" - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER: ${{ steps.cpr.outputs.pull-request-number }} - - name: Enable Pull Request Automerge if: steps.check.outputs.has_changes == 'true' run: gh pr merge --auto --squash --repo "${{ github.repository }}" "${STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER}" diff --git a/.github/workflows/cli-go-api-sync.yml b/.github/workflows/cli-go-api-sync.yml index f4656d09a4..2ae59ca5a0 100644 --- a/.github/workflows/cli-go-api-sync.yml +++ b/.github/workflows/cli-go-api-sync.yml @@ -61,14 +61,6 @@ jobs: branch: sync/api-types base: develop - - name: Approve a PR - if: steps.check.outputs.has_changes == 'true' && steps.cpr.outputs.pull-request-operation == 'created' - continue-on-error: true - run: gh pr review --approve --repo "${{ github.repository }}" "${STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER}" - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER: ${{ steps.cpr.outputs.pull-request-number }} - - name: Enable Pull Request Automerge if: steps.check.outputs.has_changes == 'true' run: gh pr merge --auto --squash --repo "${{ github.repository }}" "${STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER}"