debug: add logging to GitLab issueLink to debug URL construction

- Added console.log statements to see what parameters are being passed
- This will help identify why the URL is being constructed incorrectly
- Temporary debug commit to investigate the malformed URL issue

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Johannes Millan 2025-06-10 21:58:37 +02:00
parent 0bf60bea4b
commit 8a03471f82

View file

@ -42,13 +42,22 @@ export class GitlabCommonInterfacesService implements IssueServiceInterface {
.pipe(
map((cfg) => {
const project: string = cfg.project;
console.log('GitLab issueLink debug:', {
issueId,
project,
gitlabBaseUrl: cfg.gitlabBaseUrl,
});
if (cfg.gitlabBaseUrl) {
const fixedUrl = cfg.gitlabBaseUrl.match(/.*\/$/)
? cfg.gitlabBaseUrl
: `${cfg.gitlabBaseUrl}/`;
return `${fixedUrl}${project}/-/issues/${issueId}`;
const url = `${fixedUrl}${project}/-/issues/${issueId}`;
console.log('GitLab issueLink result (custom base):', url);
return url;
} else {
return `${GITLAB_BASE_URL}${project}/-/issues/${issueId}`;
const url = `${GITLAB_BASE_URL}${project}/-/issues/${issueId}`;
console.log('GitLab issueLink result (default base):', url);
return url;
}
}),
)