Skip to content

Commit

Permalink
always update release PR, even if title/body do not change (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
meorphis authored Nov 7, 2024
1 parent 3018456 commit af737fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1146,15 +1146,15 @@ export class Manifest {
existing: PullRequest,
pullRequest: ReleasePullRequest
): Promise<PullRequest | undefined> {
// If unchanged, no need to push updates
// If the body and title are unchanged, update anyways since some commits that are not included in the PR body
// may have been added
if (
existing.title === pullRequest.title.toString() &&
existing.body === pullRequest.body.toString()
) {
this.logger.info(
`PR https://github.com/${this.repository.owner}/${this.repository.repo}/pull/${existing.number} remained the same`
`PR https://github.com/${this.repository.owner}/${this.repository.repo}/pull/${existing.number} remained the same - continuing anyways`
);
return undefined;
}

const updatedPullRequest = await this.github.updatePullRequest(
Expand Down

0 comments on commit af737fd

Please sign in to comment.