Skip to content

Add Environment Variable GITLAB_COMMENT_CUSTOM_LINKS for Custom Merge Request Links#189

Closed
fbritoferreira wants to merge 0 commit into
un-ts:mainfrom
fbritoferreira:main
Closed

Add Environment Variable GITLAB_COMMENT_CUSTOM_LINKS for Custom Merge Request Links#189
fbritoferreira wants to merge 0 commit into
un-ts:mainfrom
fbritoferreira:main

Conversation

@fbritoferreira

Copy link
Copy Markdown
Contributor

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.

@changeset-bot

changeset-bot Bot commented Jul 4, 2024

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e7cbdff

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

@codesandbox-ci

codesandbox-ci Bot commented Jul 4, 2024

Copy link
Copy Markdown

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.

Comment thread README.md Outdated
@JounQin

JounQin commented Feb 17, 2025

Copy link
Copy Markdown
Member

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

@sonarqubecloud

sonarqubecloud Bot commented Apr 1, 2025

Copy link
Copy Markdown

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