fix(gitlab): update N4 custom script for new GitLab UI#2407
Merged
sanjinkapetanovich merged 1 commit intomasterfrom Feb 10, 2026
Merged
fix(gitlab): update N4 custom script for new GitLab UI#2407sanjinkapetanovich merged 1 commit intomasterfrom
sanjinkapetanovich merged 1 commit intomasterfrom
Conversation
askides
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🌟 What does this PR do?
Issue
The N4 custom GitLab script stopped working after GitLab updated their UI. The old selectors (
.issue-details,.detail-page-header,data-qa-label-name) no longer exist in the new GitLab interface.Cause
GitLab migrated to a new UI that uses
data-testidattributes instead of the previous class-based selectors. The issue ID extraction method (URL regex) also needed updating to use the body'sdata-page-type-idattribute.Solution
Updated all selectors to match the new GitLab UI:
span[data-testid="work-item-created"].detail-page-description[data-testid="selected-label-content"] span.gl-label-textbody.getAttribute('data-page-type-id')Also cleaned up the code by removing debugger statements and adding proper JSDoc header.
💬 Summarise how you feel about this PR with a gif