CNTRLPLANE-507: Add HCP finalizer to AWSEndpointService reconciler #5549
This file contains hidden or 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
| name: Restructure Commits | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| restructure-commits: | |
| if: >- | |
| github.event.issue.pull_request && | |
| startsWith(github.event.comment.body, '/restructure-commits') && | |
| (github.event.comment.author_association == 'MEMBER' || | |
| github.event.comment.author_association == 'OWNER' || | |
| github.event.comment.author_association == 'COLLABORATOR') | |
| uses: ./.github/workflows/reusable-claude-on-pr.yaml | |
| with: | |
| command-name: restructure-commits | |
| status-message: "Restructuring commits" | |
| claude-prompt: >- | |
| /restructure-commits -- You are running in CI. Force push with --force-with-lease when done without asking for confirmation. | |
| If the push fails with a permission or authentication error, post a PR comment using | |
| 'gh pr comment' explaining that the restructuring succeeded locally but the push failed because | |
| the PR does not allow maintainer edits, and ask the author to enable 'Allow edits from | |
| maintainers' and retry /restructure-commits. | |
| max-turns: 200 | |
| secrets: inherit |