Skip to content

Conversation

@treyp
Copy link
Contributor

@treyp treyp commented Aug 22, 2025

📝 Description

Bring the codeowners_overrides parameter introduced in #705 and #706 to another helper, this time to the is-user-core-member helper.

Extends the functionality from #706 to another helper
export const isUserCoreMember = async ({ pull_number, login = context.actor, codeowners_overrides }: IsUserCoreMember) => {
const pullNumber = Number(pull_number);
const coreMembers = await getCoreMemberLogins(pullNumber);
const coreMembers = await getCoreMemberLogins(pullNumber, undefined, codeowners_overrides);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we refactor this method signature to accept a params object so we don't need to pass undefined?

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.

3 participants