Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd5fbfb4

Browse files
authored
ci: fix a bug in the theme preview action (anuraghazra#2549)
1 parent82224fa commitd5fbfb4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎scripts/preview-theme.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,13 @@ const themeNameAlreadyExists = (name) => {
298298
returnthemes[name]!==undefined;
299299
};
300300

301+
constDRY_RUN=process.env.DRY_RUN==="true"||false;
302+
301303
/**
302304
* Main function.
303305
*/
304306
exportconstrun=async(prNumber)=>{
305307
try{
306-
constdryRun=process.env.DRY_RUN==="true"||false;
307308
debug("Retrieve action information from context...");
308309
debug(`Context:${inspect(github.context)}`);
309310
letcommentBody=`
@@ -513,7 +514,7 @@ export const run = async (prNumber) => {
513514
// Create or update theme-preview comment.
514515
debug("Create or update theme-preview comment...");
515516
letcomment_url;
516-
if(!dryRun){
517+
if(!DRY_RUN){
517518
comment_url=awaitupsertComment(octokit,{
518519
comment_id:comment?.id,
519520
issue_number:pullRequestId,
@@ -535,7 +536,7 @@ export const run = async (prNumber) => {
535536
constreviewReason=themesValid
536537
?undefined
537538
:INVALID_REVIEW_COMMENT(comment_url);
538-
if(!dryRun){
539+
if(!DRY_RUN){
539540
awaitaddReview(
540541
octokit,
541542
pullRequestId,
@@ -558,7 +559,7 @@ export const run = async (prNumber) => {
558559
}
559560
}catch(error){
560561
debug("Set review state to `REQUEST_CHANGES` and add `invalid` label...");
561-
if(!dryRun){
562+
if(!DRY_RUN){
562563
awaitaddReview(
563564
octokit,
564565
pullRequestId,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp