Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
bwieger-atlassian-com committed Feb 12, 2025
1 parent 0311eea commit d2ad9ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bitbucket/bitbucket-server/pullRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class ServerPullRequestApi implements PullRequestApi {
private async postTask_v0(site: BitbucketSite, prId: string, content: string, commentId?: string) {
const bbApi = await clientForSite(site);
const repo = await bbApi.repositories.get(site);
const { data } = await this.client.post(`/rest/api/1.0/tasks`, {
const { data } = await this.client.post(`/rest/api/latest/tasks`, {
anchor: {
id: commentId,
type: 'COMMENT',
Expand All @@ -258,6 +258,7 @@ export class ServerPullRequestApi implements PullRequestApi {
state: 'OPEN',
text: content,
});

return this.convertDataToTask(data, site);
}

Expand Down Expand Up @@ -935,6 +936,7 @@ export class ServerPullRequestApi implements PullRequestApi {
const { data } = await this.client.get(
`/rest/api/1.0/projects/${ownerSlug}/repos/${repoSlug}/pull-requests/${prId}/tasks/count`,
);

return data;
}

Expand Down

0 comments on commit d2ad9ce

Please sign in to comment.