Skip to content

Commit 3c0deca

Browse files
author
Daniel Crabtree
committed
Remove summary link from bottom
1 parent e5b7746 commit 3c0deca

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

dist/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -829,17 +829,16 @@ const markdown_1 = __nccwpck_require__(2519);
829829
const action_1 = __nccwpck_require__(2216);
830830
const publishComment = (token, title, message, postNew) => __awaiter(void 0, void 0, void 0, function* () {
831831
const context = getContext();
832-
const { owner, repo, runId, issueNumber, commit } = context;
832+
const { owner, repo, issueNumber, commit } = context;
833833
if (!token || !owner || !repo || issueNumber === -1) {
834834
(0, action_1.log)('Failed to post a comment');
835835
return;
836836
}
837837
const header = (0, markdown_1.formatHeaderMarkdown)(title);
838838
const octokit = (0, github_1.getOctokit)(token);
839839
const existingComment = yield getExistingComment(octokit, context, header);
840-
const summaryLink = (0, markdown_1.formatSummaryLinkMarkdown)(owner, repo, runId, title);
841840
const footer = commit ? (0, markdown_1.formatFooterMarkdown)(commit) : '';
842-
const body = `${header}${message}${summaryLink}${footer}`;
841+
const body = `${header}${message}${footer}`;
843842
if (existingComment && !postNew) {
844843
yield octokit.rest.issues.updateComment({ owner, repo, comment_id: existingComment.id, body });
845844
}

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/comments.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { context, getOctokit } from '@actions/github/lib/github';
22
import { GitHub } from '@actions/github/lib/utils';
3-
import { formatFooterMarkdown, formatHeaderMarkdown, formatSummaryLinkMarkdown } from '../formatting/markdown';
3+
import { formatFooterMarkdown, formatHeaderMarkdown } from '../formatting/markdown';
44
import { log } from './action';
55

66
type Octokit = InstanceType<typeof GitHub>;
@@ -20,7 +20,7 @@ export const publishComment = async (
2020
postNew: boolean
2121
): Promise<void> => {
2222
const context = getContext();
23-
const { owner, repo, runId, issueNumber, commit } = context;
23+
const { owner, repo, issueNumber, commit } = context;
2424

2525
if (!token || !owner || !repo || issueNumber === -1) {
2626
log('Failed to post a comment');
@@ -31,9 +31,8 @@ export const publishComment = async (
3131
const octokit = getOctokit(token);
3232
const existingComment = await getExistingComment(octokit, context, header);
3333

34-
const summaryLink = formatSummaryLinkMarkdown(owner, repo, runId, title);
3534
const footer = commit ? formatFooterMarkdown(commit) : '';
36-
const body = `${header}${message}${summaryLink}${footer}`;
35+
const body = `${header}${message}${footer}`;
3736

3837
if (existingComment && !postNew) {
3938
await octokit.rest.issues.updateComment({ owner, repo, comment_id: existingComment.id, body });

0 commit comments

Comments
 (0)