@graphql-inspector/action 3.4.2 → 3.4.3-alpha-20230207111327-4b3e9d0e

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.
Files changed (3) hide show
  1. package/index.js +4 -1
  2. package/index.mjs +4 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -12439,7 +12439,10 @@ function getCurrentCommitSha() {
12439
12439
  }
12440
12440
  function getAssociatedPullRequest(octokit, commitSha) {
12441
12441
  return tslib.__awaiter(this, void 0, void 0, function* () {
12442
- const result = yield octokit.request('GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls', Object.assign(Object.assign({}, github.context.repo), { commit_sha: commitSha }));
12442
+ const result = yield octokit.request('GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls', Object.assign(Object.assign({}, github.context.repo), { commit_sha: commitSha, mediaType: {
12443
+ format: 'json',
12444
+ previews: ['groot'],
12445
+ } }));
12443
12446
  return result.data.length > 0 ? result.data[0] : null;
12444
12447
  });
12445
12448
  }
package/index.mjs CHANGED
@@ -12437,7 +12437,10 @@ function getCurrentCommitSha() {
12437
12437
  }
12438
12438
  function getAssociatedPullRequest(octokit, commitSha) {
12439
12439
  return __awaiter(this, void 0, void 0, function* () {
12440
- const result = yield octokit.request('GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls', Object.assign(Object.assign({}, context.repo), { commit_sha: commitSha }));
12440
+ const result = yield octokit.request('GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls', Object.assign(Object.assign({}, context.repo), { commit_sha: commitSha, mediaType: {
12441
+ format: 'json',
12442
+ previews: ['groot'],
12443
+ } }));
12441
12444
  return result.data.length > 0 ? result.data[0] : null;
12442
12445
  });
12443
12446
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-inspector/action",
3
- "version": "3.4.2",
3
+ "version": "3.4.3-alpha-20230207111327-4b3e9d0e",
4
4
  "description": "GraphQL Inspector functionality for GitHub Actions",
5
5
  "sideEffects": false,
6
6
  "dependencies": {