Skip to content

Commit ad13f88

Browse files
authored
Fix music-social issue body formatting by normalizing commit message to first line (#246)
* Initial plan * fix: keep only first commit line in music update issues * refactor: reuse default commit message constant --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 4b76976 commit ad13f88

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/music-social.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ jobs:
7777
script: |
7878
const sha = process.env.COMMIT_SHA || '';
7979
const shortSha = sha.slice(0, 7);
80-
const commitMsg = process.env.COMMIT_MSG || 'Mise à jour manuelle';
80+
const defaultCommitMsg = 'Mise à jour manuelle';
81+
const commitMsg = (process.env.COMMIT_MSG || defaultCommitMsg)
82+
.split('\n')
83+
.find(line => line.trim().length > 0) || defaultCommitMsg;
8184
const author = process.env.COMMIT_AUTHOR || 'DavidKRK';
8285
const linesAdded = process.env.LINES_ADDED;
8386
const linesRemoved = process.env.LINES_REMOVED;

0 commit comments

Comments
 (0)