Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat! Add IssueListByOrgOptions and update ListByOrg to use it #3694

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

Open
cpanato wants to merge 1 commit into google:master
base: master
Choose a base branch
Loading
from cpanato:add-type

Conversation

@cpanato
Copy link
Contributor

@cpanato cpanato commented Aug 20, 2025
edited by gmlewis
Loading

BREAKING CHANGE: ListByOrg now uses IssueListByOrgOptions instead of ListOptions.

we now can pass the Type of an issue to list issues for repo and orgs, so we can have a better filtering

https://docs.github.com/en/rest/issues/issues?apiVersion=2022年11月28日#list-repository-issues

Copy link
Contributor Author

cpanato commented Aug 20, 2025

Copy link
Collaborator

gmlewis commented Aug 20, 2025

Just FYI - I lost write access to this repo and this may cause unexpected delays for which I apologize.
You can watch that other PR to check on the status.

cpanato reacted with thumbs up emoji

Copy link
Contributor Author

cpanato commented Aug 20, 2025

no worries, thanks for the heads up

Copy link
Contributor Author

cpanato commented Sep 2, 2025

@gmlewis hello any updates on your permission?

Copy link
Collaborator

gmlewis commented Sep 2, 2025

@gmlewis hello any updates on your permission?

No. You can watch #3689 to check on the status.
I'm still attempting to get the attention of the owners of the repo to add me back as a maintainer.

cpanato reacted with confused emoji

Copy link
Contributor Author

cpanato commented Sep 2, 2025

thanks, that is sad :(

gmlewis reacted with thumbs up emoji

@gmlewis gmlewis changed the title (削除) add type to IssueListByRepoOptions and update ListByOrg to support type filter as well (削除ここまで) (追記) feat! Add IssueListByRepoOptions and update ListByOrg to use it (追記ここまで) Sep 22, 2025
@gmlewis gmlewis changed the title (削除) feat! Add IssueListByRepoOptions and update ListByOrg to use it (削除ここまで) (追記) feat! Add IssueListByOrgOptions and update ListByOrg to use it (追記ここまで) Sep 22, 2025
@gmlewis gmlewis added NeedsReview PR is awaiting a review before merging. Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). labels Sep 22, 2025
Copy link
Collaborator

gmlewis commented Sep 22, 2025

@cpanato - do you have time to resolve conflicts in this PR, or would you rather I do that?

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @cpanato!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging. (Either you or I could resolve conflicts as previously mentioned.)

@stevehipwell and/or @alexandear - might you have time for a code review? Thank you!

cpanato reacted with thumbs up emoji
Copy link
Contributor

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

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

LGTM

...pe filter as well
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
Copy link
Contributor Author

cpanato commented Sep 23, 2025

@gmlewis PTAL,rebased

gmlewis reacted with heart emoji

return issues, resp, nil
}

// IssueListByOrgOptions specifies the optional parameters to the
Copy link
Contributor

@alexandear alexandear Sep 23, 2025

Choose a reason for hiding this comment

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

Suggested change
// IssueListByOrgOptions specifies the optional parameters to the
// IssueListByOrgOptions specifies the optional parameter to the

return s.listIssues(ctx, u, opts)
}

func (s *IssuesService) listIssues(ctx context.Context, u string, opts *IssueListOptions) ([]*Issue, *Response, error) {
Copy link
Contributor

@alexandear alexandear Sep 23, 2025

Choose a reason for hiding this comment

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

After the change, listIssues is used only in the IssuesService.List. So, let's merge listIssues and List functions.

Copy link

codecov bot commented Sep 23, 2025
edited
Loading

Codecov Report

❌ Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.11%. Comparing base (ffc5df8) to head (99e98f3).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
github/issues.go 83.33% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## master #3694 +/- ##
==========================================
- Coverage 91.12% 91.11% -0.02% 
==========================================
 Files 187 187 
 Lines 16640 16655 +15 
==========================================
+ Hits 15164 15176 +12 
- Misses 1291 1293 +2 
- Partials 185 186 +1 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Reviewers

@gmlewis gmlewis Awaiting requested review from gmlewis

2 more reviewers

@alexandear alexandear alexandear left review comments

@stevehipwell stevehipwell stevehipwell approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). NeedsReview PR is awaiting a review before merging. waiting for reply

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /