Skip to content

Share query parameter building for repository issue lists - #160

Merged
SeanTAllen merged 1 commit into
mainfrom
extract-issue-list-query-params
Dec 1, 2026
Merged

SeanTAllen merged 1 commit into
mainfrom
extract-issue-list-query-params

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

GetRepositoryIssues and Repository.get_issues each built the same list of query parameters. Adding a parameter meant changing both copies, and no test failed if you missed one. Both methods now call one private helper, and new tests assert the exact query string that Repository.get_issues sends.

I checked the other convenience methods for the same duplication. None of them build more than one query parameter, so listing issues was the only case.

GetRepositoryIssues and Repository.get_issues each built the same list
of query parameters. Adding a parameter meant changing both copies, and
no test failed if you missed one. Both methods now call one private
helper, and new tests assert the exact query string that
Repository.get_issues sends.

I checked the other convenience methods for the same duplication. None
of them build more than one query parameter, so listing issues was the
only case.

Closes #83
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Dec 1, 2026
@SeanTAllen
SeanTAllen merged commit 25185c6 into main Dec 1, 2026
8 checks passed
@SeanTAllen
SeanTAllen deleted the extract-issue-list-query-params branch December 1, 2026 05:42
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Dec 1, 2026
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