pub struct PullsClient { /* private fields */ }
Expand description
Pulls API 客户端
Implementations§
Source§impl PullsClient
impl PullsClient
Sourcepub async fn get_repo_pulls_number_reviews(
&self,
repo: String,
number: String,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_repo_pulls_number_reviews( &self, repo: String, number: String, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
查询特定 pull reviews 列表。List pull reviews.
Sourcepub async fn post_repo_pulls_number_reviews(
&self,
repo: String,
number: String,
post_pull_review_form: Value,
) -> Result<Value>
pub async fn post_repo_pulls_number_reviews( &self, repo: String, number: String, post_pull_review_form: Value, ) -> Result<Value>
新增一次 pull request 评审。Create a pull review.
Sourcepub async fn get_repo_pulls_number_reviews_review_id_comments(
&self,
repo: String,
number: i64,
review_id: i64,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_repo_pulls_number_reviews_review_id_comments( &self, repo: String, number: i64, review_id: i64, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
查询指定 Pull Review Comments 列表评论。List pull review comments.
Sourcepub async fn get_repo_pulls_number_assignees_assignee(
&self,
repo: String,
number: String,
assignee: String,
) -> Result<Value>
pub async fn get_repo_pulls_number_assignees_assignee( &self, repo: String, number: String, assignee: String, ) -> Result<Value>
检查用户是否可以被添加到 PullRequest 的 Assignees 中。 Checks if a user can be assigned to a pull request.
Sourcepub async fn get_repo_pulls_number_labels(
&self,
repo: String,
number: String,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_repo_pulls_number_labels( &self, repo: String, number: String, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
查询 Pull 的标签(label) 列表。List labels for a pull.
Sourcepub async fn post_repo_pulls_number_labels(
&self,
repo: String,
number: String,
post_pull_labels_form: Value,
) -> Result<Value>
pub async fn post_repo_pulls_number_labels( &self, repo: String, number: String, post_pull_labels_form: Value, ) -> Result<Value>
新增 Pull 标签。Add labels to a pull.
Sourcepub async fn put_repo_pulls_number_labels(
&self,
repo: String,
number: String,
put_pull_labels_form: Value,
) -> Result<Value>
pub async fn put_repo_pulls_number_labels( &self, repo: String, number: String, put_pull_labels_form: Value, ) -> Result<Value>
设置 Pull 标签。Set the new labels for a pull.
Sourcepub async fn delete_repo_pulls_number_labels(
&self,
repo: String,
number: String,
) -> Result<Value>
pub async fn delete_repo_pulls_number_labels( &self, repo: String, number: String, ) -> Result<Value>
清空 Pull 标签。Remove all labels from a pull.
Sourcepub async fn get_repo_pulls_number_assignees(
&self,
repo: String,
number: String,
) -> Result<Value>
pub async fn get_repo_pulls_number_assignees( &self, repo: String, number: String, ) -> Result<Value>
查询指定 PullRequest 的 Assignees。List repository pull request assignees.
Sourcepub async fn post_repo_pulls_number_assignees(
&self,
repo: String,
number: String,
post_pull_assignees_form: Value,
) -> Result<Value>
pub async fn post_repo_pulls_number_assignees( &self, repo: String, number: String, post_pull_assignees_form: Value, ) -> Result<Value>
添加 Assignees 到指定的 PullRequest。 Adds up to 10 assignees to a pull request. Users already assigned to an issue are not replaced.
Sourcepub async fn delete_repo_pulls_number_assignees(
&self,
repo: String,
number: String,
delete_pull_assignees_form: Value,
) -> Result<Value>
pub async fn delete_repo_pulls_number_assignees( &self, repo: String, number: String, delete_pull_assignees_form: Value, ) -> Result<Value>
删除 PullRequest 中的 Assignees。 Removes one or more assignees from a pull request.
Sourcepub async fn put_repo_pulls_number_merge(
&self,
repo: String,
number: String,
merge_pull_request_form: Value,
) -> Result<Value>
pub async fn put_repo_pulls_number_merge( &self, repo: String, number: String, merge_pull_request_form: Value, ) -> Result<Value>
合并一个 Pull Request。Merge a pull request.
Sourcepub async fn post_repo_pulls_number_cherry_pick(
&self,
repo: String,
number: i64,
cherry_pick_pull_request_form: Value,
) -> Result<Value>
pub async fn post_repo_pulls_number_cherry_pick( &self, repo: String, number: i64, cherry_pick_pull_request_form: Value, ) -> Result<Value>
拣选一个已合并的 Pull Request 的提交到选定的分支
Sourcepub async fn get_repo_pulls(
&self,
repo: String,
page: Option<i64>,
page_size: Option<i64>,
state: Option<String>,
authors: Option<String>,
reviewers: Option<String>,
assignees: Option<String>,
base_ref: Option<String>,
) -> Result<Value>
pub async fn get_repo_pulls( &self, repo: String, page: Option<i64>, page_size: Option<i64>, state: Option<String>, authors: Option<String>, reviewers: Option<String>, assignees: Option<String>, base_ref: Option<String>, ) -> Result<Value>
查询 Pull 列表。List pull requests.
Sourcepub async fn post_repo_pulls(
&self,
repo: String,
post_pull_form: Value,
) -> Result<Value>
pub async fn post_repo_pulls( &self, repo: String, post_pull_form: Value, ) -> Result<Value>
新增一个 Pull。Create a pull request.
Sourcepub async fn get_repo_pulls_number(
&self,
repo: String,
number: String,
) -> Result<Value>
pub async fn get_repo_pulls_number( &self, repo: String, number: String, ) -> Result<Value>
查询指定 Pull。Get a pull request.
Sourcepub async fn patch_repo_pulls_number(
&self,
repo: String,
number: String,
update_pull_request_form: Value,
) -> Result<Value>
pub async fn patch_repo_pulls_number( &self, repo: String, number: String, update_pull_request_form: Value, ) -> Result<Value>
更新一个 Pull Request。Update a pull request.
Sourcepub async fn delete_repo_pulls_number_labels_name(
&self,
repo: String,
number: String,
name: String,
) -> Result<Value>
pub async fn delete_repo_pulls_number_labels_name( &self, repo: String, number: String, name: String, ) -> Result<Value>
删除 Pull 标签。Remove a label from a pull.
Sourcepub async fn get_repo_pulls_number_comments(
&self,
repo: String,
number: String,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_repo_pulls_number_comments( &self, repo: String, number: String, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
查询 Pull Comments 列表。List pull comments requests.
Sourcepub async fn post_repo_pulls_number_comments(
&self,
repo: String,
number: String,
post_pull_comment_form: Value,
) -> Result<Value>
pub async fn post_repo_pulls_number_comments( &self, repo: String, number: String, post_pull_comment_form: Value, ) -> Result<Value>
新增一个 Pull Comment。Create a pull comment.