Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NodeSharedCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Shared
NodeSharedCode
Compare revisions
de8af98ab1085f83a5756e797812b400298689dd to 92008b25753c96bef9917cd39baab3a4d160cd9c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dojo_project/projects/shared/nodesharedcode
Select target project
No results found
92008b25753c96bef9917cd39baab3a4d160cd9c
Select Git revision
Branches
jw_sonar
jw_sonar_backup
main
move-to-esm-only
open_tool_for_self_hosting
v5.0
Tags
v4.1
v4.2
8 results
Swap
Target
dojo_project/projects/shared/nodesharedcode
Select target project
dojo_project/projects/shared/nodesharedcode
1 result
de8af98ab1085f83a5756e797812b400298689dd
Select Git revision
Branches
jw_sonar
jw_sonar_backup
main
move-to-esm-only
open_tool_for_self_hosting
v5.0
Tags
v4.1
v4.2
8 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
GitlabManager => Update type for newer gitbeaker version
· 3605016c
michael.minelli
authored
3 months ago
3605016c
Logger => Supress ESLint error
· 92008b25
michael.minelli
authored
3 months ago
92008b25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
logging/WinstonLogger.ts
+1
-1
1 addition, 1 deletion
logging/WinstonLogger.ts
managers/SharedGitlabManager.ts
+6
-6
6 additions, 6 deletions
managers/SharedGitlabManager.ts
with
7 additions
and
7 deletions
logging/WinstonLogger.ts
View file @
92008b25
...
@@ -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
}
`
;
}));
}));
...
...
This diff is collapsed.
Click to expand it.
managers/SharedGitlabManager.ts
View file @
92008b25
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
<
Simple
UserSchema
|
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
({
...
...
This diff is collapsed.
Click to expand it.