Skip to content

Test PR comment and summary features#11

Merged
TheKathan merged 19 commits into
mainfrom
test/pr-features
Feb 12, 2026
Merged

Test PR comment and summary features#11
TheKathan merged 19 commits into
mainfrom
test/pr-features

Conversation

@TheKathan
Copy link
Copy Markdown
Owner

Testing the new features:

  • comment-on-pr: true - Should add a comment to this PR with version preview
  • add-to-summary: true - Should add version info to the job summary

Expected version: v1.0.7-test.1 (pre-release from test/* branch)

This PR is just for testing the new features added in PR #9.

- Enable comment-on-pr in workflow
- Enable add-to-summary in workflow
- Add pull-requests write permission
- Minor README update to trigger workflow
@github-actions
Copy link
Copy Markdown

📦 Version Preview

This PR will create version: v1.0.7-test.1

  • Type: Pre-release
  • Will be published as pre-release tag

- Remove 'Will be published as pre-release tag' line
- Remove 'Will be published when merged to main' line
- Keep only version and type information
@github-actions
Copy link
Copy Markdown

📦 Version Preview

This PR will create version: v1.0.7-test.2

Type: Pre-release

TheKathan and others added 6 commits February 13, 2026 00:01
- Update existing bot comment instead of creating new ones
- Change wording from 'will create' to 'has been tagged as'
- Check for existing comment by searching for '📦 Version' marker
- Use heredoc to create comment body file
- Use placeholders and sed to substitute values
- Avoids YAML parsing issues with multiline strings
Remove placeholder approach and sed substitution in favor of direct variable expansion in heredoc. This simplifies the code and avoids YAML parsing issues.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Change from 'Type: **X**' to inline format '**VERSION** (TYPE)' to avoid YAML parser confusion with colons.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Use printf instead of heredoc for creating comment body to completely avoid YAML parser confusion with heredoc markers.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Change author.login from 'github-actions' to 'github-actions[bot]' to properly match GitHub Actions bot comments.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📦 Version

The latest version for this PR has been tagged as v1.0.7-test.3 (Pre-release)

@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.4 (Pre-release)

@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.5

Pre-release

Add branch name, bump type, and previous version to PR comment for better visibility. Also add these as action outputs.
@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.6

Type: Pre-release
Branch: test/pr-features
Bump: Patch
Previous: v1.0.6

@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.7

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch
Previous v1.0.6

@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.8

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch
Previous v1.0.6

@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.9

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch
Previous v1.0.6

Extract job summary logic into separate step for better organization and consistency with PR comment step. Use same table format for both.
@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.10

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch
Previous v1.0.6

@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.10

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch

- Document new outputs (branch, previous-version, bump-type)
- Add section showing PR comment and job summary features
- Clarify comment-on-pr requires enable-prerelease
- Show table format example
@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.10

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch

Prevents 'tag already exists' error when workflow runs multiple times on same commit.
@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.10

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch

@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.7-test.10

Field Value
Type Pre-release
Branch test/pr-features
Bump Patch

@TheKathan TheKathan merged commit 1a0671a into main Feb 12, 2026
1 check passed
@TheKathan TheKathan deleted the test/pr-features branch February 12, 2026 23:26
github-actions Bot pushed a commit that referenced this pull request Feb 13, 2026
* Test PR comment and summary features

- Enable comment-on-pr in workflow
- Enable add-to-summary in workflow
- Add pull-requests write permission
- Minor README update to trigger workflow

* Simplify PR comment - remove unnecessary note

- Remove 'Will be published as pre-release tag' line
- Remove 'Will be published when merged to main' line
- Keep only version and type information

* Reuse PR comment and fix wording

- Update existing bot comment instead of creating new ones
- Change wording from 'will create' to 'has been tagged as'
- Check for existing comment by searching for '📦 Version' marker

* Fix YAML syntax by using heredoc with placeholders

- Use heredoc to create comment body file
- Use placeholders and sed to substitute values
- Avoids YAML parsing issues with multiline strings

* fix: simplify PR comment generation using direct variable expansion

Remove placeholder approach and sed substitution in favor of direct variable expansion in heredoc. This simplifies the code and avoids YAML parsing issues.


* fix: simplify comment format to avoid YAML parsing issues

Change from 'Type: **X**' to inline format '**VERSION** (TYPE)' to avoid YAML parser confusion with colons.


* fix: replace heredoc with printf to avoid YAML parsing

Use printf instead of heredoc for creating comment body to completely avoid YAML parser confusion with heredoc markers.


* fix: correct GitHub Actions bot username

Change author.login from 'github-actions' to 'github-actions[bot]' to properly match GitHub Actions bot comments.


* Update PR comment to cleaner one-line format

* Move type to separate line in PR comment

* Add comprehensive info to PR comment

Add branch name, bump type, and previous version to PR comment for better visibility. Also add these as action outputs.

* Format PR comment as table

* Only show PR comment when pre-release is enabled

* Only show job summary when on main or pre-release enabled

* Separate job summary into its own step

Extract job summary logic into separate step for better organization and consistency with PR comment step. Use same table format for both.

* Remove Previous field from PR comment and summary

* Update README with PR comment and job summary documentation

- Document new outputs (branch, previous-version, bump-type)
- Add section showing PR comment and job summary features
- Clarify comment-on-pr requires enable-prerelease
- Show table format example

* Add check to skip if tag already exists

Prevents 'tag already exists' error when workflow runs multiple times on same commit.

* Remove redundant comments

---------
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.

1 participant