Skip to content

Commit

Permalink
PR from a fork 4
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhVIyer committed Jun 26, 2023
1 parent 8931696 commit 4b6395d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/binder-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Binder Badge
on:
pull_request_target:
types: [opened, synchronize]

jobs:
binder:
runs-on: ubuntu-latest
Expand All @@ -13,14 +14,13 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log("Context:", JSON.stringify(context, null, 2)); // For debugging
console.log("GitHub Context:", JSON.stringify(github.context, null, 2)); // For debugging
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;
var PR_HEAD_REF = github.context.payload.pull_request.head.ref;
var PR_HEAD_USERREPO = github.context.payload.pull_request.head.repo.full_name;
var issue_number = github.context.payload.pull_request.number;
var owner = github.context.payload.pull_request.base.repo.owner.login;
var repo = github.context.payload.pull_request.base.repo.name;
github.rest.issues.createComment({
issue_number: issue_number,
Expand Down

0 comments on commit 4b6395d

Please sign in to comment.