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

Update status/checks retrieval from Github, move validation of CLA to use status instead of the label, move other validators to common location #242

Closed

Conversation

josephperrott
Copy link
Member

See individual commits.

@josephperrott josephperrott added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 24, 2021
@josephperrott josephperrott force-pushed the validate-combined-status branch 2 times, most recently from cf69b01 to 43115f1 Compare September 24, 2021 21:28
@josephperrott josephperrott changed the title Retrieve both github checks and github statuses for pull request commits, check if the CLA is signed for a PR using the status instead of the label Update status/checks retrieval from Github, move validation of CLA to use status instead of the label, move other validators to common location Sep 24, 2021
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This turned out pretty nice IMO! nice work 🎉

ng-dev/pr/common/validation/validations.ts Outdated Show resolved Hide resolved
ng-dev/pr/common/validation/validations.ts Outdated Show resolved Hide resolved
ng-dev/pr/common/validation/validations.ts Show resolved Hide resolved
ng-dev/pr/common/fetch-pull-request.ts Outdated Show resolved Hide resolved
ng-dev/pr/common/fetch-pull-request.ts Outdated Show resolved Hide resolved
ng-dev/pr/common/fetch-pull-request.ts Show resolved Hide resolved
@josephperrott josephperrott added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 27, 2021
@josephperrott josephperrott force-pushed the validate-combined-status branch from c858732 to b80e3ee Compare September 27, 2021 17:56
…d normalize them together

Previously we only retrieved the status for a pull request rather than also retrieving the results
for github check runs on commits.  It is more accurate to retrieve both and normalize them together
to check all statuses during validation.
…er-new-conflicts

Use the common fetch pr functions to get the pr from github in the discover-new-conflicts command.
…atus on pr merges

Rather than check if the CLA is signed based on the presense of a label, the cla/google status should be
used.

BREAKING CHANGE:
`claSignedLabel` is not longer used as an attribute on the `PullRequestConfig`
Move the merge ready label check validation to the common validations.
…valiations

Move the check of the overall CI pending or failing check to the common validations.
@josephperrott josephperrott force-pushed the validate-combined-status branch from b80e3ee to 4737402 Compare September 27, 2021 18:04
@josephperrott
Copy link
Member Author

This PR was merged into the repository by commit 93e501e.

josephperrott added a commit that referenced this pull request Sep 27, 2021
…er-new-conflicts (#242)

Use the common fetch pr functions to get the pr from github in the discover-new-conflicts command.

PR Close #242
josephperrott added a commit that referenced this pull request Sep 27, 2021
…atus on pr merges (#242)

Rather than check if the CLA is signed based on the presense of a label, the cla/google status should be
used.

BREAKING CHANGE:
`claSignedLabel` is not longer used as an attribute on the `PullRequestConfig`

PR Close #242
josephperrott added a commit that referenced this pull request Sep 27, 2021
…242)

Move the merge ready label check validation to the common validations.

PR Close #242
josephperrott added a commit that referenced this pull request Sep 27, 2021
…valiations (#242)

Move the check of the overall CI pending or failing check to the common validations.

PR Close #242
@josephperrott josephperrott deleted the validate-combined-status branch September 27, 2021 18:10
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants