Skip to content

Commit c053d32

Browse files
CodeCasterXclaude
andcommitted
fix(ci): 修复 PR 标题检查的权限问题
修复 GitHub Actions workflow 权限不足导致的检查失败: - 将 pull-requests 权限从 read 改为 write - 添加 statuses: write 权限 - 移除无效的 enforceSingleSentence 参数 错误信息:Resource not accessible by integration Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d9e2ef6 commit c053d32

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/pr-title-check.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
types: [opened, edited, synchronize]
66

77
permissions:
8-
pull-requests: read
8+
pull-requests: write
9+
statuses: write
910

1011
jobs:
1112
validate:
@@ -34,9 +35,6 @@ jobs:
3435
subjectPattern: '^.{5,100}$'
3536
subjectPatternError: '标题描述长度应在 5-100 字符之间'
3637

37-
# 禁用首字母大写检查(兼容中文)
38-
enforceSingleSentence: false
39-
4038
# 支持 WIP 前缀标记进行中的工作
4139
wip: true
4240

0 commit comments

Comments
 (0)