main: push: - stages: - name: trigger type: cnb:trigger options: token: $CNB_TOKEN event: api_trigger_upload_plugin_info slug: cnb/plugins/market branch: main env: PLUGIN_PATH: $CNB_REPO_NAME pull_request: lint: name: lint stages: - name: do commitlint image: tencentcom/commitlint - name: tencentcom/markdown-lint image: tencentcom/markdown-lint commands: - markdownlint README.md # - name: 添加评审人 # type: git:reviewer # options: # # 评审人 # reviewers: youkunhuang,loviselu,folgerfan,jingjingwu # type: add-reviewer # count: 2 # exports: # reviewersForAt: CURR_REVIEWER_FOR_AT - name: notify 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