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

ci: Pick random reviewers from committer list #4001

Merged
merged 6 commits into from
Jan 17, 2024
Merged

ci: Pick random reviewers from committer list #4001

merged 6 commits into from
Jan 17, 2024

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Jan 17, 2024

Close #3967

Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
@Xuanwo Xuanwo merged commit 746cf43 into main Jan 17, 2024
8 checks passed
@Xuanwo Xuanwo deleted the reviewer branch January 17, 2024 08:34
}

// Extract committers from placeholder line
const committers = placeholderLine.match(/@[\w-]+/g).map(u => u.substring(1));
Copy link
Member

Choose a reason for hiding this comment

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

Weird parsing. If we don't use CODEOWNER native function, why not simply configure a JS array:

const candidate = [
  "Xuanwo",
  "Ji-Xinyou",
  ...
];

Copy link
Member Author

Choose a reason for hiding this comment

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

GitHub's UI natively supports CODEOWNERS to ensure we reference the correct GitHub IDs.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

idea: Pick random committers to review PRs
3 participants