@jsenv/github-check-run 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/github-check-run",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Interact with GitHub check rest API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -43,11 +43,12 @@ export const startGithubCheckRun = async ({
43
43
 
44
44
  const logger = createLogger({ logLevel });
45
45
 
46
- logger.debug(`create check for commit ${commitSha}`);
46
+ const checkApiURL = `https://api.github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`;
47
+ logger.debug(`POST ${checkApiURL} (for commit ${commitSha})`);
47
48
  let check;
48
49
  try {
49
50
  check = await POST({
50
- url: `https://api.github.com/repos/${repositoryOwner}/${repositoryName}/check-runs`,
51
+ url: checkApiURL,
51
52
  githubToken,
52
53
  headers: {
53
54
  "accept": "application/vnd.github+json",
@@ -63,7 +64,7 @@ export const startGithubCheckRun = async ({
63
64
  },
64
65
  },
65
66
  });
66
- logger.debug(`${UNICODE.OK} check created (id: ${check.id})`);
67
+ logger.debug(`${UNICODE.OK} check created ${check.html_url}`);
67
68
  } catch (e) {
68
69
  logger.error(
69
70
  createDetailedMessage(`${UNICODE.FAILURE} failed to create check`, {