From 5aa525f41b8a64337385c7a8707152abdeb436ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cncqwer=E2=80=9D?= <“18694039767@163.com”> Date: Mon, 26 Feb 2024 01:01:24 +0800 Subject: [PATCH 1/3] fix: update pr url typo --- scripts/utils/updatePR.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/updatePR.js b/scripts/utils/updatePR.js index f7b64a5..5c3ab20 100644 --- a/scripts/utils/updatePR.js +++ b/scripts/utils/updatePR.js @@ -10,7 +10,7 @@ module.exports.updatePullRequest = async (content) => { }; const response = await fetch( - `https://api.github.com/repos/ncqwer/github_action_playground/pulls/${pullRequestNumber}`, + `https://api.github.com/repos/ncqwer/mono-exmaple-ui/pulls/${pullRequestNumber}`, { method: 'PATCH', headers: { From f924dfe7bc5f944dd3dcaa25639a5a20bdfb6bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cncqwer=E2=80=9D?= <“18694039767@163.com”> Date: Mon, 26 Feb 2024 01:09:23 +0800 Subject: [PATCH 2/3] doc: generate changelog by ci --- scripts/utils/tryAmendCommit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/utils/tryAmendCommit.js b/scripts/utils/tryAmendCommit.js index 0eaa7a6..c4ec9b9 100644 --- a/scripts/utils/tryAmendCommit.js +++ b/scripts/utils/tryAmendCommit.js @@ -6,6 +6,7 @@ module.exports.tryAmendCommit = async (forceNew = false) => { if (!forceNew && count > 0) { await execCommand('git add . && git commit -q --amend --no-edit'); } else { + // why const ans = await execCommand( `git add . && git commit -q -m "doc: generate changelog by ci"`, ); From b1a39a4231952e608374bf7769a4f585dfad97b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cncqwer=E2=80=9D?= <“18694039767@163.com”> Date: Mon, 26 Feb 2024 01:09:38 +0800 Subject: [PATCH 3/3] doc: generate changelog by ci --- scripts/utils/tryAmendCommit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/tryAmendCommit.js b/scripts/utils/tryAmendCommit.js index c4ec9b9..6e14fb5 100644 --- a/scripts/utils/tryAmendCommit.js +++ b/scripts/utils/tryAmendCommit.js @@ -6,7 +6,7 @@ module.exports.tryAmendCommit = async (forceNew = false) => { if (!forceNew && count > 0) { await execCommand('git add . && git commit -q --amend --no-edit'); } else { - // why + // why 22 const ans = await execCommand( `git add . && git commit -q -m "doc: generate changelog by ci"`, );