autoupdate: fix: status of previous HEAD commit is evaluated after base branch update #109
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a Pull-Request was updated with it's base branch by the autoupdater, the GitHub Check status of the previous HEAD commit was evaluated.
If the check status for it was negative, the PR was suspended wrongly.
This PR fixes the issue.
The autoupdater now also logs a warning message if a check status for a different commit then the current HEAD commit returned by the update operation was retrieved.
This could happen if the branch is updated between the both API operations or GitHub returned old information (which can happen).
The autoupdater is not able to handle the situation correctly.