MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getPullRequestLabel

Method getPullRequestLabel

packages/decap-cms-backend-bitbucket/src/API.ts:555–563  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

553 }
554
555 async getPullRequestLabel(id: number) {
556 const comments: BitBucketPullComments = await this.requestJSON({
557 url: `${this.repoURL}/pullrequests/${id}/comments`,
558 params: {
559 pagelen: 100,
560 },
561 });
562 return comments.values.map(c => c.content.raw)[comments.values.length - 1];
563 }
564
565 async createPullRequest(branch: string, commitMessage: string, status: string) {
566 const pullRequest: BitBucketPullRequest = await this.requestJSON({

Callers 2

getPullRequestsMethod · 0.95

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected