Add associated pull requests and commit compare functionality #413
Add associated pull requests and commit compare functionality #413XAMPPRocky merged 13 commits intoXAMPPRocky:mainfrom
Conversation
There was a problem hiding this comment.
These types were created automatically using the json schema here
The types were generated using https://quicktype.io/
| pub patch: Option<String>, | ||
| pub previous_filename: Option<String>, | ||
| // unlike the schema online, this can be null | ||
| pub raw_url: Option<String>, |
There was a problem hiding this comment.
discovered this while using the endpoints
| } | ||
|
|
||
| /// Sends the actual request. | ||
| pub async fn send(self) -> crate::Result<models::commits::CommitComparison> { |
There was a problem hiding this comment.
this endpoint accepts pagination params but doesn't return an array so I didn't wrap the return type in Page
| "{id} | {url} | [{files}] | {description}", | ||
| id = gist.id, | ||
| url = gist.html_url.to_string(), | ||
| url = gist.html_url, |
| .send() | ||
| .await?; | ||
| println!("Done, created: {url}", url = gist.html_url.to_string()); | ||
| println!("Done, created: {url}", url = gist.html_url); |
tests/current_user_orgs_test.rs
Outdated
|
|
||
| Mock::given(method("GET")) | ||
| .and(path(format!("/user/memberships/orgs"))) | ||
| .and(path("/user/memberships/orgs".to_string())) |
tests/current_user_orgs_test.rs
Outdated
| setup_error_handler( | ||
| &mock_server, | ||
| &format!("GET on /user/membership/orgs was not received"), | ||
| &"GET on /user/membership/orgs was not received".to_string(), |
| #[non_exhaustive] | ||
| pub enum WorkflowRunEventAction { | ||
| Requested, | ||
| InProgress, |
|
Thank you for your PR! Since I merged your other PR, you'll need to rebase these changes to remove the similar changes. In the future I would recommend making the things like clippy --fix a separate PR, as then I could merge all three PRs at once. |
|
I think the "Squash and merge" strategy will take care of dropping the duplicate changes. |
To be clear, it's also about review, it's harder for me to review a PR if the same changes exist. |
|
Ok, now it needs a merge or rebase either way :) |
2477b6b to
dea2ea2
Compare
|
Thanks for the review and apologies for the delay @XAMPPRocky and @MarcoFalke. Rebased. |
|
@matthewgapp You need to update your tests to |
Apologies. I should have ran cargo test. I didn't see any signs that |
|
Thank you for your PR! |
Adds API support for