Merged
fix(agent): Use "opened" PR state in code-merge-agent #5916
fix(agent): Use "opened" PR state in code-merge-agent #5916
Merged
liuxiaoxiao11Add on Sep 3
liuxiaoxiao11
liuxiaoxiao11Collaborators
Sep 3

GitCode/GitLab uses "opened" as the open PR state; "open" would never match.

Changes:

  • Minimal one-spot fix.

Validation:

  • No Issue linked.
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for liuxiaoxiao11's contribution.)
liuxiaoxiao11liuxiaoxiao11Collaborators
Sep 3 Created pull request, commit 8ae0d1dc
atomgit-bot
atomgit-bot
Sep 3 Comments:

变更摘要

本 PR 是一个针对 code-merge-agent 的单点修复:此前该 agent 使用 open 作为 PR 的开启状态进行判断,但 GitCode/GitLab 实际使用 opened 表示开启状态的 PR,导致 open 永远无法匹配。本次改动将状态值由 open 修正为 opened,使其与平台实际的 PR 状态保持一致。

主要改动

  • PR 开启状态值修正:在 code-merge-agent 中将 PR 状态判断由 open 改为 opened,对应 GitCode/GitLab 的真实状态定义,属于一处最小改动(新增 1 行、删除 1 行)。
  • 匹配行为修复:修复后 agent 能够正确匹配到处于开启状态的 PR,不再因状态值不一致而出现永远匹配不到的情况。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 3 Comments:

🤖 本次改动均为数据 / 生成 / 二进制文件(如测试用例、锁文件、媒体资源),没有可审查的代码逻辑,已跳过 AI 代码审查。

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 3 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 3 Comments:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
.opencode ✅ wangzheng97, lululu40888 (2/2) ✅ wangzheng97 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

xiaoyueyueyueyue, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
Sep 3 Set xinweiliu,cam_bxh,dai-zhentao,lululu40888,shi-dingkun,gguuaanngg,codehjp423,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,WenboCodes as approver
6 event messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
Sep 4 Added label: cann-cla/yes
liuxiaoxiao11
liuxiaoxiao11Collaborators
Sep 4 Comments:

compile

likedislike
liuxiaoxiao11liuxiaoxiao11Collaborators
Sep 4 Pre merge succeeded (commit_id: fff89359777b263a50cbadb792de048919297ff8)
CANN-robot
CANN-robotCollaborators
Sep 4 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 4 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 4 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 4 Added label: ci-pipeline-passed
wangzheng97
wangzheng97Collaborators
Sep 4 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 4 Added label: approved
huanglu
huangluCollaborators
Sep 4 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Sep 4 Added label: lgtm
CANN-robotCANN-robotCollaborators
Sep 4 Merged pull request