Content-Length: 892013 | pFad | http://github.com/coderabbitai/bitbucket/pull/8/commits/7a1cb0b9de5c49c2453222823879980a62c783b5

40 ✨ Use a real event to update PRReviewerUpdated by NatoBoram · Pull Request #8 · coderabbitai/bitbucket · GitHub
Skip to content

✨ Use a real event to update PRReviewerUpdated #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
🏷️ Import some enums
  • Loading branch information
NatoBoram committed Sep 30, 2024
commit 7a1cb0b9de5c49c2453222823879980a62c783b5
6 changes: 4 additions & 2 deletions src/server/webhooks/events/pr/comment_added.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type {
SchemaApplicationUser,
SchemaComment,
SchemaProject,
SchemaPullRequest,
SchemaPullRequestParticipant,
SchemaRepository,
SchemaRestMinimalRef,
Expand Down Expand Up @@ -40,7 +42,7 @@ export interface Comment {
readonly id: number
readonly properties: Properties
readonly severity: string
readonly state: string
readonly state: SchemaComment["state"]
readonly tasks?: unknown[]
readonly text: string
readonly threadResolved: boolean
Expand Down Expand Up @@ -89,7 +91,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand Down
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/comment_deleted.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -60,7 +65,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -82,6 +87,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
6 changes: 4 additions & 2 deletions src/server/webhooks/events/pr/comment_edited.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type {
SchemaApplicationUser,
SchemaComment,
SchemaProject,
SchemaPullRequest,
SchemaPullRequestParticipant,
SchemaRepository,
SchemaRestMinimalRef,
Expand Down Expand Up @@ -40,7 +42,7 @@ export interface Comment {
readonly id: number
readonly properties: Properties
readonly severity: string
readonly state: string
readonly state: SchemaComment["state"]
readonly text: string
readonly threadResolved: boolean
readonly threadResolvedDate: number
Expand Down Expand Up @@ -91,7 +93,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand Down
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/declined.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -46,7 +51,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -68,6 +73,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/deleted.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -45,7 +50,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -67,6 +72,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/from_ref_updated.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -57,7 +62,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -81,7 +86,7 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}

Expand Down
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/merged.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -56,7 +61,7 @@ export interface PullRequest {
readonly participants: Author[]
readonly properties: Properties
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -78,6 +83,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/modified.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -59,7 +64,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -81,6 +86,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/opened.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -48,7 +53,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Author[]
readonly reviewers: Author[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -70,6 +75,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/reviewer_approved.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -56,7 +61,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Participant[]
readonly reviewers: Participant[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -78,6 +83,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/reviewer_changes_requested.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -51,7 +56,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Participant[]
readonly reviewers: Participant[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -73,6 +78,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
9 changes: 7 additions & 2 deletions src/server/webhooks/events/pr/reviewer_unapproved.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -51,7 +56,7 @@ export interface PullRequest {
readonly open: boolean
readonly participants: Participant[]
readonly reviewers: Participant[]
readonly state: string
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
Expand All @@ -73,6 +78,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
4 changes: 3 additions & 1 deletion src/server/webhooks/events/repo/comment_added.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -61,6 +63,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
4 changes: 3 additions & 1 deletion src/server/webhooks/events/repo/comment_deleted.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -50,6 +52,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
4 changes: 3 additions & 1 deletion src/server/webhooks/events/repo/comment_edited.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -63,6 +65,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
6 changes: 4 additions & 2 deletions src/server/webhooks/events/repo/forked.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand All @@ -16,7 +18,7 @@ export interface Origin {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}

Expand Down Expand Up @@ -51,6 +53,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
4 changes: 3 additions & 1 deletion src/server/webhooks/events/repo/modified.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { SchemaRepository } from "../../../openapi/openapi-typescript.js"

export interface Actor {
readonly active: boolean
readonly displayName: string
Expand Down Expand Up @@ -37,6 +39,6 @@ export interface Repository {
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/coderabbitai/bitbucket/pull/8/commits/7a1cb0b9de5c49c2453222823879980a62c783b5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy