Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/codesandbox-link-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add codesandbox link

on:
pull_request:
types: [opened]
# https://github.com/mshick/add-pr-comment/issues/25
pull_request_target:
types: [opened]

jobs:
codesandbox-comment:
permissions: write-all
name: Add codesandbox link comment
runs-on: ubuntu-latest
steps:
- uses: mshick/add-pr-comment@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: |
You can check this code at CodeSandbox with the link
https://githubbox.com/${{ github.repository }}/tree/${{ github.head_ref }}
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Otus</title>
</head>
<body>
<script>
alert(document.title);
</script>
</body>
</html>