|
| 1 | +export interface Actor { |
| 2 | + readonly active: boolean |
| 3 | + readonly displayName: string |
| 4 | + readonly emailAddress: string |
| 5 | + readonly id: number |
| 6 | + readonly name: string |
| 7 | + readonly slug: string |
| 8 | + readonly type: string |
| 9 | +} |
| 10 | + |
| 11 | +export interface Author { |
| 12 | + readonly approved: boolean |
| 13 | + readonly role: string |
| 14 | + readonly status: string |
| 15 | + readonly user: Actor |
| 16 | +} |
| 17 | + |
| 18 | +export interface Comment { |
| 19 | + readonly author: Actor |
| 20 | + readonly comments: unknown[] |
| 21 | + readonly createdDate: number |
| 22 | + readonly id: number |
| 23 | + readonly properties: Properties |
| 24 | + readonly tasks: unknown[] |
| 25 | + readonly text: string |
| 26 | + readonly updatedDate: number |
| 27 | + readonly version: number |
| 28 | +} |
| 29 | + |
| 30 | +/** This payload comes with an event key of `pr:comment:edited`. */ |
| 31 | +export interface PRCommentEdited { |
| 32 | + /** The user that edited the comment. */ |
| 33 | + readonly actor: Actor |
| 34 | + /** The comment edited. */ |
| 35 | + readonly comment: Comment |
| 36 | + /** Id of the parent comment if one exists. */ |
| 37 | + readonly commentParentId: number |
| 38 | + readonly date: string |
| 39 | + readonly eventKey: "pr:comment:edited" |
| 40 | + /** Text of the previous comment. */ |
| 41 | + readonly previousComment: string |
| 42 | + /** The pull request where the comment exists. */ |
| 43 | + readonly pullRequest: PullRequest |
| 44 | +} |
| 45 | + |
| 46 | +export interface Project { |
| 47 | + readonly id: number |
| 48 | + readonly key: string |
| 49 | + readonly name: string |
| 50 | + readonly public: boolean |
| 51 | + readonly type: string |
| 52 | +} |
| 53 | + |
| 54 | +export interface Properties { |
| 55 | + readonly repositoryId: number |
| 56 | +} |
| 57 | + |
| 58 | +export interface PullRequest { |
| 59 | + readonly author: Author |
| 60 | + readonly closed: boolean |
| 61 | + readonly createdDate: number |
| 62 | + readonly draft: boolean |
| 63 | + readonly fromRef: Ref |
| 64 | + readonly id: number |
| 65 | + readonly locked: boolean |
| 66 | + readonly open: boolean |
| 67 | + readonly participants: unknown[] |
| 68 | + readonly reviewers: unknown[] |
| 69 | + readonly state: string |
| 70 | + readonly title: string |
| 71 | + readonly toRef: Ref |
| 72 | + readonly updatedDate: number |
| 73 | + readonly version: number |
| 74 | +} |
| 75 | + |
| 76 | +export interface Ref { |
| 77 | + readonly displayId: string |
| 78 | + readonly id: string |
| 79 | + readonly latestCommit: string |
| 80 | + readonly repository: Repository |
| 81 | +} |
| 82 | + |
| 83 | +export interface Repository { |
| 84 | + readonly forkable: boolean |
| 85 | + readonly id: number |
| 86 | + readonly name: string |
| 87 | + readonly project: Project |
| 88 | + readonly public: boolean |
| 89 | + readonly scmId: string |
| 90 | + readonly slug: string |
| 91 | + readonly state: string |
| 92 | + readonly statusMessage: string |
| 93 | +} |
0 commit comments