Skip to content

Conversation

cpanato
Copy link
Contributor

@cpanato cpanato commented Aug 20, 2025

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

@cpanato
Copy link
Contributor Author

cpanato commented Aug 20, 2025

cc @gmlewis

@gmlewis
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
Copy link
Contributor Author

cpanato commented Aug 20, 2025

no worries, thanks for the heads up

@cpanato
Copy link
Contributor Author

cpanato commented Sep 2, 2025

@gmlewis hello any updates on your permission?

@gmlewis
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
Copy link
Contributor Author

cpanato commented Sep 2, 2025

thanks, that is sad :(

@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
@gmlewis
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!

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

@cpanato
Copy link
Contributor Author

cpanato commented Sep 23, 2025

@gmlewis PTAL,rebased

return issues, resp, nil
}

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

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

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

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
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
Development

Successfully merging this pull request may close these issues.

4 participants