Skip to content

feat: ✨ add OCO_EMOJI_POSITION_BEFORE_DESCRIPTION - #288

Closed
ThomasSanson wants to merge 5 commits into
di-sukharev:devfrom
ThomasSanson:master
Closed

ThomasSanson wants to merge 5 commits into
di-sukharev:devfrom
ThomasSanson:master

Conversation

@ThomasSanson

Copy link
Copy Markdown
Contributor

Hello @di-sukharev,

I have submitted this pull request wherein I have made several amendments to your opencommit project.

  1. I have introduced a new configuration key OCO_EMOJI_POSITION_BEFORE_DESCRIPTION that allows users to customise the position of the emoji within the commit message. This provides users with greater flexibility in formatting their commit messages.

  2. I have updated the instructions within generateCommitMessageFromGitDiff.ts to reflect this new option.

  3. I have also updated the README.md file to include instructions on how to utilise the OCO_EMOJI_POSITION_BEFORE_DESCRIPTION configuration. This configuration allows users to determine where the GitMoji should be placed within the commit message.

  4. I have updated the assistant to accommodate the new OCO_EMOJI_POSITION_BEFORE_DESCRIPTION configuration. The assistant now generates commit messages based on the emoji position specified by the user.

  5. Lastly, I have updated the package version from 2.4.2 to 3.0.4 to reflect these new modifications and improvements.

I would like to emphasise that I have tested these modifications locally and everything appears to be functioning as expected.
The results are visible in the commit.

However, I would like to draw your attention to the fact that the documentation for contributing to the project is somewhat sparse. This could make access to contribution more challenging for new contributors. I believe it would be beneficial to enhance this aspect to facilitate community contribution.

Thank you for your time and consideration. I eagerly await your feedback on my pull request.

Close #219

…ION config key and implement its usage in prompts

The new configuration key OCO_EMOJI_POSITION_BEFORE_DESCRIPTION has been added to allow users to specify the position of the GitMoji in the commit message. This provides flexibility for users who may have different preferences for the placement of the GitMoji. The prompts have been updated to reflect this new configuration option and will now generate commit messages according to the user's preference.
@github-actions

Copy link
Copy Markdown

Stale pull request message

# Conflicts:
#	out/cli.cjs
#	out/github-action.cjs
#	package-lock.json
… commit messages

This update provides users with the ability to customize the placement of GitMoji in their commit messages. It includes examples and command line instructions for setting the GitMoji position either before the description or at the start of the commit message.
@ThomasSanson

Copy link
Copy Markdown
Contributor Author

@di-sukharev, may I kindly request that you assume responsibility for this pull request ?

Indeed, it appears that each time you approve another pull request, it leads to git conflicts on this one. To prevent such occurrences, it seems prudent for you to manage this task, thereby facilitating a more autonomous and direct resolution of the issue.

@ThomasSanson

Copy link
Copy Markdown
Contributor Author

@di-sukharev, may I kindly request that you assume responsibility for this pull request ?

Indeed, it appears that each time you approve another pull request, it leads to git conflicts on this one. To prevent such occurrences, it seems prudent for you to manage this task, thereby facilitating a more autonomous and direct resolution of the issue.

@di-sukharev

di-sukharev commented Jun 21, 2024 via email

Copy link
Copy Markdown
Owner

@di-sukharev
di-sukharev changed the base branch from master to dev July 4, 2024 08:14

@di-sukharev di-sukharev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Configurable GitMoji placement remains a reasonable feature, but this PR is based on the old prompt architecture, conflicts with master, and includes generated out files. Please port the idea onto master, do not commit generated bundles manually, and add prompt/unit tests for both positions and the OCO_EMOJI/OCO_DESCRIPTION combinations.

@ThomasSanson

Copy link
Copy Markdown
Contributor Author

Configurable GitMoji placement remains a reasonable feature, but this PR is based on the old prompt architecture, conflicts with master, and includes generated out files. Please port the idea onto master, do not commit generated bundles manually, and add prompt/unit tests for both positions and the OCO_EMOJI/OCO_DESCRIPTION combinations.

Dear @di-sukharev,

I hope this message finds you well.

Revisiting this issue certainly brought a smile to my face (in the most respectful sense). Indeed, two years on, the codebase has evolved considerably, and I would like to commend and thank you once again for your efforts.

I shall endeavour to free up some time to prepare and submit an update.

Kind regards

@di-sukharev

di-sukharev commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Thanks for coming back to this. To save you the rebase work, I took the implementation over and rewrote it against the current master. It landed in c56ec3c with config/env/help support, documentation, Conventional Commit and commitlint prompt handling, --fgm support, and regression coverage for both GitMoji positions and the OCO_EMOJI/OCO_DESCRIPTION combinations. I also preserved your contribution with a Co-authored-by credit. Closing this PR as implemented — thank you for the original contribution!

@di-sukharev

di-sukharev commented Aug 25, 2026

Copy link
Copy Markdown
Owner

One more follow-up for completeness: PR #585 adds regression coverage for the commitlint prompt path, omit-scope formatting, localized full-width colon separators, and the no-separator fallback. It has now been merged into master after all checks passed, keeping the implementation easy to maintain across all supported prompt shapes.

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.

[Feature]: Change Emoji Placement to Align with Tools and Standards

2 participants