Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue a PR refresh if CI status is pending #235

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

bastelfreak
Copy link
Member

@bastelfreak bastelfreak commented Sep 30, 2020

This is a rebase of #214
The original commit message:


the status is pending if one configured check is still running. If a PR
was just created, the checks haven't passed/failed yet. This wouldn't be
bad IF we would get notifications if they finish. We could implement
travis CI notification parsing for this, but people might implement
other checks as well. We can simply queue a job that updates the PR.

This fixes #213 in parts. If we update the PR and the status is still
pending, we don't queue another job. After some thoughts it's probably a
good idea to move the logic from validate_status() to
queue_validation() and validate().

@bastelfreak bastelfreak added the bug Something isn't working label Sep 30, 2020
@bastelfreak bastelfreak requested a review from a team as a code owner September 30, 2020 21:13
@bastelfreak bastelfreak self-assigned this Sep 30, 2020
This is a rebase of voxpupuli#214
The original commit message:

---

the status is pending if one configured check is still running. If a PR
was just created, the checks haven't passed/failed yet. This wouldn't be
bad IF we would get notifications if they finish. We could implement
travis CI notification parsing for this, but people might implement
other checks as well. We can simply queue a job that updates the PR.

This fixes voxpupuli#213 in parts. If we update the PR and the status is still
pending, we don't queue another job. After some thoughts it's probably a
good idea to move the logic from validate_status() to
`queue_validation()` and `validate()`.
@Flipez Flipez merged commit d3effbb into voxpupuli:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests-fail label isn't removed after tests turn green
2 participants