feat: Add configuration run environment #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
先不要合并。
name
字段,标识当前功能模块对应的配置名称,如:name: issue/autoLabel
表示对应了配置文件里的issue.autoLabel
,当然也在想配置里是不是也直接写这个 key 而不是多套一级,如:pullRequest/autoReviewRequest
和pullRequest.autoReviewRequest
的区别name
排列,并循环所有的package.json
配置开启的功能,去注册事件,注册时以空间名/仓库名@事件名
,这样在触发时就可以无条件触发了,因为是以仓库为粒度了上面对应了:
事件回调参数说明:
github-bot/src/app.js
Lines 35 to 38 in 4bdb7b5
pkg.config.github-bot.username/repo
,via:github-bot/src/app.js
Lines 69 to 72 in 4bdb7b5
pkg.config.github-bot.username/repo.pullRequest.autoReviewRequest