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

Method getPullRequestLabel

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

Source from the content-addressed store, hash-verified

550 }
551
552 async getPullRequestLabel(id: number) {
553 const comments = await this.requestAllValues<BitBucketPullComment>({
554 url: `${this.repoURL}/pullrequests/${id}/comments`,
555 params: {
556 pagelen: 100,
557 },
558 });
559 // Comments come oldest first, so the current label is the last one
560 return comments[comments.length - 1]?.content.raw;
561 }
562
563 async createPullRequest(branch: string, commitMessage: string, status: string) {
564 const pullRequest: BitBucketPullRequest = await this.requestJSON({

Callers 3

getPullRequestsMethod · 0.95
api.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected