Skip to content

Commit

Permalink
chore: update API specs and client
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 16, 2024
1 parent 8d72dcb commit e25273c
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
16 changes: 16 additions & 0 deletions server/application-server/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ components:
$ref: "#/components/schemas/PullRequest"
PullRequest:
required:
- number
- state
- title
- url
Expand All @@ -236,6 +237,9 @@ components:
type: string
url:
type: string
number:
type: integer
format: int32
state:
type: string
description: |-
Expand Down Expand Up @@ -273,6 +277,18 @@ components:
$ref: "#/components/schemas/PullRequestReview"
repository:
$ref: "#/components/schemas/Repository"
pullRequestLabels:
uniqueItems: true
type: array
items:
$ref: "#/components/schemas/PullRequestLabel"
PullRequestLabel:
type: object
properties:
name:
type: string
color:
type: string
PullRequestReview:
required:
- state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ model/issue-comment.ts
model/leaderboard-entry.ts
model/models.ts
model/pull-request-dto.ts
model/pull-request-label.ts
model/pull-request-review-comment.ts
model/pull-request-review.ts
model/pull-request.ts
Expand Down
1 change: 1 addition & 0 deletions webapp/src/app/core/modules/openapi/model/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from './issue-comment-dto';
export * from './leaderboard-entry';
export * from './pull-request';
export * from './pull-request-dto';
export * from './pull-request-label';
export * from './pull-request-review';
export * from './pull-request-review-comment';
export * from './repository';
Expand Down
18 changes: 18 additions & 0 deletions webapp/src/app/core/modules/openapi/model/pull-request-label.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Hephaestus API
* API documentation for the Hephaestus application server.
*
* The version of the OpenAPI document: 0.0.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface PullRequestLabel {
name?: string;
color?: string;
}

3 changes: 3 additions & 0 deletions webapp/src/app/core/modules/openapi/model/pull-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Do not edit the class manually.
*/
import { Repository } from './repository';
import { PullRequestLabel } from './pull-request-label';
import { PullRequestReview } from './pull-request-review';
import { User } from './user';
import { IssueComment } from './issue-comment';
Expand All @@ -21,6 +22,7 @@ export interface PullRequest {
updatedAt?: string;
title: string;
url: string;
number: number;
/**
* State of the PullRequest. Does not include the state of the merge.
*/
Expand All @@ -34,6 +36,7 @@ export interface PullRequest {
comments?: Set<IssueComment>;
reviews?: Set<PullRequestReview>;
repository?: Repository;
pullRequestLabels?: Set<PullRequestLabel>;
}
export namespace PullRequest {
export type StateEnum = 'CLOSED' | 'OPEN';
Expand Down

0 comments on commit e25273c

Please sign in to comment.