Skip to content

Commit

Permalink
Merge pull request #88 from GuoXiCheng/dev-c
Browse files Browse the repository at this point in the history
update
  • Loading branch information
GuoXiCheng authored Jan 22, 2024
2 parents 74b3d40 + b700ca8 commit 4324a5e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/repository-lib/gitee/gitee-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export class GiteeRepository<T extends BaseModel> extends BaseRepository<T> {
super(request, issueNumber);
}

/**
* Finds items in the Gitee repository.
* @param params - Optional parameters for the search.
* @returns A promise that resolves to an array of items.
*/
async find(params?: GiteeParams): Promise<T[]> {
return super.find(params);
}
Expand Down
7 changes: 6 additions & 1 deletion src/repository-lib/github/github-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ export class GithubRepository<T extends BaseModel> extends BaseRepository<T> {
super(request, issueNumber);
}

/**
* Finds items in the GitHub repository.
* @param params - Optional parameters for the search.
* @returns A promise that resolves to an array of items.
*/
async find(params?: GithubParams): Promise<T[]> {
return super.find(params);
}

/**
* Retrieves the detailed information of an issue from Gitee.
* Retrieves the detailed information of an issue from Github.
* @returns A promise that resolves to an object containing the issue details.
*/
async detail(): Promise<IssueDetail> {
Expand Down
2 changes: 1 addition & 1 deletion src/repository-lib/gitlab/gitlab-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class GitlabRepository<T extends BaseModel> extends BaseRepository<T> {
}

/**
* Retrieves the detailed information of an issue from Gitee.
* Retrieves the detailed information of an issue from Gitlab.
* @returns A promise that resolves to an object containing the issue details.
*/
async detail(): Promise<IssueDetail> {
Expand Down

0 comments on commit 4324a5e

Please sign in to comment.