Skip to content

Commit

Permalink
Добавил бот
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 19, 2024
0 parents commit ba83959
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/sandbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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:
name: Add codesandbox link comment
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
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 }}
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="main.js"></script>
</head>
<body></body>
</html>
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert('Привет');

0 comments on commit ba83959

Please sign in to comment.