From 32b7158bdb25b308d4dbd2e9fb2acfe622649757 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 6 Apr 2023 15:29:55 +0100 Subject: [PATCH 1/2] ci: correctly update comment (#6760) * ci: correctly update comment * fix: restore action to change PR status --- .github/workflows/check-merge.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-merge.yml b/.github/workflows/check-merge.yml index ba17581640d6..14d1900e3b2e 100644 --- a/.github/workflows/check-merge.yml +++ b/.github/workflows/check-merge.yml @@ -62,12 +62,30 @@ jobs: --header 'content-type: application/json' \ -d '["semver minor"]' + + - name: Find Comment + uses: peter-evans/find-comment@v2 + id: fc + with: + issue-number: ${{ github.event.number }} + comment-author: 'github-actions[bot]' + - name: Send PR review if: steps.find-blockers.outputs.found == 'true' - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v3 continue-on-error: true with: + comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.number }} body: | This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved. edit-mode: replace + - name: Change PR status + if: steps.find-blockers.outputs.found == 'true' + run: | + curl --request POST \ + --url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \ + --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ + --header 'content-type: application/json' \ + -d '{"event":"REQUEST_CHANGES"}' + From 9b497a6d98c6c206d768a15981d277375b0fff49 Mon Sep 17 00:00:00 2001 From: "Sergio A. Arevalo Soria" Date: Thu, 6 Apr 2023 16:42:24 +0200 Subject: [PATCH 2/2] Update react links (#6756) --- examples/framework-multiple/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/framework-multiple/README.md b/examples/framework-multiple/README.md index 952d1aa1a61b..385b0ade7872 100644 --- a/examples/framework-multiple/README.md +++ b/examples/framework-multiple/README.md @@ -8,6 +8,6 @@ npm create astro@latest -- --template framework-multiple [![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/framework-multiple) [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/framework-multiple/devcontainer.json) -This example showcases Astro's built-in support for multiple frameworks ([React](https://reactjs.org), [Preact](https://preactjs.com), [Svelte](https://svelte.dev), and [Vue (`v3.x`)](https://v3.vuejs.org/)). +This example showcases Astro's built-in support for multiple frameworks ([React](https://react.dev), [Preact](https://preactjs.com), [Svelte](https://svelte.dev), and [Vue (`v3.x`)](https://v3.vuejs.org/)). No configuration is needed to enable these frameworks—just start writing components in `src/components`.