Skip to content

ci: add GIT_COMMIT_MESSAGE_SUFFIX param to bump-ruby-package task#62

Merged
Alphasite merged 1 commit into
mainfrom
add-git-commit-message-suffix-to-bump-gems
Jul 7, 2026
Merged

ci: add GIT_COMMIT_MESSAGE_SUFFIX param to bump-ruby-package task#62
Alphasite merged 1 commit into
mainfrom
add-git-commit-message-suffix-to-bump-gems

Conversation

@Alphasite

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional GIT_COMMIT_MESSAGE_SUFFIX parameter to bump-ruby-package.yml
  • Updates bump-ruby-package.sh to append the suffix to the auto-generated commit message when the param is set

This mirrors the same pattern added to bump-gems in #61. It allows callers to inject tokens required by branch protection rulesets (e.g. [skip-commit-ruleset]) without forking the task.

Test plan

  • Pass GIT_COMMIT_MESSAGE_SUFFIX: "\n\n[skip-commit-ruleset]" in a pipeline and verify the resulting commit message includes the suffix
  • Verify that when GIT_COMMIT_MESSAGE_SUFFIX is unset the commit message is unchanged

Made with Cursor

Add an optional GIT_COMMIT_MESSAGE_SUFFIX parameter to both the task
definition and the shell script. When set, the suffix is appended to
the auto-generated commit message, allowing callers to include tokens
required by branch protection rulesets (e.g. [skip-commit-ruleset]).

ai-assisted=yes

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings July 7, 2026 20:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds support for optionally appending a caller-provided suffix to the auto-generated git commit message in the bump-ruby-package Concourse task, enabling compliance with branch protection commit-message rules (mirrors the existing bump-gems task behavior in this repo).

Changes:

  • Add GIT_COMMIT_MESSAGE_SUFFIX to bump-ruby-package.yml task params.
  • Update bump-ruby-package.sh to append GIT_COMMIT_MESSAGE_SUFFIX verbatim to the generated commit message when set.

Reviewed changes

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

File Description
ci/tasks/shared/bump-ruby-package.yml Declares GIT_COMMIT_MESSAGE_SUFFIX as an optional task parameter.
ci/tasks/shared/bump-ruby-package.sh Builds commit_message and conditionally appends GIT_COMMIT_MESSAGE_SUFFIX before git commit.

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

@Alphasite Alphasite merged commit 5679b5f into main Jul 7, 2026
3 checks passed
@Alphasite Alphasite deleted the add-git-commit-message-suffix-to-bump-gems branch July 7, 2026 21:00
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.

3 participants