MCPcopy Create free account
hub / github.com/serverless/examples / updatePullRequestStatus

Function updatePullRequestStatus

aws-node-github-check/libs/github-service.js:9–19  ·  view source on GitHub ↗
(githubClient, payload, repository, pullRequest)

Source from the content-addressed store, hash-verified

7}
8
9export function updatePullRequestStatus(githubClient, payload, repository, pullRequest) {
10 return new Promise((resolve, reject) => {
11 githubClient.post(`/repos/${repository.full_name}/statuses/${pullRequest.head.sha}`, payload, {}, (err) => {
12 if (err) {
13 reject(err);
14 } else {
15 resolve();
16 }
17 });
18 });
19}

Callers 1

githubCheckFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected