This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from KnisterPeter/assignees
feat: add/remove assignees for gitlab
- Loading branch information
Showing
12 changed files
with
127 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
import { User } from '../user'; | ||
import { GitHub, UserResponse } from './index'; | ||
|
||
export class GithubUser implements User<string> { | ||
export class GithubUser implements User { | ||
|
||
public id: string; | ||
private client: GitHub; | ||
|
||
private struct: UserResponse; | ||
|
||
public get id(): number { | ||
return this.struct.id; | ||
} | ||
|
||
public get username(): string { | ||
return this.struct.login; | ||
} | ||
|
||
constructor(client: GitHub, struct: UserResponse) { | ||
this.client = client; | ||
this.struct = struct; | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
import { User } from '../user'; | ||
import { GitLab, UserResponse } from './api'; | ||
|
||
export class GitLabUser implements User { | ||
|
||
private client: GitLab; | ||
|
||
private struct: UserResponse; | ||
|
||
public get id(): number { | ||
return this.struct.id; | ||
} | ||
|
||
public get username(): string { | ||
return this.struct.username; | ||
} | ||
|
||
constructor(client: GitLab, struct: UserResponse) { | ||
this.client = client; | ||
this.struct = struct; | ||
} | ||
|
||
export class GitLabUser implements User<number> { | ||
public id: number; | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export interface User<ID> { | ||
id: ID; | ||
export interface User { | ||
id: number; | ||
username: string; | ||
} |
This file contains 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