Skip to content

Commit 9709662

Browse files
committed
build: rebuild
1 parent 917a0a3 commit 9709662

3 files changed

Lines changed: 31 additions & 11 deletions

File tree

dist/index.js

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71346,6 +71346,7 @@ var __importStar = (this && this.__importStar) || (function () {
7134671346
})();
7134771347
Object.defineProperty(exports, "__esModule", ({ value: true }));
7134871348
exports.resolveIdentity = resolveIdentity;
71349+
exports.buildSummaryMarkdown = buildSummaryMarkdown;
7134971350
exports.getDefaultCommitRange = getDefaultCommitRange;
7135071351
const core = __importStar(__nccwpck_require__(37484));
7135171352
const exec = __importStar(__nccwpck_require__(95236));
@@ -71616,14 +71617,18 @@ function fixMessageForType(type, commit, failedCount) {
7161671617
switch (type) {
7161771618
case 'unsigned':
7161871619
return [
71619-
`Commit ${commit.slice(0, 8)} is not signed.`,
71620+
`Commit ${commit.slice(0, 8)} is not signed. To sign future commits:`,
7162071621
``,
71621-
`Install auths:`,
71622-
` macOS: brew install auths`,
71623-
` Linux: See https://github.com/auths-dev/auths/releases/latest`,
71622+
`1. Install auths:`,
71623+
` macOS: brew install auths`,
71624+
` Linux: See https://github.com/auths-dev/auths/releases/latest`,
7162471625
``,
71625-
`Then re-sign and push:`,
71626-
` ${amendCmd}`,
71626+
`2. Set up signing:`,
71627+
` auths init`,
71628+
` auths git setup`,
71629+
``,
71630+
`3. Re-sign and push:`,
71631+
` ${amendCmd}`,
7162771632
``,
7162871633
`Quickstart: https://github.com/auths-dev/auths#quickstart`,
7162971634
].join('\n');
@@ -71689,13 +71694,23 @@ function buildSummaryMarkdown(results, passed, skipped, failed, total) {
7168971694
lines.push('');
7169071695
switch (dominantType) {
7169171696
case 'unsigned':
71692-
lines.push(`Commit \`${firstFailed.commit.slice(0, 8)}\` is not signed. Install auths and re-sign:`);
71697+
lines.push(`Commit \`${firstFailed.commit.slice(0, 8)}\` is not signed. To sign future commits:`);
71698+
lines.push('');
71699+
lines.push('**1. Install auths**');
71700+
lines.push('');
71701+
lines.push('macOS: `brew install auths`');
71702+
lines.push('Linux: Download from [releases](https://github.com/auths-dev/auths/releases/latest)');
7169371703
lines.push('');
71694-
lines.push('**macOS:** `brew install auths`');
71695-
lines.push('**Linux:** Download from [releases](https://github.com/auths-dev/auths/releases/latest)');
71704+
lines.push('**2. Set up signing**');
7169671705
lines.push('');
71697-
lines.push('Then re-sign:');
71706+
lines.push('```bash');
71707+
lines.push('auths init');
71708+
lines.push('auths git setup');
7169871709
lines.push('```');
71710+
lines.push('');
71711+
lines.push('**3. Re-sign and push**');
71712+
lines.push('');
71713+
lines.push('```bash');
7169971714
lines.push(amendCmd);
7170071715
lines.push('```');
7170171716
lines.push('');

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
import { VerificationResult } from './verifier';
12
export interface ResolvedIdentity {
23
mode: 'allowed-signers' | 'identity-bundle';
34
allowedSignersPath: string;
45
identityBundlePath: string;
56
tempFile?: string;
67
}
78
export declare function resolveIdentity(input: string): ResolvedIdentity;
9+
/**
10+
* Write a Markdown summary to $GITHUB_STEP_SUMMARY
11+
*/
12+
export declare function buildSummaryMarkdown(results: VerificationResult[], passed: number, skipped: number, failed: number, total: number): string;
813
/**
914
* Determine the default commit range based on the GitHub event context.
1015
*/

0 commit comments

Comments
 (0)