Skip to content

Commit

Permalink
Merge pull request #58 from ploomber/binder-issue
Browse files Browse the repository at this point in the history
binder test 1
  • Loading branch information
AnirudhVIyer authored Jun 26, 2023
2 parents f627d35 + 971a172 commit 26b761c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/binder-badge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Binder Badge
on:
pull_request:
types: [opened, synchronize]
pull_request_target:
types: [opened, synchronize]
jobs:
Expand All @@ -13,15 +15,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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

## 0.1.39dev
test binder 1

## 0.1.38 (2023-03-30)

Expand Down

0 comments on commit 26b761c

Please sign in to comment.