codeigniter4 / codeigniter4/CodeIgniter4
Dev: Check Conflicts Remove label does not work
- 主要语言
- PHP
- 星标
- 6k
- 派生
- 2k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 73
描述
When I resolved conflicts and pushed to the PR branch, "Auto Label "stale" / Check Conflicts" failed.
See #7955
```
Run # MERGEABLE with 'stale' label
# MERGEABLE with 'stale' label
if [ "$(echo $PR_DETAIL | jq -r '.mergeable')" == "MERGEABLE" ] && \
[ "$(echo $PR_DETAIL | jq -r '.labels[] | select(.name == "stale")')" != "" ]; then
# remove 'stale' label
gh pr edit $PR_URL --remove-label "stale"
fi
shell: /usr/bin/bash -e {0}
env:
PR_DETAIL: {"labels":[{"id":"MDU6TGFiZWwyNTMxNTUyNzA=","name":"bug","description":"Verified issues on the current code behavior or pull requests that will fix them","color":"fc2929"},{"id":"MDU6TGFiZWwxMDY5MjIwODIw","name":"stale","description":"Pull requests with conflicts","color":"ed769c"},{"id":"MDU6TGFiZWwyNDQzNTU0NDM1","name":"breaking change","description":"Pull requests that may break existing functionalities","color":"ff0000"},{"id":"LA_kwDOAniwTs8AAAABXsQnNQ","name":"4.5","description":"","color":"0e8a16"}],"mergeable":"MERGEABLE","url":"https://github.com/codeigniter4/CodeIgniter4/pull/7955"}
GITHUB_TOKEN: ***
PR_URL: https://github.com/codeigniter4/CodeIgniter4/pull/7955
GraphQL: Resource not accessible by integration (removeLabelsFromLabelable)
Error: Process completed with exit code 1.
```
https://github.com/codeigniter4/CodeIgniter4/actions/runs/6347432291/job/17242438331?pr=7955
Ref #7959
贡献指南
调研方向
从 issue 中链接的失败 GitHub Actions 运行开始,检查调用 gh pr edit 的“Auto Label stale / Check Conflicts”步骤。比较它在 PR #7955 以及相关引用 #7955 和 #7959 上的行为。完成的标准是解决冲突后移除 stale 标签,并且 workflow 成功完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github-actions, shell
- 领域
- ci-cd
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100