changesets-gitlab icon indicating copy to clipboard operation
changesets-gitlab copied to clipboard

Add Environment Variable `GITLAB_COMMENT_CUSTOM_LINKS` for Custom Merge Request Links

Open fbritoferreira opened this issue 1 year ago • 2 comments

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.

fbritoferreira avatar Jul 04 '24 11:07 fbritoferreira

⚠️ No Changeset found

Latest commit: e7cbdff3854d7640884735179ab4cb695e62f3c2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

changeset-bot[bot] avatar Jul 04 '24 11:07 changeset-bot[bot]

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.

codesandbox-ci[bot] avatar Jul 04 '24 11:07 codesandbox-ci[bot]

@fbritoferreira I don't quite understand the use case. I'd like to keep things as simple as possible.

JounQin avatar Feb 17 '25 11:02 JounQin