Skip to content

Conversation

@djedi
Copy link
Owner

@djedi djedi commented Dec 12, 2025

Summary

  • Add automatic GitHub Release creation when code is merged to master
  • Release includes auto-generated changelog from PRs/commits
  • Shows Docker image availability in release body
  • Only creates release if git tag creation succeeds

Test plan

  • Merge to master and verify GitHub Release is created
  • Verify release includes auto-generated notes
  • Verify Docker image tags are listed in release body

Add release creation step to CI workflow that:
- Creates a GitHub release after tagging
- Includes auto-generated release notes from PRs/commits
- Shows Docker image availability in release body
- Skips release creation if tagging failed

Also adds commit guidelines to CLAUDE.md.
Copilot AI review requested due to automatic review settings December 12, 2025 17:03
@djedi djedi merged commit 6f5199c into master Dec 12, 2025
7 checks passed
Copy link
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 adds automatic GitHub Release creation when code is merged to the master branch. The release is created only if git tag creation succeeds, and includes auto-generated changelog notes from PRs and commits, along with information about the Docker image availability.

Key changes:

  • Adds GitHub Release automation step to the Docker build workflow
  • Release includes Docker image tags and auto-generated release notes
  • Also adds AI assistant instructions to CLAUDE.md (unrelated to main PR purpose)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/push-docker-hub.yml Adds "Create GitHub Release" step that creates a release with auto-generated notes and Docker image information when tag creation succeeds
CLAUDE.md Adds "Important Rules" section with instructions for AI assistant about not committing unless explicitly told

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

Comment on lines +128 to +142
- name: Create GitHub Release
if: steps.tag.outputs.version != 'skipped'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag.outputs.version }}
name: Release ${{ steps.tag.outputs.version }}
body: |
## What's Changed
Docker image available at:
- `xhenxhe/dailynotes:${{ steps.tag.outputs.version }}`
- `xhenxhe/dailynotes:latest`
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

The workflow needs explicit permissions to create GitHub releases. Add a permissions block at the job level with contents: write permission. Without this, the GITHUB_TOKEN will not have sufficient permissions to create releases, causing this step to fail.

Add the following at the job level (after runs-on: ubuntu-latest):

permissions:
  contents: write

Copilot uses AI. Check for mistakes.
Comment on lines +134 to +140
body: |
## What's Changed
Docker image available at:
- `xhenxhe/dailynotes:${{ steps.tag.outputs.version }}`
- `xhenxhe/dailynotes:latest`
generate_release_notes: true
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

The release body includes a "What's Changed" header, but generate_release_notes: true will also automatically generate a "What's Changed" section from PRs and commits. This will result in two "What's Changed" headers in the release notes, which looks unprofessional.

Consider removing the "What's Changed" header from the body and let the auto-generated notes handle it, or restructure the body to use a different header like "Docker Images" for the custom content.

Copilot uses AI. Check for mistakes.
@djedi djedi deleted the create-release branch December 12, 2025 17:07
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.

2 participants