main: pull_request: - stages: - name: 添加评审人 type: git:reviewer options: type: add-reviewer-from-group-members count: 2 exports: reviewersForAt: CURR_REVIEWER_FOR_AT - name: 评审信息通知到群聊 imports: https://cnb.cool/cnb/secrets/-/blob/main/envs/wework-robots.yml image: tencentcom/wecom-message settings: robot: $OCI_REVIEW_ROBOT content: | ${CNB_PULL_REQUEST_TITLE} [${CNB_EVENT_URL}](${CNB_EVENT_URL}) ${CURR_REVIEWER_FOR_AT} from ${CNB_BUILD_USER} pull_request.mergeable: - stages: - name: CR 通过后自动合并 type: git:auto-merge options: mergeType: squash removeSourceBranch: true exports: reviewedBy: REVIEWED_BY - name: CR 通过后通知到群聊 imports: https://cnb.cool/cnb/secrets/-/blob/main/envs/wework-robots.yml image: tencentcom/wecom-message settings: robot: $OCI_REVIEW_ROBOT msgType: markdown content: | CR 通过后自动合并: <@${CNB_PULL_REQUEST_PROPOSER}>   ${CNB_PULL_REQUEST_TITLE} [${CNB_EVENT_URL}](${CNB_EVENT_URL})   ${REVIEWED_BY}