From 8c05ecfefdf8a12da2d1612b43290176eeb206bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Sep 2025 10:33:11 +0000 Subject: [PATCH 1/4] Initial plan From ccb2b94a044c6bb61ceb41ddcf9318b721885b26 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Sep 2025 10:39:02 +0000 Subject: [PATCH 2/4] Enhance git-post-store-urls-to-pr action with platform support from package.json Co-authored-by: pernielsentikaer <38033107+pernielsentikaer@users.noreply.github.com> --- git-post-store-urls-to-pr/action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/git-post-store-urls-to-pr/action.yml b/git-post-store-urls-to-pr/action.yml index c30b59d..be98ed9 100644 --- a/git-post-store-urls-to-pr/action.yml +++ b/git-post-store-urls-to-pr/action.yml @@ -15,6 +15,16 @@ runs: steps: - name: Setup GIT uses: raycast/github-actions/setup-git@v1.17.0 + - name: Extract platforms from package.json + id: extract_platforms + shell: bash + run: | + if [ -f "package.json" ]; then + platforms=$(jq -r '.platforms // ["macos"] | join(", ")' package.json 2>/dev/null || echo "macos") + else + platforms="macos" + fi + echo "platforms=$platforms" >> $GITHUB_OUTPUT - name: Check message id: check_message shell: bash @@ -28,6 +38,8 @@ runs: GITHUB_TOKEN: ${{ inputs.github_token }} with: message: | + **Supported platforms:** ${{ steps.extract_platforms.outputs.platforms }} + **Published to the Raycast Store:** ${{ inputs.store_urls }} allow-repeats: true From 5c19eb5edb55c69ea7e3eebfeeba86270bb7c3ff Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Sep 2025 10:49:45 +0000 Subject: [PATCH 3/4] Move platform display to inline format after headline as requested Co-authored-by: pernielsentikaer <38033107+pernielsentikaer@users.noreply.github.com> --- git-post-store-urls-to-pr/action.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/git-post-store-urls-to-pr/action.yml b/git-post-store-urls-to-pr/action.yml index be98ed9..9018232 100644 --- a/git-post-store-urls-to-pr/action.yml +++ b/git-post-store-urls-to-pr/action.yml @@ -16,13 +16,13 @@ runs: - name: Setup GIT uses: raycast/github-actions/setup-git@v1.17.0 - name: Extract platforms from package.json - id: extract_platforms + id: extract_platforms shell: bash run: | if [ -f "package.json" ]; then - platforms=$(jq -r '.platforms // ["macos"] | join(", ")' package.json 2>/dev/null || echo "macos") + platforms=$(jq -r '.platforms // ["macos"] | map(if . == "macos" then "macOS" elif . == "windows" then "Windows" else . end) | join(", ")' package.json 2>/dev/null || echo "macOS") else - platforms="macos" + platforms="macOS" fi echo "platforms=$platforms" >> $GITHUB_OUTPUT - name: Check message @@ -38,8 +38,6 @@ runs: GITHUB_TOKEN: ${{ inputs.github_token }} with: message: | - **Supported platforms:** ${{ steps.extract_platforms.outputs.platforms }} - - **Published to the Raycast Store:** + **Published to the Raycast Store:** (${{ steps.extract_platforms.outputs.platforms }}) ${{ inputs.store_urls }} allow-repeats: true From 708908c71ae51b7f98bf8022f1d3c2900ca2b73e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Sep 2025 10:56:31 +0000 Subject: [PATCH 4/4] Remove platform value transformation as values are already properly capitalized Co-authored-by: pernielsentikaer <38033107+pernielsentikaer@users.noreply.github.com> --- git-post-store-urls-to-pr/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-post-store-urls-to-pr/action.yml b/git-post-store-urls-to-pr/action.yml index 9018232..bbdede2 100644 --- a/git-post-store-urls-to-pr/action.yml +++ b/git-post-store-urls-to-pr/action.yml @@ -20,7 +20,7 @@ runs: shell: bash run: | if [ -f "package.json" ]; then - platforms=$(jq -r '.platforms // ["macos"] | map(if . == "macos" then "macOS" elif . == "windows" then "Windows" else . end) | join(", ")' package.json 2>/dev/null || echo "macOS") + platforms=$(jq -r '.platforms // ["macOS"] | join(", ")' package.json 2>/dev/null || echo "macOS") else platforms="macOS" fi