|
1 | 1 | diff --git a/node_modules/@semantic-release/github/lib/success.js b/node_modules/@semantic-release/github/lib/success.js
|
2 |
| -index 29c8def..576c68a 100644 |
| 2 | +index 29c8def..7e57161 100644 |
3 | 3 | --- a/node_modules/@semantic-release/github/lib/success.js
|
4 | 4 | +++ b/node_modules/@semantic-release/github/lib/success.js
|
5 |
| -@@ -15,6 +15,8 @@ import getReleaseLinks from "./get-release-links.js"; |
6 |
| - const debug = debugFactory("semantic-release:github"); |
7 |
| - |
8 |
| - export default async function success(pluginConfig, context, { Octokit }) { |
9 |
| -+ console.log('pluginConfig: ', pluginConfig); |
10 |
| -+ console.log('context: ', context); |
11 |
| - const { |
12 |
| - options: { repositoryUrl }, |
13 |
| - commits, |
14 |
| -@@ -37,6 +39,21 @@ export default async function success(pluginConfig, context, { Octokit }) { |
15 |
| - releasedLabels, |
16 |
| - addReleases, |
17 |
| - } = resolveConfig(pluginConfig, context); |
18 |
| -+ console.log('resolveConfig', { |
19 |
| -+ githubToken, |
20 |
| -+ githubUrl, |
21 |
| -+ githubApiPathPrefix, |
22 |
| -+ githubApiUrl, |
23 |
| -+ proxy, |
24 |
| -+ labels, |
25 |
| -+ successComment, |
26 |
| -+ successCommentCondition, |
27 |
| -+ failTitle, |
28 |
| -+ failComment, |
29 |
| -+ failCommentCondition, |
30 |
| -+ releasedLabels, |
31 |
| -+ addReleases, |
32 |
| -+ }) |
33 |
| - |
34 |
| - const octokit = new Octokit( |
35 |
| - toOctokitOptions({ |
36 |
| -@@ -74,17 +91,21 @@ export default async function success(pluginConfig, context, { Octokit }) { |
37 |
| - ); |
38 |
| - const releaseInfos = releases.filter((release) => Boolean(release.name)); |
39 |
| - const shas = commits.map(({ hash }) => hash); |
40 |
| -+ console.log('shas: ', shas); |
41 |
| - |
42 |
| - // Get associatedPRs |
43 |
| - const associatedPRs = await inChunks(shas, 100, async (chunk) => { |
44 |
| -+ console.log('chunk: ', chunk); |
45 |
| - const responsePRs = []; |
46 |
| - const { repository } = await octokit.graphql( |
47 |
| - buildAssociatedPRsQuery(chunk), |
48 |
| - { owner, repo }, |
49 |
| - ); |
50 |
| -+ console.log('repository: ', repository); |
51 |
| - const responseAssociatedPRs = Object.values(repository).map( |
52 |
| - (item) => item.associatedPullRequests, |
53 |
| - ); |
54 |
| -+ console.log('responseAssociatedPRs: ', responseAssociatedPRs); |
55 |
| - for (const { nodes, pageInfo } of responseAssociatedPRs) { |
56 |
| - if (nodes.length === 0) continue; |
57 |
| - |
58 |
| -@@ -116,8 +137,10 @@ export default async function success(pluginConfig, context, { Octokit }) { |
59 |
| - }); |
60 |
| - |
| 5 | +@@ -118,6 +118,8 @@ export default async function success(pluginConfig, context, { Octokit }) { |
61 | 6 | const uniqueAssociatedPRs = uniqBy(flatten(associatedPRs), "number");
|
62 |
| -+ console.log('uniqueAssociatedPRs: ', uniqueAssociatedPRs); |
63 | 7 |
|
64 | 8 | const prs = await pFilter(uniqueAssociatedPRs, async ({ number }) => {
|
65 | 9 | + console.log('number: ', number);
|
| 10 | ++ if (number < 2000) return false; |
66 | 11 | const commits = await octokit.paginate(
|
67 | 12 | "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
68 | 13 | {
|
69 |
| -@@ -539,6 +562,7 @@ const loadSingleCommitAssociatedPRs = `#graphql |
70 |
| - * @returns {object[]} |
71 |
| - */ |
72 |
| - function buildIssuesOrPRsFromResponseNode(responseNodes) { |
73 |
| -+ console.log('responseNodes: ', responseNodes); |
74 |
| - const resultArray = []; |
75 |
| - for (const node of responseNodes) { |
76 |
| - let baseProps = { |
0 commit comments