Skip to content

Commit

Permalink
Update pr-merge-dev-npm_preview.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu authored Sep 23, 2024
1 parent 331e392 commit a4444b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-merge-dev-npm_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
// 获取pr的issue编号并且转换成数字数组
const getIssueRegex =(issueText)=>{
const issueRegex = /#(\d+)/g
return Array.from(issueText.matchAll(issueRegex), match => parseInt(match[1], 10));
return Array.from(issueText?.matchAll(issueRegex), match => parseInt(match[1], 10));
};
const comment = `谢谢您的大力支持,请安装和此相关的测试版进行极速体验:
Expand Down Expand Up @@ -194,4 +194,4 @@ jobs:
createComment(issue_array);
}catch(error){
console.log('error',error);
}
}

0 comments on commit a4444b9

Please sign in to comment.