also looking at this
fix: give GitLab/Bitbucket pipelines the review job, and stop cleanup lying
#1432
5 files
+152
-8
| @@ -752,8 +752,15 @@ export class Buddy { | ||
| 752 | 752 | } |
| 753 | 753 | |
| 754 | 754 | await gitProvider.closePullRequest(existingPR.number) |
| 755 | await gitProvider.deleteBranch(existingPR.head) | |
| 756 | this.logger.success(`✅ Auto-closed PR #${existingPR.number} and deleted branch ${existingPR.head}`) | |
| 755 | // The pull request is closed either way; a branch that would | |
| 756 | // not delete is worth a warning, not a failed run. | |
| 757 | try { | |
| 758 | await gitProvider.deleteBranch(existingPR.head) | |
| 759 | this.logger.success(`✅ Auto-closed PR #${existingPR.number} and deleted branch ${existingPR.head}`) | |
| 760 | } | |
| 761 | catch (deleteError) { | |
| 762 | this.logger.warn(`⚠️ Auto-closed PR #${existingPR.number} but could not delete ${existingPR.head}:`, deleteError) | |
| 763 | } | |
| 757 | 764 | continue |
| 758 | 765 | } |
| 759 | 766 | catch (error) { |