1
1
import { context , getOctokit } from '@actions/github/lib/github' ;
2
2
import { GitHub } from '@actions/github/lib/utils' ;
3
- import { formatFooterMarkdown , formatHeaderMarkdown , formatSummaryLinkMarkdown } from '../formatting/markdown' ;
3
+ import { formatFooterMarkdown , formatHeaderMarkdown } from '../formatting/markdown' ;
4
4
import { log } from './action' ;
5
5
6
6
type Octokit = InstanceType < typeof GitHub > ;
@@ -20,7 +20,7 @@ export const publishComment = async (
20
20
postNew : boolean
21
21
) : Promise < void > => {
22
22
const context = getContext ( ) ;
23
- const { owner, repo, runId , issueNumber, commit } = context ;
23
+ const { owner, repo, issueNumber, commit } = context ;
24
24
25
25
if ( ! token || ! owner || ! repo || issueNumber === - 1 ) {
26
26
log ( 'Failed to post a comment' ) ;
@@ -31,9 +31,8 @@ export const publishComment = async (
31
31
const octokit = getOctokit ( token ) ;
32
32
const existingComment = await getExistingComment ( octokit , context , header ) ;
33
33
34
- const summaryLink = formatSummaryLinkMarkdown ( owner , repo , runId , title ) ;
35
34
const footer = commit ? formatFooterMarkdown ( commit ) : '' ;
36
- const body = `${ header } ${ message } ${ summaryLink } ${ footer } ` ;
35
+ const body = `${ header } ${ message } ${ footer } ` ;
37
36
38
37
if ( existingComment && ! postNew ) {
39
38
await octokit . rest . issues . updateComment ( { owner, repo, comment_id : existingComment . id , body } ) ;
0 commit comments