Skip to content

Stabilize music-social issue rendering by sanitizing commit message and canonicalizing URLs#242

Merged
DavidKRK merged 4 commits into
gh-pagesfrom
copilot/fix-dead-links-in-docs
May 29, 2026
Merged

Stabilize music-social issue rendering by sanitizing commit message and canonicalizing URLs#242
DavidKRK merged 4 commits into
gh-pagesfrom
copilot/fix-dead-links-in-docs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 28, 2026

The music-social workflow generated malformed issue bodies when commit messages contained multiple lines, causing checklist/link markdown to render incorrectly. This update hardens issue-body composition and normalizes site URLs used in generated social/checklist content.

  • Issue-body formatting hardening

    • Use only the first non-empty line of head_commit.message before interpolating into markdown.
    • Prevents multiline commit text from breaking subsequent sections (links, checklist, template blocks).
  • Canonical URL normalization in generated content

    • Replaced https://www.davidkrk.com/... with https://davidkrk.com/... in:
      • “Voir music.html en ligne” link
      • publication checklist link
      • social post template lines referencing the site
  • Representative change

    const commitMsgRaw = process.env.COMMIT_MSG || 'Mise à jour manuelle';
    const commitMsg = (commitMsgRaw.split(/\r?\n/).find(line => line.trim()) || 'Mise à jour manuelle').trim();

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copilot AI linked an issue May 28, 2026 that may be closed by this pull request
6 tasks
Copilot AI changed the title [WIP] Fix dead and redirected links in documentation and pages Stabilize music-social issue rendering by sanitizing commit message and canonicalizing URLs May 28, 2026
Copilot AI requested a review from DavidKRK May 28, 2026 21:34
@DavidKRK DavidKRK marked this pull request as ready for review May 29, 2026 03:23
Copilot AI review requested due to automatic review settings May 29, 2026 03:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the music-social workflow’s generated GitHub issue body so multiline commit messages do not break Markdown rendering, and updates generated site references to use the bare davidkrk.com URL.

Changes:

  • Extracts the first non-empty commit-message line before interpolating it into the issue body.
  • Updates generated social/checklist links from www.davidkrk.com to davidkrk.com.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavidKRK DavidKRK merged commit c58e3a9 into gh-pages May 29, 2026
10 checks passed
DavidKRK pushed a commit that referenced this pull request May 29, 2026
…conflict (#250)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🎵 New Music Update — 19/05/2026 05:43:23

3 participants