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

Filter reviews based on workspace source #702

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

gayathrir11
Copy link
Contributor

No description provided.

@gayathrir11 gayathrir11 requested a review from a team as a code owner August 29, 2023 09:25
@github-actions
Copy link

github-actions bot commented Aug 29, 2023

Test Results

107 files  ±0  107 suites  ±0   5m 33s ⏱️ +16s
549 tests ±0  548 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit 4ec29a2. ± Comparison against base commit 7453a51.

♻️ This comment has been updated with latest results.

@gayathrir11 gayathrir11 changed the title Filters reviews based on the target branch Filter reviews based on the target branch Aug 29, 2023
@gayathrir11 gayathrir11 changed the title Filter reviews based on the target branch Filter reviews based on workspace source Aug 29, 2023
@gayathrir11 gayathrir11 force-pushed the reviews branch 2 times, most recently from c8c4922 to 40949cd Compare August 29, 2023 16:37
Copy link
Contributor

@kevin-m-knight-gs kevin-m-knight-gs left a comment

Choose a reason for hiding this comment

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

First, if sources is null or empty, that should mean all sources should be accepted. The logic as you have it now means that no sources will be accepted. You can fix this by only applying the filter on the MR stream if sources is non-null and non-empty.

Second, if sources is of size 1, then the target branch should be included in the MergeRequestFilter. It's best to filter things on the GitLab side when possible.

Third, if you are applying the sources filter on the MR stream, then you should use a Set rather than a List.

@gayathrir11 gayathrir11 force-pushed the reviews branch 3 times, most recently from 8931bc1 to 10732cc Compare August 30, 2023 13:03
@kevin-m-knight-gs kevin-m-knight-gs merged commit e2e5817 into finos:master Aug 31, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants