Skip to content

Conversation

@schnitzel001
Copy link

Added proposed changes as mentioned in #306.

Modify URL construction for listing project members based on inheritance option.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the listProjectMembers function to support including inherited members from parent groups. This addresses issue #306 by adding an optional include_inheritance parameter.

Changes:

  • Added include_inheritance boolean parameter to the ListProjectMembersSchema in schemas.ts
  • Modified listProjectMembers function in index.ts to conditionally use /members/all endpoint when inheritance is requested

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
schemas.ts Adds include_inheritance optional boolean parameter to the ListProjectMembersSchema
index.ts Implements conditional URL construction to use /members/all endpoint when include_inheritance is true

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4639 to +4649
if (options.include_inheritance) {
const url = new URL(
`${getEffectiveApiUrl()}/projects/${encodeURIComponent(effectiveProjectId)}/members/all`
);
}
else
{
const url = new URL(
`${getEffectiveApiUrl()}/projects/${encodeURIComponent(effectiveProjectId)}/members`
);
}
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The url variable is declared within the if/else block scopes, making it inaccessible to the code at line 4652 and beyond that tries to use it. Declare url before the if statement and assign it within each branch without the const keyword.

Copilot uses AI. Check for mistakes.
Comment on lines +4644 to +4645
else
{
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The opening brace should be on the same line as else to maintain consistency with the project's formatting style (as seen throughout the rest of the codebase).

Copilot uses AI. Check for mistakes.
Copy link
Owner

@zereight zereight left a comment

Choose a reason for hiding this comment

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

check ai reviews

@schnitzel001
Copy link
Author

Not needed anymore as solved with #316

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