使用 GitHub 自带提供的 Actions 服务
教程详细,模版丰富
只要 GitHub 不宕机,它就不受影响
这里列举一个非常简单以及常用的例子。对应场景为:当一个 issue 新增 help wanted
标签时,系统会自动进行评论。
name: Issue Replyon:issues:types: [labeled]jobs:reply-helper:runs-on: ubuntu-lateststeps:- name: help wantedif: github.event.label.name == 'help wanted'uses: actions-cool/issues-helper@v1.11with:actions: 'create-comment'token: ${{ secrets.GITHUB_TOKEN }}issue-number: ${{ github.event.issue.number }}body: |Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome PR。你好 @${{ github.event.issue.user.login }},我们完全同意你的提议/反馈,欢迎PR。
非常欢迎你来尝试使用,并提出意见,你可以通过以下方式:
issues-helper
的代码