Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

Overview

Service chapters now render in logical priority order: "Closed Issues without User Defined Labels" appears immediately after user-defined chapters, followed by remaining service chapters. This surfaces unlabeled-but-closed issues more prominently in release notes.

The implementation uses an internally defined chapter order within the ServiceChapters class, making the solution maintainable and flexible for future chapter reordering.

Release Notes

  • Service chapter "Closed Issues without User Defined Labels ⚠️" now appears immediately after user-defined chapters instead of after "Closed Issues without Pull Request ⚠️"

Related

Closes #75


Changes

Chapter Ordering (Internally Defined)

  • ServiceChapters.__init__(): added chapter_order list to define rendering sequence
  • ServiceChapters.to_string(): updated to iterate through chapter_order instead of dictionary values
  • Chapter ordering is self-contained within ServiceChapters - no special handling needed in builder

Architecture Benefits:

  • ✅ More maintainable - chapter order defined in one place
  • ✅ More flexible - easy to reorder chapters by updating one list
  • ✅ Cleaner code - builder doesn't need chapter-specific logic

Before:

### User Feature 🎉
...
### Closed Issues without Pull Request ⚠️
...
### Closed Issues without User Defined Labels ⚠️  ← was here
...

After:

### User Feature 🎉
...
### Closed Issues without User Defined Labels ⚠️  ← now here
...
### Closed Issues without Pull Request ⚠️
...

Documentation

  • Updated service chapters feature doc with explicit ordering list
  • Updated example output files to reflect new chapter sequence

Custom agent used: Senior Developer
Implements features and fixes with high quality, meeting specs and tests.

Original prompt

Implement issue #75.

Custom agent used: Senior Developer
Implements features and fixes with high quality, meeting specs and tests.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@coderabbitai
Copy link

coderabbitai bot commented Jan 14, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI and others added 2 commits January 14, 2026 11:00
- Modified ServiceChapters.to_string() to support excluding specific chapters
- Added ServiceChapters.get_chapter_string() to retrieve individual chapter strings
- Updated ReleaseNotesBuilder.build() to place "Closed Issues without User Defined Labels" chapter immediately after user-defined chapters
- Updated all test expectations to reflect the new chapter ordering
- All tests passing, Black formatted, Pylint 9.97/10, mypy clean

Co-authored-by: miroslavpojer <[email protected]>
- Updated service_chapters.md to document the new ordering with "Closed Issues without User Defined Labels" appearing first
- Updated example output files to reflect the new chapter order
- Added explicit note about chapter ordering in the Service Chapter Set section

Co-authored-by: miroslavpojer <[email protected]>
Copilot AI changed the title [WIP] Implement feature from issue 75 for generating release notes Reorder service chapters: place "Closed Issues without User Defined Labels" immediately after user-defined chapters Jan 14, 2026
Copilot AI requested a review from miroslavpojer January 14, 2026 11:07
Copy link
Collaborator

@miroslavpojer miroslavpojer left a comment

Choose a reason for hiding this comment

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

  • pulled
  • code check

- Added chapter_order list in ServiceChapters.__init__ to define rendering sequence
- Updated to_string() to iterate through chapter_order instead of self.chapters.values()
- Removed special handling from ReleaseNotesBuilder - ordering is now self-contained
- This approach is more maintainable and flexible for future chapter order changes

Addresses review feedback from @miroslavpojer

Co-authored-by: miroslavpojer <[email protected]>
Copy link
Collaborator

@miroslavpojer miroslavpojer left a comment

Choose a reason for hiding this comment

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

I like this change.

@miroslavpojer miroslavpojer marked this pull request as ready for review January 15, 2026 09:45
@miroslavpojer miroslavpojer requested a review from Copilot January 15, 2026 09:45
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 reorders service chapters in generated release notes to place "Closed Issues without User Defined Labels ⚠️" immediately after user-defined chapters, making unlabeled-but-closed issues more prominent. The implementation uses an internal chapter_order list within the ServiceChapters class for maintainable and flexible chapter ordering.

Changes:

  • Added chapter_order list to ServiceChapters.__init__() to define rendering sequence
  • Updated ServiceChapters.to_string() to iterate through chapter_order instead of dictionary values
  • Updated test fixtures to reflect new chapter order
  • Updated documentation and example outputs to show new service chapter ordering

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
release_notes_generator/chapters/service_chapters.py Implemented chapter ordering logic with chapter_order list and updated to_string() method
tests/unit/release_notes_generator/builder/test_release_notes_builder.py Updated test fixtures to reflect new service chapter order
docs/features/service_chapters.md Updated documentation to reflect new chapter ordering with explicit numbered list
examples/output_example_with_hierarchy.md Updated example output to show new chapter order
examples/output_example_no_hierarchy.md Updated example output to show new chapter order

@miroslavpojer miroslavpojer requested a review from Copilot January 15, 2026 09:54
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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Copy link
Collaborator

@tmikula-dev tmikula-dev left a comment

Choose a reason for hiding this comment

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

Approving :)

@miroslavpojer miroslavpojer merged commit a019891 into master Jan 15, 2026
8 checks passed
@miroslavpojer miroslavpojer deleted the copilot/implement-issue-75 branch January 15, 2026 10:48
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.

"Closed issues without user defined labels" chapter should be the first service chapter

3 participants