Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Environment Variable GITLAB_COMMENT_CUSTOM_LINKS for Custom Merge Request Links #189

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fbritoferreira
Copy link

This merge request introduces a new environment variable GITLAB_COMMENT_CUSTOM_LINKS. This variable allows users to specify custom links to be included in the merge request message, replacing the predefined links. This enhancement provides greater flexibility and customization for users who need to include specific links in their merge request comments.

  • Added GITLAB_COMMENT_CUSTOM_LINKS environment variable.
  • Updated documentation to include details on using GITLAB_COMMENT_CUSTOM_LINKS.

Usage:

To use this new feature, set the GITLAB_COMMENT_CUSTOM_LINKS environment variable with your desired links in the appropriate format. For example:

export GITLAB_COMMENT_CUSTOM_LINKS=`
http://example.com/link1,
http://example.com/link2`

This will replace the predefined links in the merge request message with the specified custom links.

Copy link

changeset-bot bot commented Jul 4, 2024

🦋 Changeset detected

Latest commit: 95b1def

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
changesets-gitlab Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codesandbox-ci bot commented Jul 4, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

DEBUG_GITLAB_CREDENTIAL # optional, default `false`
GITLAB_COMMENT_CUSTOM_LINKS # optional, allow the linkS for the absent comment to be overwritten
UPDATE_PACKAGE_LOCK_BEFORE_MR # optional, default `false`
UPDATE_PACKAGE_LOCK_SCRIPT # optional, default `npm install`
Copy link

Choose a reason for hiding this comment

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

Perhaps add more detail about those 2 variables in the documentation.
And add into the PR details why you add it

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.

2 participants