avoid unnecessary pr update calls#738
Conversation
Current Aviator status
This PR was merged using Aviator.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
✅ FlexReview StatusCommon Owner:
Review SLO: |
There was a problem hiding this comment.
Code Review
This pull request introduces a new UpdatePullRequestIfChanged method to the GitHub client to avoid redundant API calls and webhooks by verifying if fields have actually changed before performing an update. It also includes widespread formatting adjustments to fmt.Fprint calls and updates the .gitignore. Feedback suggests improving the change detection logic by normalizing branch name prefixes and line endings in the pull request body to prevent false-positive updates.
3c531b4 to
3ab8ad8
Compare
resending unchanged fields like BaseRefName makes github fire extra pull_request webhooks, doubling workflow runs in consumer repos.