File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
.github/broken-link-checker/src Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -80,21 +80,7 @@ const postComment = async (outputMd: string) => {
8080 const { context, getOctokit } = github
8181 const octokit = getOctokit ( process . env . GITHUB_TOKEN ! )
8282 const { owner, repo } = context . repo
83- console . log ( "CONTEXT" , context . payload )
84- // const pullRequest = context.payload.pull_request
85- // if (!pullRequest) {
86- // console.log("Skipping since this is not a pull request")
87- // process.exit(0)
88- // }
89- // const isFork = pullRequest.head.repo.fork
90- // const prNumber = pullRequest.number
91- // if (isFork) {
92- // setFailed(
93- // "The action could not create a GitHub comment because it is initiated from a forked repo. View the action logs for a list of broken links."
94- // )
95- // return ""
96- // }
97- //
83+
9884 const prNumber = context . payload ?. issue ?. number
9985 if ( ! prNumber ) {
10086 setFailed ( "Count not find PR Number" )
You can’t perform that action at this time.
0 commit comments