@@ -16,20 +16,21 @@ npm install -g @cozeloop/ci-tools
1616### 2. Usage
1717
1818> Command usage:
19- > * global command: run ` cozeloop-ci -h ` after installing @cozeloop/ci-tools
20- > * using npx: ` npx -p @cozeloop/ci-tools cozeloop-ci -h `
19+ >
20+ > - global command: run ` cozeloop-ci -h ` after installing @cozeloop/ci-tools
21+ > - using npx: ` npx -p @cozeloop/ci-tools cozeloop-ci -h `
2122
22- * Overview: ` cozeloop-ci -h `
23- * lark related: ` cozeloop-ci lark [send-message|sync-issue] -h `
23+ - Overview: ` cozeloop-ci -h `
24+ - lark related: ` cozeloop-ci lark [send-message|sync-issue|sync-pr ] -h `
2425
2526## Command: ` cozeloop-ci lark `
2627
2728Using lark app id and secret to authenticate for all sub commands.
2829
29- | Param| Comment| Example|
30- | ----| ----| ------|
31- |LARK_APP_ID| Lark app id, ` secrets.LARK_APP_ID ` | 'cli_xxx'
32- |LARK_APP_SECRET| Lark app secret, ` secrets.LARK_APP_SECRET ` | 'xxx'
30+ | Param | Comment | Example |
31+ | --------------- | -------------------------------------------- | ---------- |
32+ | LARK_APP_ID | Lark app id, ` secrets.LARK_APP_ID ` | 'cli_xxx' |
33+ | LARK_APP_SECRET | Lark app secret, ` secrets.LARK_APP_SECRET ` | 'xxx' |
3334
3435### 1. ` cozeloop-ci lark sync-issue `
3536
@@ -40,11 +41,10 @@ Synchronize GitHub issue via lark, with params:
4041| REPO_NAME| repo name, ` github.repository ` | 'coze-dev/cozeloop-python'|
4142| ISSUE_ACTION| issue action, ` github.event.action ` | 'opened'|
4243| ISSUE_NUMBER| issue number, ` github.event.issue.number ` | 3|
43- | ISSUE_URL| issue html url, ` github.event.issue.html_url ` | ' https://github.com/coze-dev/cozeloop-python/issues/3' |
44+ | ISSUE_URL| issue html url, ` github.event.issue.html_url ` | ` https://github.com/coze-dev/cozeloop-python/issues/3 ` |
4445| ISSUE_TITLE| issue title, ` github.event.issue.title ` | '如何将coze智能体的数据通过cozeloop上报'|
4546| ISSUE_BODY| issue body, ` github.event.issue.body ` | '请官方给出coze智能体上报到cozeloop的样例'|
4647
47-
4848🌰 Setup github workflow to notify via lark when issue opened, reopened or closed.
4949
5050``` yaml
@@ -91,10 +91,10 @@ Synchronize GitHub PR(Pull Request) via lark, with params:
9191
9292|Param|Comment|Example|
9393|----|----|------|
94- |REPO_NAME|po name, `github.repository`|'coze-dev/cozeloop-python'|
94+ |REPO_NAME|repo name, `github.repository`|'coze-dev/cozeloop-python'|
9595|PR_ACTION|pr action, `github.event.action`|'opened'|
96- |PR_NUMBER|pr number, `github.event.issue .number`|3|
97- |PR_URL|pr html url, `github.event.pull_request.html_url`|' https://github.com/coze-dev/cozeloop-python/pull/1' |
96+ |PR_NUMBER|pr number, `github.event.pull_request .number`|3|
97+ |PR_URL|pr html url, `github.event.pull_request.html_url`|` https://github.com/coze-dev/cozeloop-python/pull/1` |
9898|PR_TITLE|pr title, `github.event.pull_request.title`|'如何将coze智能体的数据通过cozeloop上报'|
9999|PR_SENDER|pr sender, `github.event.sender`|'xxx'|
100100|PR_SOURCE_OWNER|pr source owner, `github.event.pull_request.head.repo.owner.login`|'xxx'|
@@ -103,7 +103,6 @@ Synchronize GitHub PR(Pull Request) via lark, with params:
103103|PR_TARGET_REF|pr target ref, `github.event.pull_request.base.ref`|'xxx'|
104104|PR_MERGED|pr merged, `github.event.pull_request.merged`|'xxx'|
105105
106-
107106🌰 Setup github workflow to notify via lark when PR opened, reopened or closed.
108107
109108` ` ` yaml
0 commit comments