Struct roctogen::endpoints::issues::Issues [−][src]
pub struct Issues<'api> { /* fields omitted */ }
Implementations
impl<'api> Issues<'api>
[src]
impl<'api> Issues<'api>
[src]pub async fn add_assignees_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddAssignees
) -> Result<IssueSimple, IssuesAddAssigneesError>
[src]
pub async fn add_assignees_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddAssignees
) -> Result<IssueSimple, IssuesAddAssigneesError>
[src]Add assignees to an issue
Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.
GitHub API docs for add_assignees
pub fn add_assignees(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddAssignees
) -> Result<IssueSimple, IssuesAddAssigneesError>
[src]
pub fn add_assignees(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddAssignees
) -> Result<IssueSimple, IssuesAddAssigneesError>
[src]Add assignees to an issue
Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.
GitHub API docs for add_assignees
pub async fn add_labels_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddLabels
) -> Result<Vec<Label>, IssuesAddLabelsError>
[src]
pub async fn add_labels_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddLabels
) -> Result<Vec<Label>, IssuesAddLabelsError>
[src]pub fn add_labels(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddLabels
) -> Result<Vec<Label>, IssuesAddLabelsError>
[src]
pub fn add_labels(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesAddLabels
) -> Result<Vec<Label>, IssuesAddLabelsError>
[src]pub async fn check_user_can_be_assigned_async(
&self,
owner: &str,
repo: &str,
assignee: &str
) -> Result<(), IssuesCheckUserCanBeAssignedError>
[src]
pub async fn check_user_can_be_assigned_async(
&self,
owner: &str,
repo: &str,
assignee: &str
) -> Result<(), IssuesCheckUserCanBeAssignedError>
[src]Check if a user can be assigned
Checks if a user has permission to be assigned to an issue in this repository.
If the assignee
can be assigned to issues in the repository, a 204
header with no content is returned.
Otherwise a 404
status code is returned.
GitHub API docs for check_user_can_be_assigned
pub fn check_user_can_be_assigned(
&self,
owner: &str,
repo: &str,
assignee: &str
) -> Result<(), IssuesCheckUserCanBeAssignedError>
[src]
pub fn check_user_can_be_assigned(
&self,
owner: &str,
repo: &str,
assignee: &str
) -> Result<(), IssuesCheckUserCanBeAssignedError>
[src]Check if a user can be assigned
Checks if a user has permission to be assigned to an issue in this repository.
If the assignee
can be assigned to issues in the repository, a 204
header with no content is returned.
Otherwise a 404
status code is returned.
GitHub API docs for check_user_can_be_assigned
pub async fn create_async(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreate
) -> Result<Issue, IssuesCreateError>
[src]
pub async fn create_async(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreate
) -> Result<Issue, IssuesCreateError>
[src]Create an issue
Any user with pull access to a repository can create an issue. If issues are disabled in the repository, the API returns a 410 Gone
status.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See “Abuse rate limits” and “Dealing with abuse rate limits” for details.
pub fn create(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreate
) -> Result<Issue, IssuesCreateError>
[src]
pub fn create(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreate
) -> Result<Issue, IssuesCreateError>
[src]Create an issue
Any user with pull access to a repository can create an issue. If issues are disabled in the repository, the API returns a 410 Gone
status.
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See “Abuse rate limits” and “Dealing with abuse rate limits” for details.
pub async fn create_comment_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesCreateComment
) -> Result<IssueComment, IssuesCreateCommentError>
[src]
pub async fn create_comment_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesCreateComment
) -> Result<IssueComment, IssuesCreateCommentError>
[src]Create an issue comment
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See “Abuse rate limits” and “Dealing with abuse rate limits” for details.
GitHub API docs for create_comment
pub fn create_comment(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesCreateComment
) -> Result<IssueComment, IssuesCreateCommentError>
[src]
pub fn create_comment(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PostIssuesCreateComment
) -> Result<IssueComment, IssuesCreateCommentError>
[src]Create an issue comment
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See “Abuse rate limits” and “Dealing with abuse rate limits” for details.
GitHub API docs for create_comment
pub async fn create_label_async(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateLabel
) -> Result<Label, IssuesCreateLabelError>
[src]
pub async fn create_label_async(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateLabel
) -> Result<Label, IssuesCreateLabelError>
[src]pub fn create_label(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateLabel
) -> Result<Label, IssuesCreateLabelError>
[src]
pub fn create_label(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateLabel
) -> Result<Label, IssuesCreateLabelError>
[src]pub async fn create_milestone_async(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateMilestone
) -> Result<Milestone, IssuesCreateMilestoneError>
[src]
pub async fn create_milestone_async(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateMilestone
) -> Result<Milestone, IssuesCreateMilestoneError>
[src]pub fn create_milestone(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateMilestone
) -> Result<Milestone, IssuesCreateMilestoneError>
[src]
pub fn create_milestone(
&self,
owner: &str,
repo: &str,
body: PostIssuesCreateMilestone
) -> Result<Milestone, IssuesCreateMilestoneError>
[src]pub async fn delete_comment_async(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<(), IssuesDeleteCommentError>
[src]
pub async fn delete_comment_async(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<(), IssuesDeleteCommentError>
[src]pub fn delete_comment(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<(), IssuesDeleteCommentError>
[src]
pub fn delete_comment(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<(), IssuesDeleteCommentError>
[src]pub async fn delete_label_async(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<(), IssuesDeleteLabelError>
[src]
pub async fn delete_label_async(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<(), IssuesDeleteLabelError>
[src]pub fn delete_label(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<(), IssuesDeleteLabelError>
[src]
pub fn delete_label(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<(), IssuesDeleteLabelError>
[src]pub async fn delete_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<(), IssuesDeleteMilestoneError>
[src]
pub async fn delete_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<(), IssuesDeleteMilestoneError>
[src]pub fn delete_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<(), IssuesDeleteMilestoneError>
[src]
pub fn delete_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<(), IssuesDeleteMilestoneError>
[src]pub async fn get_async(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<Issue, IssuesGetError>
[src]
pub async fn get_async(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<Issue, IssuesGetError>
[src]Get an issue
The API returns a 301 Moved Permanently
status if the issue was
transferred to another repository. If
the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API
returns a 404 Not Found
status. If the issue was deleted from a repository where the authenticated user has read
access, the API returns a 410 Gone
status. To receive webhook events for transferred and deleted issues, subscribe
to the issues
webhook.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
The get_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn get(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<Issue, IssuesGetError>
[src]
pub fn get(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<Issue, IssuesGetError>
[src]Get an issue
The API returns a 301 Moved Permanently
status if the issue was
transferred to another repository. If
the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API
returns a 404 Not Found
status. If the issue was deleted from a repository where the authenticated user has read
access, the API returns a 410 Gone
status. To receive webhook events for transferred and deleted issues, subscribe
to the issues
webhook.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
The get
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn get_comment_async(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<IssueComment, IssuesGetCommentError>
[src]
pub async fn get_comment_async(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<IssueComment, IssuesGetCommentError>
[src]Get an issue comment
GitHub API docs for get_comment
The get_comment_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn get_comment(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<IssueComment, IssuesGetCommentError>
[src]
pub fn get_comment(
&self,
owner: &str,
repo: &str,
comment_id: i32
) -> Result<IssueComment, IssuesGetCommentError>
[src]Get an issue comment
GitHub API docs for get_comment
The get_comment
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn get_event_async(
&self,
owner: &str,
repo: &str,
event_id: i32
) -> Result<IssueEvent, IssuesGetEventError>
[src]
pub async fn get_event_async(
&self,
owner: &str,
repo: &str,
event_id: i32
) -> Result<IssueEvent, IssuesGetEventError>
[src]pub fn get_event(
&self,
owner: &str,
repo: &str,
event_id: i32
) -> Result<IssueEvent, IssuesGetEventError>
[src]
pub fn get_event(
&self,
owner: &str,
repo: &str,
event_id: i32
) -> Result<IssueEvent, IssuesGetEventError>
[src]pub async fn get_label_async(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<Label, IssuesGetLabelError>
[src]
pub async fn get_label_async(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<Label, IssuesGetLabelError>
[src]pub fn get_label(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<Label, IssuesGetLabelError>
[src]
pub fn get_label(
&self,
owner: &str,
repo: &str,
name: &str
) -> Result<Label, IssuesGetLabelError>
[src]pub async fn get_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<Milestone, IssuesGetMilestoneError>
[src]
pub async fn get_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<Milestone, IssuesGetMilestoneError>
[src]pub fn get_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<Milestone, IssuesGetMilestoneError>
[src]
pub fn get_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32
) -> Result<Milestone, IssuesGetMilestoneError>
[src]pub async fn list_async(
&self,
query_params: Option<impl Into<IssuesListParams<'api>>>
) -> Result<Vec<Issue>, IssuesListError>
[src]
pub async fn list_async(
&self,
query_params: Option<impl Into<IssuesListParams<'api>>>
) -> Result<Vec<Issue>, IssuesListError>
[src]List issues assigned to the authenticated user
List issues assigned to the authenticated user across all visible repositories including owned repositories, member
repositories, and organization repositories. You can use the filter
query parameter to fetch issues that are not
necessarily assigned to you.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
The list_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn list(
&self,
query_params: Option<impl Into<IssuesListParams<'api>>>
) -> Result<Vec<Issue>, IssuesListError>
[src]
pub fn list(
&self,
query_params: Option<impl Into<IssuesListParams<'api>>>
) -> Result<Vec<Issue>, IssuesListError>
[src]List issues assigned to the authenticated user
List issues assigned to the authenticated user across all visible repositories including owned repositories, member
repositories, and organization repositories. You can use the filter
query parameter to fetch issues that are not
necessarily assigned to you.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
The list
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn list_assignees_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListAssigneesParams>>
) -> Result<Vec<SimpleUser>, IssuesListAssigneesError>
[src]
pub async fn list_assignees_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListAssigneesParams>>
) -> Result<Vec<SimpleUser>, IssuesListAssigneesError>
[src]List assignees
Lists the available assignees for issues in a repository.
GitHub API docs for list_assignees
pub fn list_assignees(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListAssigneesParams>>
) -> Result<Vec<SimpleUser>, IssuesListAssigneesError>
[src]
pub fn list_assignees(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListAssigneesParams>>
) -> Result<Vec<SimpleUser>, IssuesListAssigneesError>
[src]List assignees
Lists the available assignees for issues in a repository.
GitHub API docs for list_assignees
pub async fn list_comments_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListCommentsParams>>
) -> Result<Vec<IssueComment>, IssuesListCommentsError>
[src]
pub async fn list_comments_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListCommentsParams>>
) -> Result<Vec<IssueComment>, IssuesListCommentsError>
[src]List issue comments
Issue Comments are ordered by ascending ID.
GitHub API docs for list_comments
The list_comments_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn list_comments(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListCommentsParams>>
) -> Result<Vec<IssueComment>, IssuesListCommentsError>
[src]
pub fn list_comments(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListCommentsParams>>
) -> Result<Vec<IssueComment>, IssuesListCommentsError>
[src]List issue comments
Issue Comments are ordered by ascending ID.
GitHub API docs for list_comments
The list_comments
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn list_comments_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListCommentsForRepoParams<'api>>>
) -> Result<Vec<IssueComment>, IssuesListCommentsForRepoError>
[src]
pub async fn list_comments_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListCommentsForRepoParams<'api>>>
) -> Result<Vec<IssueComment>, IssuesListCommentsForRepoError>
[src]List issue comments for a repository
By default, Issue Comments are ordered by ascending ID.
GitHub API docs for list_comments_for_repo
The list_comments_for_repo_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn list_comments_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListCommentsForRepoParams<'api>>>
) -> Result<Vec<IssueComment>, IssuesListCommentsForRepoError>
[src]
pub fn list_comments_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListCommentsForRepoParams<'api>>>
) -> Result<Vec<IssueComment>, IssuesListCommentsForRepoError>
[src]List issue comments for a repository
By default, Issue Comments are ordered by ascending ID.
GitHub API docs for list_comments_for_repo
The list_comments_for_repo
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn list_events_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsError>
[src]
pub async fn list_events_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsError>
[src]List issue events
GitHub API docs for list_events
The list_events_async
endpoint is enabled with the starfox
cargo feature.
pub fn list_events(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsError>
[src]
pub fn list_events(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsError>
[src]List issue events
GitHub API docs for list_events
The list_events
endpoint is enabled with the starfox
cargo feature.
pub async fn list_events_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListEventsForRepoParams>>
) -> Result<Vec<IssueEvent>, IssuesListEventsForRepoError>
[src]
pub async fn list_events_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListEventsForRepoParams>>
) -> Result<Vec<IssueEvent>, IssuesListEventsForRepoError>
[src]List issue events for a repository
GitHub API docs for list_events_for_repo
The list_events_for_repo_async
endpoint is enabled with the starfox
cargo feature.
pub fn list_events_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListEventsForRepoParams>>
) -> Result<Vec<IssueEvent>, IssuesListEventsForRepoError>
[src]
pub fn list_events_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListEventsForRepoParams>>
) -> Result<Vec<IssueEvent>, IssuesListEventsForRepoError>
[src]List issue events for a repository
GitHub API docs for list_events_for_repo
The list_events_for_repo
endpoint is enabled with the starfox
cargo feature.
pub async fn list_events_for_timeline_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsForTimelineParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsForTimelineError>
[src]
pub async fn list_events_for_timeline_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsForTimelineParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsForTimelineError>
[src]List timeline events for an issue
GitHub API docs for list_events_for_timeline
The list_events_for_timeline_async
endpoint is enabled with the mockingbird
cargo feature.
The list_events_for_timeline_async
endpoint is enabled with the starfox
cargo feature.
pub fn list_events_for_timeline(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsForTimelineParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsForTimelineError>
[src]
pub fn list_events_for_timeline(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListEventsForTimelineParams>>
) -> Result<Vec<IssueEventForIssue>, IssuesListEventsForTimelineError>
[src]List timeline events for an issue
GitHub API docs for list_events_for_timeline
The list_events_for_timeline
endpoint is enabled with the mockingbird
cargo feature.
The list_events_for_timeline
endpoint is enabled with the starfox
cargo feature.
pub async fn list_for_authenticated_user_async(
&self,
query_params: Option<impl Into<IssuesListForAuthenticatedUserParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForAuthenticatedUserError>
[src]
pub async fn list_for_authenticated_user_async(
&self,
query_params: Option<impl Into<IssuesListForAuthenticatedUserParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForAuthenticatedUserError>
[src]List user account issues assigned to the authenticated user
List issues across owned and member repositories assigned to the authenticated user.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
GitHub API docs for list_for_authenticated_user
The list_for_authenticated_user_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn list_for_authenticated_user(
&self,
query_params: Option<impl Into<IssuesListForAuthenticatedUserParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForAuthenticatedUserError>
[src]
pub fn list_for_authenticated_user(
&self,
query_params: Option<impl Into<IssuesListForAuthenticatedUserParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForAuthenticatedUserError>
[src]List user account issues assigned to the authenticated user
List issues across owned and member repositories assigned to the authenticated user.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
GitHub API docs for list_for_authenticated_user
The list_for_authenticated_user
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn list_for_org_async(
&self,
org: &str,
query_params: Option<impl Into<IssuesListForOrgParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForOrgError>
[src]
pub async fn list_for_org_async(
&self,
org: &str,
query_params: Option<impl Into<IssuesListForOrgParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForOrgError>
[src]List organization issues assigned to the authenticated user
List issues in an organization assigned to the authenticated user.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
GitHub API docs for list_for_org
The list_for_org_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn list_for_org(
&self,
org: &str,
query_params: Option<impl Into<IssuesListForOrgParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForOrgError>
[src]
pub fn list_for_org(
&self,
org: &str,
query_params: Option<impl Into<IssuesListForOrgParams<'api>>>
) -> Result<Vec<Issue>, IssuesListForOrgError>
[src]List organization issues assigned to the authenticated user
List issues in an organization assigned to the authenticated user.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
GitHub API docs for list_for_org
The list_for_org
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn list_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListForRepoParams<'api>>>
) -> Result<Vec<IssueSimple>, IssuesListForRepoError>
[src]
pub async fn list_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListForRepoParams<'api>>>
) -> Result<Vec<IssueSimple>, IssuesListForRepoError>
[src]List repository issues
List issues in a repository.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
GitHub API docs for list_for_repo
The list_for_repo_async
endpoint is enabled with the squirrel-girl
cargo feature.
pub fn list_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListForRepoParams<'api>>>
) -> Result<Vec<IssueSimple>, IssuesListForRepoError>
[src]
pub fn list_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListForRepoParams<'api>>>
) -> Result<Vec<IssueSimple>, IssuesListForRepoError>
[src]List repository issues
List issues in a repository.
Note: GitHub’s REST API v3 considers every pull request an issue, but not every issue is a pull request. For this
reason, “Issues” endpoints may return both issues and pull requests in the response. You can identify pull requests by
the pull_request
key. Be aware that the id
of a pull request returned from “Issues” endpoints will be an issue id. To find out the pull
request id, use the “List pull requests” endpoint.
GitHub API docs for list_for_repo
The list_for_repo
endpoint is enabled with the squirrel-girl
cargo feature.
pub async fn list_labels_for_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
query_params: Option<impl Into<IssuesListLabelsForMilestoneParams>>
) -> Result<Vec<Label>, IssuesListLabelsForMilestoneError>
[src]
pub async fn list_labels_for_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
query_params: Option<impl Into<IssuesListLabelsForMilestoneParams>>
) -> Result<Vec<Label>, IssuesListLabelsForMilestoneError>
[src]pub fn list_labels_for_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
query_params: Option<impl Into<IssuesListLabelsForMilestoneParams>>
) -> Result<Vec<Label>, IssuesListLabelsForMilestoneError>
[src]
pub fn list_labels_for_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
query_params: Option<impl Into<IssuesListLabelsForMilestoneParams>>
) -> Result<Vec<Label>, IssuesListLabelsForMilestoneError>
[src]pub async fn list_labels_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListLabelsForRepoParams>>
) -> Result<Vec<Label>, IssuesListLabelsForRepoError>
[src]
pub async fn list_labels_for_repo_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListLabelsForRepoParams>>
) -> Result<Vec<Label>, IssuesListLabelsForRepoError>
[src]pub fn list_labels_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListLabelsForRepoParams>>
) -> Result<Vec<Label>, IssuesListLabelsForRepoError>
[src]
pub fn list_labels_for_repo(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListLabelsForRepoParams>>
) -> Result<Vec<Label>, IssuesListLabelsForRepoError>
[src]pub async fn list_labels_on_issue_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListLabelsOnIssueParams>>
) -> Result<Vec<Label>, IssuesListLabelsOnIssueError>
[src]
pub async fn list_labels_on_issue_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListLabelsOnIssueParams>>
) -> Result<Vec<Label>, IssuesListLabelsOnIssueError>
[src]pub fn list_labels_on_issue(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListLabelsOnIssueParams>>
) -> Result<Vec<Label>, IssuesListLabelsOnIssueError>
[src]
pub fn list_labels_on_issue(
&self,
owner: &str,
repo: &str,
issue_number: i32,
query_params: Option<impl Into<IssuesListLabelsOnIssueParams>>
) -> Result<Vec<Label>, IssuesListLabelsOnIssueError>
[src]pub async fn list_milestones_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListMilestonesParams<'api>>>
) -> Result<Vec<Milestone>, IssuesListMilestonesError>
[src]
pub async fn list_milestones_async(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListMilestonesParams<'api>>>
) -> Result<Vec<Milestone>, IssuesListMilestonesError>
[src]pub fn list_milestones(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListMilestonesParams<'api>>>
) -> Result<Vec<Milestone>, IssuesListMilestonesError>
[src]
pub fn list_milestones(
&self,
owner: &str,
repo: &str,
query_params: Option<impl Into<IssuesListMilestonesParams<'api>>>
) -> Result<Vec<Milestone>, IssuesListMilestonesError>
[src]pub async fn lock_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesLock
) -> Result<(), IssuesLockError>
[src]
pub async fn lock_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesLock
) -> Result<(), IssuesLockError>
[src]Lock an issue
Users with push access can lock an issue or pull request’s conversation.
Note that, if you choose not to pass any parameters, you’ll need to set Content-Length
to zero when calling out to this endpoint. For more information, see “HTTP verbs.”
pub fn lock(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesLock
) -> Result<(), IssuesLockError>
[src]
pub fn lock(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesLock
) -> Result<(), IssuesLockError>
[src]Lock an issue
Users with push access can lock an issue or pull request’s conversation.
Note that, if you choose not to pass any parameters, you’ll need to set Content-Length
to zero when calling out to this endpoint. For more information, see “HTTP verbs.”
pub async fn remove_all_labels_async(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesRemoveAllLabelsError>
[src]
pub async fn remove_all_labels_async(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesRemoveAllLabelsError>
[src]pub fn remove_all_labels(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesRemoveAllLabelsError>
[src]
pub fn remove_all_labels(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesRemoveAllLabelsError>
[src]pub async fn remove_assignees_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: DeleteIssuesRemoveAssignees
) -> Result<IssueSimple, IssuesRemoveAssigneesError>
[src]
pub async fn remove_assignees_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: DeleteIssuesRemoveAssignees
) -> Result<IssueSimple, IssuesRemoveAssigneesError>
[src]Remove assignees from an issue
Removes one or more assignees from an issue.
GitHub API docs for remove_assignees
pub fn remove_assignees(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: DeleteIssuesRemoveAssignees
) -> Result<IssueSimple, IssuesRemoveAssigneesError>
[src]
pub fn remove_assignees(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: DeleteIssuesRemoveAssignees
) -> Result<IssueSimple, IssuesRemoveAssigneesError>
[src]Remove assignees from an issue
Removes one or more assignees from an issue.
GitHub API docs for remove_assignees
pub async fn remove_label_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
name: &str
) -> Result<Vec<Label>, IssuesRemoveLabelError>
[src]
pub async fn remove_label_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
name: &str
) -> Result<Vec<Label>, IssuesRemoveLabelError>
[src]Remove a label from an issue
Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a 404 Not Found
status if the label does not exist.
GitHub API docs for remove_label
pub fn remove_label(
&self,
owner: &str,
repo: &str,
issue_number: i32,
name: &str
) -> Result<Vec<Label>, IssuesRemoveLabelError>
[src]
pub fn remove_label(
&self,
owner: &str,
repo: &str,
issue_number: i32,
name: &str
) -> Result<Vec<Label>, IssuesRemoveLabelError>
[src]Remove a label from an issue
Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a 404 Not Found
status if the label does not exist.
GitHub API docs for remove_label
pub async fn set_labels_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesSetLabels
) -> Result<Vec<Label>, IssuesSetLabelsError>
[src]
pub async fn set_labels_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesSetLabels
) -> Result<Vec<Label>, IssuesSetLabelsError>
[src]Set labels for an issue
Removes any previous labels and sets the new labels for an issue.
GitHub API docs for set_labels
pub fn set_labels(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesSetLabels
) -> Result<Vec<Label>, IssuesSetLabelsError>
[src]
pub fn set_labels(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PutIssuesSetLabels
) -> Result<Vec<Label>, IssuesSetLabelsError>
[src]Set labels for an issue
Removes any previous labels and sets the new labels for an issue.
GitHub API docs for set_labels
pub async fn unlock_async(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesUnlockError>
[src]
pub async fn unlock_async(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesUnlockError>
[src]pub fn unlock(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesUnlockError>
[src]
pub fn unlock(
&self,
owner: &str,
repo: &str,
issue_number: i32
) -> Result<(), IssuesUnlockError>
[src]pub async fn update_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PatchIssuesUpdate
) -> Result<Issue, IssuesUpdateError>
[src]
pub async fn update_async(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PatchIssuesUpdate
) -> Result<Issue, IssuesUpdateError>
[src]pub fn update(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PatchIssuesUpdate
) -> Result<Issue, IssuesUpdateError>
[src]
pub fn update(
&self,
owner: &str,
repo: &str,
issue_number: i32,
body: PatchIssuesUpdate
) -> Result<Issue, IssuesUpdateError>
[src]pub async fn update_comment_async(
&self,
owner: &str,
repo: &str,
comment_id: i32,
body: PatchIssuesUpdateComment
) -> Result<IssueComment, IssuesUpdateCommentError>
[src]
pub async fn update_comment_async(
&self,
owner: &str,
repo: &str,
comment_id: i32,
body: PatchIssuesUpdateComment
) -> Result<IssueComment, IssuesUpdateCommentError>
[src]pub fn update_comment(
&self,
owner: &str,
repo: &str,
comment_id: i32,
body: PatchIssuesUpdateComment
) -> Result<IssueComment, IssuesUpdateCommentError>
[src]
pub fn update_comment(
&self,
owner: &str,
repo: &str,
comment_id: i32,
body: PatchIssuesUpdateComment
) -> Result<IssueComment, IssuesUpdateCommentError>
[src]pub async fn update_label_async(
&self,
owner: &str,
repo: &str,
name: &str,
body: PatchIssuesUpdateLabel
) -> Result<Label, IssuesUpdateLabelError>
[src]
pub async fn update_label_async(
&self,
owner: &str,
repo: &str,
name: &str,
body: PatchIssuesUpdateLabel
) -> Result<Label, IssuesUpdateLabelError>
[src]pub fn update_label(
&self,
owner: &str,
repo: &str,
name: &str,
body: PatchIssuesUpdateLabel
) -> Result<Label, IssuesUpdateLabelError>
[src]
pub fn update_label(
&self,
owner: &str,
repo: &str,
name: &str,
body: PatchIssuesUpdateLabel
) -> Result<Label, IssuesUpdateLabelError>
[src]pub async fn update_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
body: PatchIssuesUpdateMilestone
) -> Result<Milestone, IssuesUpdateMilestoneError>
[src]
pub async fn update_milestone_async(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
body: PatchIssuesUpdateMilestone
) -> Result<Milestone, IssuesUpdateMilestoneError>
[src]pub fn update_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
body: PatchIssuesUpdateMilestone
) -> Result<Milestone, IssuesUpdateMilestoneError>
[src]
pub fn update_milestone(
&self,
owner: &str,
repo: &str,
milestone_number: i32,
body: PatchIssuesUpdateMilestone
) -> Result<Milestone, IssuesUpdateMilestoneError>
[src]