Skip to content

Commit

Permalink
fix: 调整错误信息的匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Nov 19, 2020
1 parent 9aa51a1 commit 6ccb2fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async function createPullRequest(
labels: ['Plugin']
})
} catch (e) {
if (e.message.includes(`A pull request already exists for ${branchName}`)) {
if (e.message.includes(`A pull request already exists for`)) {
core.info('拉取请求已经创建,请查看')
} else {
throw e
Expand Down

0 comments on commit 6ccb2fe

Please sign in to comment.