mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 10:45:57 +00:00
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:
parent
0bf60bea4b
commit
8a03471f82
1 changed files with 11 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue