Skip to content
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

Add support of getting authenticated user assigned issues #22

Merged
merged 4 commits into from May 15, 2024

Conversation

pmiossec
Copy link
Member

@pmiossec pmiossec commented May 7, 2024

to be able to have GitHub issues support in commit templates:

image

/// <param name="state">state of the issues returned. Choice: "open", "closed", "all"</param>
/// <param name="includePullRequests">true to include pull requests; otherwise, false.</param>
/// <returns>a list of issues assigned to the authenticated user.</returns>
public List<Issue> GetAssignedIssues(string state = "open", bool includePullRequests = false)
Copy link
Member

Choose a reason for hiding this comment

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

I'd caution against returning mutable collections. Consider returning a read-only list.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have added a refactoring commit to stay consistent and do the same for all the lists returned.

@pmiossec pmiossec merged commit 8a590e3 into master May 15, 2024
1 check passed
@pmiossec pmiossec deleted the github_issues branch May 15, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants