Skip to content

Commit

Permalink
PR from a fork 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhVIyer committed Jun 26, 2023
1 parent 4d0a463 commit a19fec0
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/binder-badge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Binder Badge
on:
pull_request_target:
types: [opened, synchronize]
pull_request:
types: [opened, synchronize]
jobs:
Expand All @@ -15,15 +13,14 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log("GitHub Context:", JSON.stringify(github, null, 2)); # For debugging
console.log("Context:", JSON.stringify(context, null, 2)); // For debugging
var PR_HEAD_REF = github.event.pull_request.head.ref;
var PR_HEAD_USERREPO = github.event.pull_request.head.repo.full_name;
var issue_number = github.event.pull_request.number;
var owner = github.event.pull_request.base.repo.owner.login;
var repo = github.event.pull_request.base.repo.name;
var PR_HEAD_REF = context.payload.pull_request.head.ref;
var PR_HEAD_USERREPO = context.payload.pull_request.head.repo.full_name;
var issue_number = context.payload.pull_request.number;
var owner = context.payload.pull_request.base.repo.owner.login;
var repo = context.payload.pull_request.base.repo.name;
console.log(`Posting comment to ${owner}/${repo} issue #${issue_number}`); # For debugging
github.rest.issues.createComment({
issue_number: issue_number,
Expand Down

0 comments on commit a19fec0

Please sign in to comment.