Skip to content

Commit

Permalink
fix: 插件用户应该为提交议题的人,而不是仓库的所有者
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Nov 22, 2020
1 parent 503c995 commit 9ebcdd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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 @@ -299,7 +299,7 @@ async function run(): Promise<void> {
await exec.exec('git', ['checkout', '-b', branchName])

// 插件作者信息
const username = github.context.issue.owner
const username = github.context.payload.issue?.user.login

// 更新 plugins.json 并提交更改
const pluginInfo = extractPluginInfo(issueBody, username)
Expand Down

0 comments on commit 9ebcdd1

Please sign in to comment.