You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cleanup)!: replace update-pr-comment with delete-pr-comment (#6)
BREAKING CHANGE: The cleanup action now deletes PR comments instead of
updating them with strikethrough text.
- Rename `update-pr-comment` input to `delete-pr-comment`
- Rename `pr-comment-updated` output to `pr-comment-deleted`
- Change default from `false` to `true` (enabled by default)
- Simplify implementation: delete comment instead of PATCH update
Users upgrading from v1 should replace:
update-pr-comment: true → delete-pr-comment: true
The new default (true) means PR comments are deleted automatically
when cleanup runs, matching the behavior of pr-preview-action.
**Note:** The default `GITHUB_TOKEN` cannot delete GitHub environments. You need a Personal Access Token (PAT) or GitHub App token with admin permissions for the repository.
136
130
@@ -212,7 +206,7 @@ Check cleanup results and take action:
212
206
2. **Delete GitHub Deployments** (optional): Marks all deployments for the environment as inactive, then deletes them
213
207
3. **Delete GitHub Environment** (optional): Deletes the GitHub environment
214
208
4. **Delete Container Image** (optional): Finds and deletes the container version with the specified tag
215
-
5. **Update PR Comment** (optional): Updates the deploy comment to show cleanup status
209
+
5. **Delete PR Comment** (optional): Removes the deploy comment from the PR
216
210
217
211
Each step runs independently and won't fail the action if it fails (cleanup is best-effort). Check the outputs to see what was actually deleted.
0 commit comments