From e25273ca30965acbbaa3195e8f169970c4ea61a9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Sep 2024 12:49:40 +0000 Subject: [PATCH] chore: update API specs and client --- server/application-server/openapi.yaml | 16 ++++++++++++++++ .../modules/openapi/.openapi-generator/FILES | 1 + .../app/core/modules/openapi/model/models.ts | 1 + .../openapi/model/pull-request-label.ts | 18 ++++++++++++++++++ .../core/modules/openapi/model/pull-request.ts | 3 +++ 5 files changed, 39 insertions(+) create mode 100644 webapp/src/app/core/modules/openapi/model/pull-request-label.ts diff --git a/server/application-server/openapi.yaml b/server/application-server/openapi.yaml index 53a612d0..bef3ba87 100644 --- a/server/application-server/openapi.yaml +++ b/server/application-server/openapi.yaml @@ -218,6 +218,7 @@ components: $ref: "#/components/schemas/PullRequest" PullRequest: required: + - number - state - title - url @@ -236,6 +237,9 @@ components: type: string url: type: string + number: + type: integer + format: int32 state: type: string description: |- @@ -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 diff --git a/webapp/src/app/core/modules/openapi/.openapi-generator/FILES b/webapp/src/app/core/modules/openapi/.openapi-generator/FILES index 1840a28c..5f8b3e2e 100644 --- a/webapp/src/app/core/modules/openapi/.openapi-generator/FILES +++ b/webapp/src/app/core/modules/openapi/.openapi-generator/FILES @@ -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 diff --git a/webapp/src/app/core/modules/openapi/model/models.ts b/webapp/src/app/core/modules/openapi/model/models.ts index 81d76b51..32a27356 100644 --- a/webapp/src/app/core/modules/openapi/model/models.ts +++ b/webapp/src/app/core/modules/openapi/model/models.ts @@ -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'; diff --git a/webapp/src/app/core/modules/openapi/model/pull-request-label.ts b/webapp/src/app/core/modules/openapi/model/pull-request-label.ts new file mode 100644 index 00000000..9e0750c2 --- /dev/null +++ b/webapp/src/app/core/modules/openapi/model/pull-request-label.ts @@ -0,0 +1,18 @@ +/** + * Hephaestus API + * API documentation for the Hephaestus application server. + * + * The version of the OpenAPI document: 0.0.1 + * Contact: felixtj.dietrich@tum.de + * + * 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; +} + diff --git a/webapp/src/app/core/modules/openapi/model/pull-request.ts b/webapp/src/app/core/modules/openapi/model/pull-request.ts index 0224aa04..64b40c86 100644 --- a/webapp/src/app/core/modules/openapi/model/pull-request.ts +++ b/webapp/src/app/core/modules/openapi/model/pull-request.ts @@ -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'; @@ -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. */ @@ -34,6 +36,7 @@ export interface PullRequest { comments?: Set; reviews?: Set; repository?: Repository; + pullRequestLabels?: Set; } export namespace PullRequest { export type StateEnum = 'CLOSED' | 'OPEN';