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 ExpediaGroup#706 to another helper
@treyp treyp requested a review from a team as a code owner August 22, 2025 21:50
org: context.repo.owner,
team_slug: team,
per_page: 100
})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

replacement for this, but with pagination, added in #705

export class IsUserCoreMember extends HelperInputs {}

export const isUserCoreMember = async ({ pull_number, login = context.actor }: IsUserCoreMember) => {
export const isUserCoreMember = async ({ pull_number, login = context.actor, codeowners_overrides }: IsUserCoreMember) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

basically just bringing in the param, already defined in HelperInputs, to this helper

export const getCoreMemberLogins = async (pull_number: number, teams?: string[]) => {
const codeOwners = teams ?? getCodeOwnersFromEntries(await getRequiredCodeOwnersEntries(pull_number));
export const getCoreMemberLogins = async (pull_number: number, teams?: string[], codeowners_overrides?: string) => {
const codeOwners = teams ?? getCodeOwnersFromEntries(await getRequiredCodeOwnersEntries(pull_number, codeowners_overrides));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

getRequiredCodeOwnersEntries already supports codeowners_overrides thanks to #706, just need to pass forward the argument

@treyp
Copy link
Contributor Author

treyp commented Aug 22, 2025

replaced with #738

@treyp treyp closed this Aug 22, 2025
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.

1 participant