From 36a1f7b52b7f453056ba4c5584368ad29f9f43e2 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 13 Jul 2025 11:19:40 +1000 Subject: [PATCH] Upgrade changelog workflow to run full validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simulates PR #4392 scenario to test detection and fixing of misplaced changelog entries 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/changelog-v3.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog-v3.yml b/.github/workflows/changelog-v3.yml index cacbb5a75..58371f986 100644 --- a/.github/workflows/changelog-v3.yml +++ b/.github/workflows/changelog-v3.yml @@ -15,11 +15,28 @@ jobs: - uses: actions/setup-go@v4 with: go-version: '1.23' - - name: Validate + - name: Simulate PR #4392 validation run: | - echo "PR: ${{ github.event.inputs.pr_number }}" + echo "Simulating validation for PR: ${{ github.event.inputs.pr_number }}" + + # Simulate the problematic lines from PR #4392 + cat > /tmp/pr_added_lines.txt << 'EOF' + - Add distribution-specific build dependencies for Linux by @leaanthony in [PR](https://github.com/wailsapp/wails/pull/4345) + - Added bindings guide by @atterpac in [PR](https://github.com/wailsapp/wails/pull/4404) + EOF + + echo "Simulated lines that would be added to changelog:" + cat /tmp/pr_added_lines.txt + + # Fetch v3-alpha to get the actual changelog + git fetch origin v3-alpha + git checkout origin/v3-alpha -- docs/src/content/docs/changelog.mdx || echo "Changelog not found, creating test version" + + # Run validation if script exists if [ -f "v3/scripts/validate-changelog.go" ]; then - echo "Script found" + echo "Running changelog validation..." + cd v3/scripts + go run validate-changelog.go ../../docs/src/content/docs/changelog.mdx /tmp/pr_added_lines.txt else echo "Script not found" fi \ No newline at end of file