From a3084a3cc909ba3ac514f055b8747528c670eb36 Mon Sep 17 00:00:00 2001 From: ingeniumed Date: Tue, 4 Feb 2025 16:09:29 +1100 Subject: [PATCH] Fix the name of the workflow and the formatting --- .../{build-live-branch.yml => pr-build-live-branch.yml} | 0 .github/workflows/scripts/generate-playground-blueprint.js | 7 ++----- 2 files changed, 2 insertions(+), 5 deletions(-) rename .github/workflows/{build-live-branch.yml => pr-build-live-branch.yml} (100%) diff --git a/.github/workflows/build-live-branch.yml b/.github/workflows/pr-build-live-branch.yml similarity index 100% rename from .github/workflows/build-live-branch.yml rename to .github/workflows/pr-build-live-branch.yml diff --git a/.github/workflows/scripts/generate-playground-blueprint.js b/.github/workflows/scripts/generate-playground-blueprint.js index d3ce2544..41897cb1 100644 --- a/.github/workflows/scripts/generate-playground-blueprint.js +++ b/.github/workflows/scripts/generate-playground-blueprint.js @@ -61,8 +61,7 @@ async function run( { github, context, core, artifactUrl } ) { issue_number: context.issue.number, }; - const comments = ( await github.rest.issues.listComments( commentInfo ) ) - .data; + const comments = ( await github.rest.issues.listComments( commentInfo ) ).data; let existingCommentId = null; for ( const currentComment of comments ) { @@ -77,9 +76,7 @@ async function run( { github, context, core, artifactUrl } ) { const defaultSchema = generateWordpressPlaygroundBlueprint( context.issue.number, artifactUrl ); - const url = `https://playground.wordpress.net/#${ JSON.stringify( - defaultSchema - ) }`; + const url = `https://playground.wordpress.net/#${ JSON.stringify( defaultSchema ) }`; const body = ` ## Test using WordPress Playground