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) => {
80
80
const { context, getOctokit } = github
81
81
const octokit = getOctokit ( process . env . GITHUB_TOKEN ! )
82
82
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
+
98
84
const prNumber = context . payload ?. issue ?. number
99
85
if ( ! prNumber ) {
100
86
setFailed ( "Count not find PR Number" )
You can’t perform that action at this time.
0 commit comments