@node-core/utils 4.0.0
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/LICENSE +7 -0
- package/README.md +158 -0
- package/bin/get-metadata.js +11 -0
- package/bin/git-node.js +30 -0
- package/bin/ncu-ci.js +600 -0
- package/bin/ncu-config.js +101 -0
- package/bin/ncu-team.js +76 -0
- package/components/git/backport.js +70 -0
- package/components/git/epilogue.js +18 -0
- package/components/git/land.js +223 -0
- package/components/git/metadata.js +94 -0
- package/components/git/release.js +99 -0
- package/components/git/security.js +35 -0
- package/components/git/status.js +32 -0
- package/components/git/sync.js +24 -0
- package/components/git/v8.js +121 -0
- package/components/git/vote.js +84 -0
- package/components/git/wpt.js +87 -0
- package/components/metadata.js +49 -0
- package/lib/auth.js +133 -0
- package/lib/backport_session.js +302 -0
- package/lib/cache.js +107 -0
- package/lib/cherry_pick.js +304 -0
- package/lib/ci/build-types/benchmark_run.js +72 -0
- package/lib/ci/build-types/citgm_build.js +194 -0
- package/lib/ci/build-types/citgm_comparison_build.js +174 -0
- package/lib/ci/build-types/commit_build.js +112 -0
- package/lib/ci/build-types/daily_build.js +24 -0
- package/lib/ci/build-types/fanned_build.js +87 -0
- package/lib/ci/build-types/health_build.js +63 -0
- package/lib/ci/build-types/job.js +114 -0
- package/lib/ci/build-types/linter_build.js +35 -0
- package/lib/ci/build-types/normal_build.js +89 -0
- package/lib/ci/build-types/pr_build.js +101 -0
- package/lib/ci/build-types/test_build.js +186 -0
- package/lib/ci/build-types/test_run.js +41 -0
- package/lib/ci/ci_failure_parser.js +325 -0
- package/lib/ci/ci_type_parser.js +203 -0
- package/lib/ci/ci_utils.js +106 -0
- package/lib/ci/failure_aggregator.js +152 -0
- package/lib/ci/jenkins_constants.js +28 -0
- package/lib/ci/run_ci.js +120 -0
- package/lib/cli.js +192 -0
- package/lib/collaborators.js +140 -0
- package/lib/config.js +72 -0
- package/lib/figures.js +7 -0
- package/lib/file.js +43 -0
- package/lib/github/templates/next-security-release.md +97 -0
- package/lib/github/tree.js +162 -0
- package/lib/landing_session.js +506 -0
- package/lib/links.js +123 -0
- package/lib/mergeable_state.js +3 -0
- package/lib/metadata_gen.js +61 -0
- package/lib/pr_checker.js +605 -0
- package/lib/pr_data.js +115 -0
- package/lib/pr_summary.js +62 -0
- package/lib/prepare_release.js +772 -0
- package/lib/prepare_security.js +117 -0
- package/lib/proxy.js +21 -0
- package/lib/queries/DefaultBranchRef.gql +8 -0
- package/lib/queries/LastCommit.gql +16 -0
- package/lib/queries/PR.gql +37 -0
- package/lib/queries/PRComments.gql +27 -0
- package/lib/queries/PRCommits.gql +45 -0
- package/lib/queries/PRs.gql +25 -0
- package/lib/queries/Reviews.gql +23 -0
- package/lib/queries/SearchIssue.gql +51 -0
- package/lib/queries/Team.gql +22 -0
- package/lib/queries/TreeEntries.gql +12 -0
- package/lib/queries/VotePRInfo.gql +28 -0
- package/lib/release/utils.js +53 -0
- package/lib/request.js +185 -0
- package/lib/review_state.js +5 -0
- package/lib/reviews.js +178 -0
- package/lib/run.js +106 -0
- package/lib/session.js +415 -0
- package/lib/sync_session.js +15 -0
- package/lib/team_info.js +95 -0
- package/lib/update-v8/applyNodeChanges.js +49 -0
- package/lib/update-v8/backport.js +258 -0
- package/lib/update-v8/commitUpdate.js +26 -0
- package/lib/update-v8/common.js +35 -0
- package/lib/update-v8/constants.js +86 -0
- package/lib/update-v8/index.js +56 -0
- package/lib/update-v8/majorUpdate.js +171 -0
- package/lib/update-v8/minorUpdate.js +105 -0
- package/lib/update-v8/updateMaintainingDependencies.js +34 -0
- package/lib/update-v8/updateV8Clone.js +53 -0
- package/lib/update-v8/updateVersionNumbers.js +122 -0
- package/lib/update-v8/util.js +62 -0
- package/lib/user.js +4 -0
- package/lib/user_status.js +5 -0
- package/lib/utils.js +66 -0
- package/lib/verbosity.js +26 -0
- package/lib/voting_session.js +136 -0
- package/lib/wpt/index.js +243 -0
- package/lib/wpt/templates/README.md +16 -0
- package/package.json +69 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export default class PRSummary {
|
|
2
|
+
/**
|
|
3
|
+
* @param {Object} prid
|
|
4
|
+
* @param {Object} cli
|
|
5
|
+
* @param {PRData} data
|
|
6
|
+
*/
|
|
7
|
+
constructor(argv, cli, data) {
|
|
8
|
+
this.argv = argv;
|
|
9
|
+
this.cli = cli;
|
|
10
|
+
this.data = data;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
display() {
|
|
14
|
+
const {
|
|
15
|
+
commits,
|
|
16
|
+
pr: {
|
|
17
|
+
author,
|
|
18
|
+
baseRefName,
|
|
19
|
+
headRefName,
|
|
20
|
+
labels,
|
|
21
|
+
title
|
|
22
|
+
}
|
|
23
|
+
} = this.data;
|
|
24
|
+
const {
|
|
25
|
+
owner,
|
|
26
|
+
prid
|
|
27
|
+
} = this.argv;
|
|
28
|
+
const cli = this.cli;
|
|
29
|
+
|
|
30
|
+
const branch = `${author.login}:${headRefName} -> ${owner}:${baseRefName}`;
|
|
31
|
+
const labelStr = labels.nodes.map(label => label.name).join(', ');
|
|
32
|
+
cli.table('Title', `${title} (#${prid})`);
|
|
33
|
+
const authorHint =
|
|
34
|
+
this.data.authorIsNew() ? ', first-time contributor' : '';
|
|
35
|
+
|
|
36
|
+
if (author.name && author.email) {
|
|
37
|
+
cli.table('Author',
|
|
38
|
+
`${author.name} <${author.email}> (@${author.login}${authorHint})`);
|
|
39
|
+
} else {
|
|
40
|
+
// Unable to retrive email/name of the PR Author
|
|
41
|
+
cli.warn('Could not retrieve the email or name ' +
|
|
42
|
+
"of the PR author's from user's GitHub profile!");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
cli.table('Branch', `${branch}`);
|
|
46
|
+
cli.table('Labels', `${labelStr}`);
|
|
47
|
+
|
|
48
|
+
cli.table('Commits', `${commits.length}`);
|
|
49
|
+
const committers = new Map();
|
|
50
|
+
for (const commit of commits) {
|
|
51
|
+
const data = commit.commit;
|
|
52
|
+
const committer = data.committer;
|
|
53
|
+
committers.set(committer.email, committer);
|
|
54
|
+
cli.log(` - ${data.messageHeadline}`);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
cli.table('Committers', `${committers.size}`);
|
|
58
|
+
for (const { name, email } of committers.values()) {
|
|
59
|
+
cli.log(` - ${name} <${email}>`);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|