Skip to content

Commit

Permalink
fix text
Browse files Browse the repository at this point in the history
  • Loading branch information
colinleefish committed Sep 23, 2024
1 parent 918e5e0 commit b7774b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ app.post("/webhook/:wecomUuid", async (req, res) => {
if (data.event_name === "push") {
content = "### Gitlab PUSH 🚀";
content += "\n\n";
content += "实例: " + headers["x-gitlab-instance"];
content += "\n";
content += "用户:" + data.user_username;
content += "============"
content += "\n\n";
content += "**【实例】**:" + headers["x-gitlab-instance"];
content += "\n";
content += "项目:" + data.project?.path_with_namespace;
content += "**【用户】**:" + data.user_username;
content += "\n";
content += "分支:" + data.ref;
content += "**【项目】**:" + data.project?.path_with_namespace;
content += "\n";
content += "Commit数:" + data.total_commits_count;
content += "**【分支】**:" + data.ref;
}

if (content !== "") {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/CodeArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function CodeArea({ url }: TCodeArea) {
>
{gitlabWebhook !== ""
? gitlabWebhook
: "请输入合理的企业微信webhook地址"}
: "请输入有效的企业微信webhook地址"}
</code>
</div>
</>
Expand Down

0 comments on commit b7774b5

Please sign in to comment.