(gas) マージコミットはChangelogに含まないように

This commit is contained in:
kakkokari-gtyih 2023-12-27 15:23:32 +09:00
parent 75cbe92fc6
commit 6353cb2eee

View File

@ -38,7 +38,7 @@ function getChangeLog(d) {
const res = JSON.parse(UrlFetchApp.fetch(`https://api.github.com/repos/misskey-dev/misskey-hub-next/compare/${GH_PREVIOUS_COMMIT_SHA}...${d.deployment.sha}`).getContentText()); const res = JSON.parse(UrlFetchApp.fetch(`https://api.github.com/repos/misskey-dev/misskey-hub-next/compare/${GH_PREVIOUS_COMMIT_SHA}...${d.deployment.sha}`).getContentText());
return res.commits.map((commit) => `・${commit.commit.message.split('\n')[0]}`).reverse().join('\n'); return res.commits.map((commit) => `・${commit.commit.message.split('\n')[0]}`).filter((v) => !v.startsWith('・Merge branch \'master\' of')).reverse().join('\n');
} }
function postToMisskey(d) { function postToMisskey(d) {