Skip to content

Commit 72ad1aa

Browse files
committed
chore(gha): cleanup new broken-link-checker for issue_comment events
1 parent 95a6125 commit 72ad1aa

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

.github/broken-link-checker/src/index.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)