Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • jw_sonar
  • jw_sonar_backup
  • main
  • move-to-esm-only
  • open_tool_for_self_hosting
  • v5.0
  • v4.1
  • v4.2
8 results

Target

Select target project
  • dojo_project/projects/shared/nodesharedcode
1 result
Select Git revision
  • jw_sonar
  • jw_sonar_backup
  • main
  • move-to-esm-only
  • open_tool_for_self_hosting
  • v5.0
  • v4.1
  • v4.2
8 results
Show changes
Commits on Source (2)
...@@ -25,7 +25,7 @@ const format = winston.format.combine(winston.format.timestamp({ format: 'YYYY-M ...@@ -25,7 +25,7 @@ const format = winston.format.combine(winston.format.timestamp({ format: 'YYYY-M
level: info.level.toUpperCase() level: info.level.toUpperCase()
}))(), SharedConfig.production ? winston.format.uncolorize() : winston.format.colorize({ all: true }), winston.format.prettyPrint(), winston.format.errors({ stack: true }), winston.format.align(), winston.format.printf(info => { }))(), SharedConfig.production ? winston.format.uncolorize() : winston.format.colorize({ all: true }), winston.format.prettyPrint(), winston.format.errors({ stack: true }), winston.format.align(), winston.format.printf(info => {
const metadata = info.metadata ? `\n${ JSON.stringify(info.metadata) }` : ''; const metadata = info.metadata ? `\n${ JSON.stringify(info.metadata) }` : '';
const stack = info.stack ? `\n${ info.stack }` : ''; const stack = info.stack ? `\n${ JSON.stringify(info.stack, undefined, 4) }` : '';
return `[${ info.timestamp }] (${ process.pid }) ${ info.level } ${ info.message } ${ metadata } ${ stack } `; return `[${ info.timestamp }] (${ process.pid }) ${ info.level } ${ info.message } ${ metadata } ${ stack } `;
})); }));
......
import axios from 'axios'; import axios from 'axios';
import * as GitlabCore from '@gitbeaker/core'; import * as GitlabCore from '@gitbeaker/core';
import { GitbeakerRequestError } from '@gitbeaker/requester-utils'; import { GitbeakerRequestError } from '@gitbeaker/requester-utils';
import { Gitlab, PipelineSchema, ProjectSchema, UserSchema } from '@gitbeaker/rest'; import { Gitlab, PipelineSchema, ProjectSchema, SimpleUserSchema, UserSchema } from '@gitbeaker/rest';
import GitlabToken from '../types/Gitlab/GitlabToken.js'; import GitlabToken from '../types/Gitlab/GitlabToken.js';
class SharedGitlabManager { class SharedGitlabManager {
...@@ -63,7 +63,7 @@ class SharedGitlabManager { ...@@ -63,7 +63,7 @@ class SharedGitlabManager {
} }
} }
public async getUserByUsername(username: string): Promise<UserSchema | undefined> { public async getUserByUsername(username: string): Promise<SimpleUserSchema | undefined> {
try { try {
return await this.executeGitlabRequest(async () => { return await this.executeGitlabRequest(async () => {
const user = await this.api.Users.all({ const user = await this.api.Users.all({
......