From a5789a50276e435482b1cbd842642aa8f6cb6487 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Thu, 5 May 2022 22:49:20 +0300 Subject: [PATCH 1/3] workflow adding --- index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..740b96a --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + Otus + + + + + From b8765211864e781e7280b3221b8de66b7d928788 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Thu, 5 May 2022 22:53:08 +0300 Subject: [PATCH 2/3] second commit to workflows --- .../workflows/codesandbox-link-comment.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/codesandbox-link-comment.yml diff --git a/.github/workflows/codesandbox-link-comment.yml b/.github/workflows/codesandbox-link-comment.yml new file mode 100644 index 0000000..b7c5a91 --- /dev/null +++ b/.github/workflows/codesandbox-link-comment.yml @@ -0,0 +1,21 @@ +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 + 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 }} From d94120af1cd0a301eb91654fce7b97a17587cb74 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Thu, 5 May 2022 23:02:40 +0300 Subject: [PATCH 3/3] another commit for workflows --- .github/workflows/codesandbox-link-comment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codesandbox-link-comment.yml b/.github/workflows/codesandbox-link-comment.yml index b7c5a91..cf3c2d7 100644 --- a/.github/workflows/codesandbox-link-comment.yml +++ b/.github/workflows/codesandbox-link-comment.yml @@ -9,6 +9,7 @@ on: jobs: codesandbox-comment: + permissions: write-all name: Add codesandbox link comment runs-on: ubuntu-latest steps: