Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.1] batch-changes: ensure PR is only approved after code owner review#54174

Merged
keegancsmith merged 1 commit into
5.1from
backport-53601-to-5.1
Jun 27, 2023
Merged

[Backport 5.1] batch-changes: ensure PR is only approved after code owner review#54174
keegancsmith merged 1 commit into
5.1from
backport-53601-to-5.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Attempts to address https://github.com/sourcegraph/sourcegraph/issues/50874

By getting the "ReviewDecision" from a PR which is only "APPROVED" once a codeowner (if required) has reviewed the PR, otherwise this field returns "REVIEW_REQUIRED" or "CHANGES_REQUSTED".

Given there is a no longer a requirement for events on github PRs, we don't need to calculate if the changeset is older than events before computing the state.

Test plan

CI passing, tested locally with a repo on ghe.sgdev.org with a codeowners file
Backport 6ea307e from #53601

…3601)

Attempts to address
https://github.com/sourcegraph/sourcegraph/issues/50874

By getting the "ReviewDecision" from a PR which is only "APPROVED" once
a codeowner (if required) has reviewed the PR, otherwise this field
returns "REVIEW_REQUIRED" or "CHANGES_REQUSTED".

Given there is a no longer a requirement for events on github PRs, we
don't need to calculate if the changeset is older than events before
computing the state.

## Test plan

CI passing, tested locally with a repo on ghe.sgdev.org with a
codeowners file

(cherry picked from commit 6ea307e)
@github-actions github-actions Bot requested a review from davejrt June 26, 2023 14:48
@github-actions github-actions Bot added cla-signed backports EE/paper cuts customer issues that will be worked on as part of EE rotation backported-to-5.1 labels Jun 26, 2023
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@keegancsmith keegancsmith merged commit 5a7abeb into 5.1 Jun 27, 2023
@keegancsmith keegancsmith deleted the backport-53601-to-5.1 branch June 27, 2023 10:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backports cla-signed EE/paper cuts customer issues that will be worked on as part of EE rotation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants