Skip to content

Commit

Permalink
fix request path (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo authored Jan 24, 2023
1 parent 0e65de0 commit 7db3611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/commits/create_comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ impl<'octo, 'r> CreateCommentBuilder <'octo, 'r> {
/// Sends the actual request.
pub async fn send(self) -> crate::Result<models::commits::Comment> {
let route = format!(
"repos/{owner}/{repo}/issues",
"repos/{owner}/{repo}/commits/{commit_sha}/comments",
owner = self.handler.owner,
repo = self.handler.repo,
commit_sha = self.sha,
);

self.handler.crab.post(route, Some(&self)).await
Expand Down

0 comments on commit 7db3611

Please sign in to comment.