Skip to content

Expand Release configuration documentation - #473

Open
Akarshkushwaha wants to merge 2 commits into
openSUSE:masterfrom
Akarshkushwaha:codex/fix-release-tag-471
Open

Akarshkushwaha wants to merge 2 commits into
openSUSE:masterfrom
Akarshkushwaha:codex/fix-release-tag-471

Conversation

@Akarshkushwaha

Copy link
Copy Markdown

The Release: documentation still says it applies only to RPM packages and does not explain how to set different release templates for different build types.

This update removes the outdated restriction, explains the <CI_CNT> and <B_CNT> placeholders, and documents build-type overrides. It also adds an example showing how to apply a prefix to RPM release numbers while keeping the default template for other build types.

Fixes #471

Validation:

  • User guide and complete documentation passed GeekoDoc validation.
  • Complete HTML build passed.
  • Checked the generated HTML to confirm the syntax and example display correctly.

Remove the outdated RPM-only restriction and explain the release counter
placeholders, default template, and build-type-specific overrides.
Include the spec-prefixed example and its resulting release numbers.

Fixes openSUSE#471
@hennevogel

Copy link
Copy Markdown
Member

@mlschroe can you verify this please? I fail to find the code that parses the spec: part...

@adrianschroeter adrianschroeter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

While being over it it would be nice to mention also the tag which is a shoretcut for <CI_CNT>.<B_CNT> default.

Comment thread xml/obs_build_config.xml Outdated
<command>B_CNT</command> is the number of rebuilds.
The default is <command>CI_CNT.B_CNT</command>.
Defines the template used to generate release numbers. This setting also applies
to build types other than RPM, such as Debian packages and Docker containers.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please don't list only some them here. Just say it is supported for most build formats.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done. The sentence now just says the setting is supported for most build formats, without listing specific ones.

Say that Release templates are supported for most build formats
instead of listing only some of them, and document the <RELEASE>
tag as a shortcut for the generated release number
(<CI_CNT>.<B_CNT> by default).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Akarshkushwaha

Copy link
Copy Markdown
Author

I added a paragraph documenting the tag as a shortcut for the generated release number (<CI_CNT>.<B_CNT> by default), with examples of where it's used: the Release: line of a spec file and container tags. Please let me know if you meant a different tag.

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.

Expand Release Tag

3 participants