Skip to content

Commit ac07ef0

Browse files
Add GitHub Action to comment on PRs with Binder link to try out changes (#261)
* Add GitHub Action to comment on PRs with Binder link to try out changes * Fix token * Fall back to using Actions bot instead of Dask bot * Switch back to Dask bot * Run on PR target instead of PR
1 parent 0472d3c commit ac07ef0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Comment with Binder link on PRs
2+
3+
on: pull_request_target
4+
5+
jobs:
6+
binder_link_comment:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Comment PR
13+
uses: thollander/actions-comment-pull-request@v1
14+
with:
15+
message: |
16+
Beep boop! Here is a Binder link where you can try out this change.
17+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${{github.repository}}/${{github.ref}})
18+
comment_includes: "Binder link"
19+
GITHUB_TOKEN: ${{ secrets.DASK_BOT_TOKEN }}

0 commit comments

Comments
 (0)