You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,17 +38,14 @@ Configure the repository webhook URL to **`POST https://<host>:<port>/webhooks/a
38
38
39
39
| Variable | Description |
40
40
|----------|-------------|
41
-
|`ATOMGIT_WEBHOOK_SECRET`|Webhook secret: compared to `X-Gitlab-Token` / `X-AtomGit-Token` (default), or used for HMAC (see `ATOMGIT_WEBHOOK_VERIFY_MODE`). If unset, the route responds `200` with `{ ok: false }`and does not process payloads (avoids retry storms). |
42
-
|`ATOMGIT_WEBHOOK_VERIFY_MODE`|`token` (default) or `hmac-sha256` (compare `X-AtomGit-Signature` / `X-Gitlab-Signature` as `sha256=<hex>` of raw body). |
41
+
|`PORTAL_ENDPOINT`|Portal base URL. Atomgit webhook verification token is fetched by owner from `/api/integration/open-source-orgs/webhook-tokens`and cached for 5 minutes. |
42
+
|`OPENATOM_INTEGRATION_TOKEN`|Bearer token used in `Authorization` header when calling portal openatom integration APIs. |
43
43
|`ATOMGIT_API_BASE`| REST root for OpenAPI calls, e.g. `https://api.atomgit.com/api/v5`. Writes: comments `POST .../repos/:owner/:repo/issues/:number/comments`; labels `POST .../labels` (JSON **array of strings**); close/reopen issue uses `GET .../repos/:owner/:repo/issues/:number` then `PATCH .../repos/:owner/issues/:number` with **`application/x-www-form-urlencoded`** (`repo`, `title`, `body`, `state=close|reopen`) per [AtomGit](https://docs.atomgit.com/docs/apis/patch-api-v-5-repos-owner-issues-number). Required when handling Atomgit webhooks that need `AtomgitScmClient`. |
44
44
|`ATOMGIT_TOKEN`|`Authorization: Bearer` token for OpenAPI. |
|`ATOMGIT_DEFAULT_BRANCH`| Optional; default `main` — used for `getRepositoryContent` raw file reads. |
47
46
48
47
**Payload mapping** (see `src/webhooks/map-atomgit-to-canonical.ts`): `Note Hook` / `object_kind: note` on an **Issue** → `IssueCommentCreated`; **Issue Hook** → `IssueLabeled` when (1) `action: update` and `changes.labels` has **at least one** new label, or (2) **`action: open`** and labels (on `object_attributes` or top-level `issue`) already include an **`r2cn-*`** score label (create-issue-with-labels). Other events are acknowledged with **200** and a debug log (no handler).
49
48
50
-
**Config YAML**: `loadBotConfig` still reads `r2cn-dev/...` via `ScmClient.getRepositoryContent`. On Atomgit-only installs, that path must exist on the same instance or you need a separate config strategy (docs §7).
Copy file name to clipboardExpand all lines: comment.en.yaml
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,15 @@
1
1
project:
2
2
noneProjectComment: >
3
-
Welcome to the R2CN project! Before getting started, you need to submit a PR first. For details, please refer to the documentation at https://r2cn.dev/docs/project/signup
3
+
Welcome to the R2CN project! Before getting started, you need to apply on the portal for project registration and mentor qualification onboarding.
4
4
noneMaintainerComment: >
5
5
You currently do not have permission to create R2CN tasks. Please contact your repository or organization administrator to submit a PR to add your GitHub ID to the r2cn.yaml file. For reference, see https://r2cn.dev/docs/project/mentor-and-tasks/mentor.
6
6
7
+
system:
8
+
apiUnavailable: >
9
+
The backend API service is unavailable. Please try again later.
10
+
webhookTokenMismatch: >
11
+
Project registration failed. Please contact the administrator.
12
+
7
13
task:
8
14
success: >
9
15
Task created successfully.
@@ -13,8 +19,6 @@ task:
13
19
Task score and other information cannot be modified after the task is completed.
14
20
taskNotFound: >
15
21
The task has not been created yet. Please use the "R2CN-score" label to create a task first.
16
-
apiUnavailable: >
17
-
The backend API service is unavailable. Please try again later.
18
22
scoreUndefinedComment: >
19
23
Please use the "R2CN-score" label to create a task. The score in the current label is incorrect.
20
24
scoreInvalidComment: >
@@ -38,7 +42,7 @@ requestAssign:
38
42
success: >
39
43
Claim successful: Waiting for mentor review. Please contact your mentor for review in a timely manner.
40
44
waitingInfoReview: >
41
-
Claim failed: Please register as a student at https://summer-ospp.ac.cn/r2cnLogin and pass the review before claiming tasks.
45
+
Claim failed: Please register as a student at https://internship.xuanwu.openatom.cn/en/signin and pass the review before claiming tasks.
42
46
waitingContract: >
43
47
Claim failed: Contract not signed. If you have confirmed signing, please contact the administrator in the R2CN Discord (https://discord.gg/WRp4TKv6rh) #signup-student channel to update the contract signing status.
0 commit comments