feat: add support for Bitbucket Cloud repo:updated events
Add support for `repo:updated` events as `Events.RepoUpdatedEvent`. Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-bitbucket-cloud-common': patch
|
||||
---
|
||||
|
||||
Add support for `repo:updated` events as `Events.RepoUpdatedEvent`.
|
||||
@@ -70,6 +70,30 @@ export namespace Events {
|
||||
html: Models.Link;
|
||||
}
|
||||
// (undocumented)
|
||||
export interface RepoChange<T> {
|
||||
// (undocumented)
|
||||
new: T;
|
||||
// (undocumented)
|
||||
old: T;
|
||||
}
|
||||
// (undocumented)
|
||||
export interface RepoChanges {
|
||||
// (undocumented)
|
||||
description?: RepoChange<string>;
|
||||
// (undocumented)
|
||||
full_name?: RepoChange<string>;
|
||||
// (undocumented)
|
||||
language?: RepoChange<string>;
|
||||
// (undocumented)
|
||||
links?: RepoChange<
|
||||
Pick<Models.RepositoryLinks, 'avatar' | 'html' | 'self'>
|
||||
>;
|
||||
// (undocumented)
|
||||
name?: RepoChange<string>;
|
||||
// (undocumented)
|
||||
website?: RepoChange<string>;
|
||||
}
|
||||
// (undocumented)
|
||||
export interface RepoEvent {
|
||||
// (undocumented)
|
||||
actor: Models.Account;
|
||||
@@ -88,6 +112,11 @@ export namespace Events {
|
||||
// (undocumented)
|
||||
push: RepoPush;
|
||||
}
|
||||
// (undocumented)
|
||||
export interface RepoUpdatedEvent extends RepoEvent {
|
||||
// (undocumented)
|
||||
changes: RepoChanges;
|
||||
}
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
|
||||
@@ -30,6 +30,29 @@ export namespace Events {
|
||||
push: RepoPush;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface RepoUpdatedEvent extends RepoEvent {
|
||||
changes: RepoChanges;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface RepoChanges {
|
||||
description?: RepoChange<string>;
|
||||
full_name?: RepoChange<string>;
|
||||
language?: RepoChange<string>;
|
||||
links?: RepoChange<
|
||||
Pick<Models.RepositoryLinks, 'avatar' | 'html' | 'self'>
|
||||
>;
|
||||
name?: RepoChange<string>;
|
||||
website?: RepoChange<string>;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface RepoChange<T> {
|
||||
new: T;
|
||||
old: T;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface RepoPush {
|
||||
changes: Change[];
|
||||
|
||||
Reference in New Issue
Block a user