You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何触发GitHub仓库中PRLint应用对任意PR的检查

排查PRLint未触发检查的步骤
  • 修正配置文件语法错误
    你提供的prlint.json末尾存在多余逗号,属于JSON语法错误,会导致工具无法解析配置。修正后的正确配置如下:

    {
      "title": [
        {
          "pattern": "^(build|ci|docs|feat|fix|perf|refactor|style|test):\\s",
          "message": "PR title needs to be prefixed with a topic"
        }
      ]
    }
    
  • 验证PRLint应用权限
    进入仓库的「Settings」→「Applications」,找到PRLint应用:

    • 确认已开启「Repository permissions」下的「Pull requests」权限,且权限级别设为「Read and write」
    • 修改权限后点击「Save」确保权限生效
  • 确认应用已正确安装到当前仓库
    在仓库「Settings」→「Applications」的「Installed GitHub Apps」列表中,检查PRLint是否存在。如果未找到,重新安装应用时务必选中当前仓库(而非仅组织层面)。

  • 检查分支保护规则的覆盖范围
    确认你的PR目标分支在分支保护规则的覆盖范围内,且规则中「Require status checks to pass before merging」选项已正确勾选。若PRLint未出现在可选状态检查列表中,优先解决前面的权限/安装问题。

内容的提问来源于stack exchange,提问作者Kgn-web

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 01:40:35