@ubiquity-os/plugin-sdk 3.5.3 → 3.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.d.mts +6 -3
- package/dist/configuration.d.ts +6 -3
- package/dist/configuration.js +16 -4
- package/dist/configuration.mjs +16 -4
- package/dist/manifest.d.mts +1 -0
- package/dist/manifest.d.ts +1 -0
- package/dist/manifest.js +2 -1
- package/dist/manifest.mjs +2 -1
- package/package.json +1 -1
package/dist/configuration.d.mts
CHANGED
|
@@ -50,14 +50,16 @@ interface LoggerInterface {
|
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Handles fetching and managing plugin configurations from GitHub repositories.
|
|
53
|
-
* Prioritizes production configuration (`.ubiquity-os.config.yml`) over development configuration (`.ubiquity-os.config.dev.yml`)
|
|
53
|
+
* Prioritizes production configuration (`.ubiquity-os.config.yml`) over development configuration (`.ubiquity-os.config.dev.yml`),
|
|
54
|
+
* except if the `_environment` value is provided to the constructor.
|
|
54
55
|
**/
|
|
55
56
|
declare class ConfigurationHandler {
|
|
56
57
|
private readonly _logger;
|
|
57
58
|
private readonly _octokit;
|
|
59
|
+
private readonly _environment;
|
|
58
60
|
private _manifestCache;
|
|
59
61
|
private _manifestPromiseCache;
|
|
60
|
-
constructor(_logger: LoggerInterface, _octokit: Context["octokit"]);
|
|
62
|
+
constructor(_logger: LoggerInterface, _octokit: Context["octokit"], _environment?: "development" | "production" | null);
|
|
61
63
|
/**
|
|
62
64
|
* Retrieves the configuration for the current plugin based on its manifest.
|
|
63
65
|
* @param manifest - The plugin manifest containing the `short_name` identifier
|
|
@@ -82,7 +84,7 @@ declare class ConfigurationHandler {
|
|
|
82
84
|
};
|
|
83
85
|
}>;
|
|
84
86
|
/**
|
|
85
|
-
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors if any.
|
|
87
|
+
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors, if any.
|
|
86
88
|
*
|
|
87
89
|
* @param owner The repository owner
|
|
88
90
|
* @param repository The repository name
|
|
@@ -141,6 +143,7 @@ declare class ConfigurationHandler {
|
|
|
141
143
|
[x: string]: any;
|
|
142
144
|
} | undefined;
|
|
143
145
|
skipBotEvents?: boolean | undefined;
|
|
146
|
+
homepage_url?: string | undefined;
|
|
144
147
|
name: string;
|
|
145
148
|
short_name: string;
|
|
146
149
|
} | null>;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -50,14 +50,16 @@ interface LoggerInterface {
|
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Handles fetching and managing plugin configurations from GitHub repositories.
|
|
53
|
-
* Prioritizes production configuration (`.ubiquity-os.config.yml`) over development configuration (`.ubiquity-os.config.dev.yml`)
|
|
53
|
+
* Prioritizes production configuration (`.ubiquity-os.config.yml`) over development configuration (`.ubiquity-os.config.dev.yml`),
|
|
54
|
+
* except if the `_environment` value is provided to the constructor.
|
|
54
55
|
**/
|
|
55
56
|
declare class ConfigurationHandler {
|
|
56
57
|
private readonly _logger;
|
|
57
58
|
private readonly _octokit;
|
|
59
|
+
private readonly _environment;
|
|
58
60
|
private _manifestCache;
|
|
59
61
|
private _manifestPromiseCache;
|
|
60
|
-
constructor(_logger: LoggerInterface, _octokit: Context["octokit"]);
|
|
62
|
+
constructor(_logger: LoggerInterface, _octokit: Context["octokit"], _environment?: "development" | "production" | null);
|
|
61
63
|
/**
|
|
62
64
|
* Retrieves the configuration for the current plugin based on its manifest.
|
|
63
65
|
* @param manifest - The plugin manifest containing the `short_name` identifier
|
|
@@ -82,7 +84,7 @@ declare class ConfigurationHandler {
|
|
|
82
84
|
};
|
|
83
85
|
}>;
|
|
84
86
|
/**
|
|
85
|
-
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors if any.
|
|
87
|
+
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors, if any.
|
|
86
88
|
*
|
|
87
89
|
* @param owner The repository owner
|
|
88
90
|
* @param repository The repository name
|
|
@@ -141,6 +143,7 @@ declare class ConfigurationHandler {
|
|
|
141
143
|
[x: string]: any;
|
|
142
144
|
} | undefined;
|
|
143
145
|
skipBotEvents?: boolean | undefined;
|
|
146
|
+
homepage_url?: string | undefined;
|
|
144
147
|
name: string;
|
|
145
148
|
short_name: string;
|
|
146
149
|
} | null>;
|
package/dist/configuration.js
CHANGED
|
@@ -110,7 +110,8 @@ var manifestSchema = import_typebox2.Type.Object({
|
|
|
110
110
|
commands: import_typebox2.Type.Optional(import_typebox2.Type.Record(import_typebox2.Type.String({ pattern: "^[A-Za-z-_]+$" }), commandSchema, { default: {} })),
|
|
111
111
|
"ubiquity:listeners": import_typebox2.Type.Optional(import_typebox2.Type.Array(runEvent, { default: [] })),
|
|
112
112
|
configuration: import_typebox2.Type.Optional(import_typebox2.Type.Record(import_typebox2.Type.String(), import_typebox2.Type.Any(), { default: {} })),
|
|
113
|
-
skipBotEvents: import_typebox2.Type.Optional(import_typebox2.Type.Boolean({ default: true }))
|
|
113
|
+
skipBotEvents: import_typebox2.Type.Optional(import_typebox2.Type.Boolean({ default: true })),
|
|
114
|
+
homepage_url: import_typebox2.Type.Optional(import_typebox2.Type.String())
|
|
114
115
|
});
|
|
115
116
|
|
|
116
117
|
// src/configuration.ts
|
|
@@ -118,9 +119,10 @@ var CONFIG_PROD_FULL_PATH = ".github/.ubiquity-os.config.yml";
|
|
|
118
119
|
var CONFIG_DEV_FULL_PATH = ".github/.ubiquity-os.config.dev.yml";
|
|
119
120
|
var CONFIG_ORG_REPO = ".ubiquity-os";
|
|
120
121
|
var ConfigurationHandler = class {
|
|
121
|
-
constructor(_logger, _octokit) {
|
|
122
|
+
constructor(_logger, _octokit, _environment = null) {
|
|
122
123
|
this._logger = _logger;
|
|
123
124
|
this._octokit = _octokit;
|
|
125
|
+
this._environment = _environment;
|
|
124
126
|
}
|
|
125
127
|
_manifestCache = {};
|
|
126
128
|
_manifestPromiseCache = {};
|
|
@@ -197,7 +199,7 @@ var ConfigurationHandler = class {
|
|
|
197
199
|
};
|
|
198
200
|
}
|
|
199
201
|
/**
|
|
200
|
-
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors if any.
|
|
202
|
+
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors, if any.
|
|
201
203
|
*
|
|
202
204
|
* @param owner The repository owner
|
|
203
205
|
* @param repository The repository name
|
|
@@ -239,7 +241,17 @@ var ConfigurationHandler = class {
|
|
|
239
241
|
this._logger.error("Repo or owner is not defined, cannot download the requested file");
|
|
240
242
|
return null;
|
|
241
243
|
}
|
|
242
|
-
|
|
244
|
+
let pathList;
|
|
245
|
+
switch (this._environment) {
|
|
246
|
+
case "development":
|
|
247
|
+
pathList = [CONFIG_DEV_FULL_PATH];
|
|
248
|
+
break;
|
|
249
|
+
case "production":
|
|
250
|
+
pathList = [CONFIG_PROD_FULL_PATH];
|
|
251
|
+
break;
|
|
252
|
+
default:
|
|
253
|
+
pathList = [CONFIG_PROD_FULL_PATH, CONFIG_DEV_FULL_PATH];
|
|
254
|
+
}
|
|
243
255
|
for (const filePath of pathList) {
|
|
244
256
|
try {
|
|
245
257
|
this._logger.debug("Attempting to fetch configuration", { owner, repository, filePath });
|
package/dist/configuration.mjs
CHANGED
|
@@ -73,7 +73,8 @@ var manifestSchema = T2.Object({
|
|
|
73
73
|
commands: T2.Optional(T2.Record(T2.String({ pattern: "^[A-Za-z-_]+$" }), commandSchema, { default: {} })),
|
|
74
74
|
"ubiquity:listeners": T2.Optional(T2.Array(runEvent, { default: [] })),
|
|
75
75
|
configuration: T2.Optional(T2.Record(T2.String(), T2.Any(), { default: {} })),
|
|
76
|
-
skipBotEvents: T2.Optional(T2.Boolean({ default: true }))
|
|
76
|
+
skipBotEvents: T2.Optional(T2.Boolean({ default: true })),
|
|
77
|
+
homepage_url: T2.Optional(T2.String())
|
|
77
78
|
});
|
|
78
79
|
|
|
79
80
|
// src/configuration.ts
|
|
@@ -81,9 +82,10 @@ var CONFIG_PROD_FULL_PATH = ".github/.ubiquity-os.config.yml";
|
|
|
81
82
|
var CONFIG_DEV_FULL_PATH = ".github/.ubiquity-os.config.dev.yml";
|
|
82
83
|
var CONFIG_ORG_REPO = ".ubiquity-os";
|
|
83
84
|
var ConfigurationHandler = class {
|
|
84
|
-
constructor(_logger, _octokit) {
|
|
85
|
+
constructor(_logger, _octokit, _environment = null) {
|
|
85
86
|
this._logger = _logger;
|
|
86
87
|
this._octokit = _octokit;
|
|
88
|
+
this._environment = _environment;
|
|
87
89
|
}
|
|
88
90
|
_manifestCache = {};
|
|
89
91
|
_manifestPromiseCache = {};
|
|
@@ -160,7 +162,7 @@ var ConfigurationHandler = class {
|
|
|
160
162
|
};
|
|
161
163
|
}
|
|
162
164
|
/**
|
|
163
|
-
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors if any.
|
|
165
|
+
* Retrieves the configuration from the given owner/repository. Also returns the raw data and errors, if any.
|
|
164
166
|
*
|
|
165
167
|
* @param owner The repository owner
|
|
166
168
|
* @param repository The repository name
|
|
@@ -202,7 +204,17 @@ var ConfigurationHandler = class {
|
|
|
202
204
|
this._logger.error("Repo or owner is not defined, cannot download the requested file");
|
|
203
205
|
return null;
|
|
204
206
|
}
|
|
205
|
-
|
|
207
|
+
let pathList;
|
|
208
|
+
switch (this._environment) {
|
|
209
|
+
case "development":
|
|
210
|
+
pathList = [CONFIG_DEV_FULL_PATH];
|
|
211
|
+
break;
|
|
212
|
+
case "production":
|
|
213
|
+
pathList = [CONFIG_PROD_FULL_PATH];
|
|
214
|
+
break;
|
|
215
|
+
default:
|
|
216
|
+
pathList = [CONFIG_PROD_FULL_PATH, CONFIG_DEV_FULL_PATH];
|
|
217
|
+
}
|
|
206
218
|
for (const filePath of pathList) {
|
|
207
219
|
try {
|
|
208
220
|
this._logger.debug("Attempting to fetch configuration", { owner, repository, filePath });
|
package/dist/manifest.d.mts
CHANGED
|
@@ -43,6 +43,7 @@ declare const manifestSchema: _sinclair_typebox.TObject<{
|
|
|
43
43
|
"ubiquity:listeners": _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"branch_protection_configuration" | "branch_protection_configuration.disabled" | "branch_protection_configuration.enabled" | "branch_protection_rule" | "branch_protection_rule.created" | "branch_protection_rule.deleted" | "branch_protection_rule.edited" | "check_run" | "check_run.completed" | "check_run.created" | "check_run.requested_action" | "check_run.rerequested" | "check_suite" | "check_suite.completed" | "check_suite.requested" | "check_suite.rerequested" | "code_scanning_alert" | "code_scanning_alert.appeared_in_branch" | "code_scanning_alert.closed_by_user" | "code_scanning_alert.created" | "code_scanning_alert.fixed" | "code_scanning_alert.reopened" | "code_scanning_alert.reopened_by_user" | "commit_comment" | "commit_comment.created" | "create" | "custom_property" | "custom_property.created" | "custom_property.deleted" | "custom_property.promote_to_enterprise" | "custom_property.updated" | "custom_property_values" | "custom_property_values.updated" | "delete" | "dependabot_alert" | "dependabot_alert.auto_dismissed" | "dependabot_alert.auto_reopened" | "dependabot_alert.created" | "dependabot_alert.dismissed" | "dependabot_alert.fixed" | "dependabot_alert.reintroduced" | "dependabot_alert.reopened" | "deploy_key" | "deploy_key.created" | "deploy_key.deleted" | "deployment" | "deployment.created" | "deployment_protection_rule" | "deployment_protection_rule.requested" | "deployment_review" | "deployment_review.approved" | "deployment_review.rejected" | "deployment_review.requested" | "deployment_status" | "deployment_status.created" | "discussion" | "discussion.answered" | "discussion.category_changed" | "discussion.closed" | "discussion.created" | "discussion.deleted" | "discussion.edited" | "discussion.labeled" | "discussion.locked" | "discussion.pinned" | "discussion.reopened" | "discussion.transferred" | "discussion.unanswered" | "discussion.unlabeled" | "discussion.unlocked" | "discussion.unpinned" | "discussion_comment" | "discussion_comment.created" | "discussion_comment.deleted" | "discussion_comment.edited" | "fork" | "github_app_authorization" | "github_app_authorization.revoked" | "gollum" | "installation" | "installation.created" | "installation.deleted" | "installation.new_permissions_accepted" | "installation.suspend" | "installation.unsuspend" | "installation_repositories" | "installation_repositories.added" | "installation_repositories.removed" | "installation_target" | "installation_target.renamed" | "issue_comment" | "issue_comment.created" | "issue_comment.deleted" | "issue_comment.edited" | "issues" | "issues.assigned" | "issues.closed" | "issues.deleted" | "issues.demilestoned" | "issues.edited" | "issues.labeled" | "issues.locked" | "issues.milestoned" | "issues.opened" | "issues.pinned" | "issues.reopened" | "issues.transferred" | "issues.typed" | "issues.unassigned" | "issues.unlabeled" | "issues.unlocked" | "issues.unpinned" | "issues.untyped" | "label" | "label.created" | "label.deleted" | "label.edited" | "marketplace_purchase" | "marketplace_purchase.cancelled" | "marketplace_purchase.changed" | "marketplace_purchase.pending_change" | "marketplace_purchase.pending_change_cancelled" | "marketplace_purchase.purchased" | "member" | "member.added" | "member.edited" | "member.removed" | "membership" | "membership.added" | "membership.removed" | "merge_group" | "merge_group.checks_requested" | "merge_group.destroyed" | "meta" | "meta.deleted" | "milestone" | "milestone.closed" | "milestone.created" | "milestone.deleted" | "milestone.edited" | "milestone.opened" | "org_block" | "org_block.blocked" | "org_block.unblocked" | "organization" | "organization.deleted" | "organization.member_added" | "organization.member_invited" | "organization.member_removed" | "organization.renamed" | "package" | "package.published" | "package.updated" | "page_build" | "personal_access_token_request" | "personal_access_token_request.approved" | "personal_access_token_request.cancelled" | "personal_access_token_request.created" | "personal_access_token_request.denied" | "ping" | "project" | "project.closed" | "project.created" | "project.deleted" | "project.edited" | "project.reopened" | "project_card" | "project_card.converted" | "project_card.created" | "project_card.deleted" | "project_card.edited" | "project_card.moved" | "project_column" | "project_column.created" | "project_column.deleted" | "project_column.edited" | "project_column.moved" | "projects_v2" | "projects_v2.closed" | "projects_v2.created" | "projects_v2.deleted" | "projects_v2.edited" | "projects_v2.reopened" | "projects_v2_item" | "projects_v2_item.archived" | "projects_v2_item.converted" | "projects_v2_item.created" | "projects_v2_item.deleted" | "projects_v2_item.edited" | "projects_v2_item.reordered" | "projects_v2_item.restored" | "projects_v2_status_update" | "projects_v2_status_update.created" | "projects_v2_status_update.deleted" | "projects_v2_status_update.edited" | "public" | "pull_request" | "pull_request.assigned" | "pull_request.auto_merge_disabled" | "pull_request.auto_merge_enabled" | "pull_request.closed" | "pull_request.converted_to_draft" | "pull_request.demilestoned" | "pull_request.dequeued" | "pull_request.edited" | "pull_request.enqueued" | "pull_request.labeled" | "pull_request.locked" | "pull_request.milestoned" | "pull_request.opened" | "pull_request.ready_for_review" | "pull_request.reopened" | "pull_request.review_request_removed" | "pull_request.review_requested" | "pull_request.synchronize" | "pull_request.unassigned" | "pull_request.unlabeled" | "pull_request.unlocked" | "pull_request_review" | "pull_request_review.dismissed" | "pull_request_review.edited" | "pull_request_review.submitted" | "pull_request_review_comment" | "pull_request_review_comment.created" | "pull_request_review_comment.deleted" | "pull_request_review_comment.edited" | "pull_request_review_thread" | "pull_request_review_thread.resolved" | "pull_request_review_thread.unresolved" | "push" | "registry_package" | "registry_package.published" | "registry_package.updated" | "release" | "release.created" | "release.deleted" | "release.edited" | "release.prereleased" | "release.published" | "release.released" | "release.unpublished" | "repository" | "repository.archived" | "repository.created" | "repository.deleted" | "repository.edited" | "repository.privatized" | "repository.publicized" | "repository.renamed" | "repository.transferred" | "repository.unarchived" | "repository_advisory" | "repository_advisory.published" | "repository_advisory.reported" | "repository_dispatch" | "repository_dispatch.sample.collected" | "repository_import" | "repository_ruleset" | "repository_ruleset.created" | "repository_ruleset.deleted" | "repository_ruleset.edited" | "repository_vulnerability_alert" | "repository_vulnerability_alert.create" | "repository_vulnerability_alert.dismiss" | "repository_vulnerability_alert.reopen" | "repository_vulnerability_alert.resolve" | "secret_scanning_alert" | "secret_scanning_alert.created" | "secret_scanning_alert.publicly_leaked" | "secret_scanning_alert.reopened" | "secret_scanning_alert.resolved" | "secret_scanning_alert.validated" | "secret_scanning_alert_location" | "secret_scanning_alert_location.created" | "secret_scanning_scan" | "secret_scanning_scan.completed" | "security_advisory" | "security_advisory.published" | "security_advisory.updated" | "security_advisory.withdrawn" | "security_and_analysis" | "sponsorship" | "sponsorship.cancelled" | "sponsorship.created" | "sponsorship.edited" | "sponsorship.pending_cancellation" | "sponsorship.pending_tier_change" | "sponsorship.tier_changed" | "star" | "star.created" | "star.deleted" | "status" | "sub_issues" | "sub_issues.parent_issue_added" | "sub_issues.parent_issue_removed" | "sub_issues.sub_issue_added" | "sub_issues.sub_issue_removed" | "team" | "team.added_to_repository" | "team.created" | "team.deleted" | "team.edited" | "team.removed_from_repository" | "team_add" | "watch" | "watch.started" | "workflow_dispatch" | "workflow_job" | "workflow_job.completed" | "workflow_job.in_progress" | "workflow_job.queued" | "workflow_job.waiting" | "workflow_run" | "workflow_run.completed" | "workflow_run.in_progress" | "workflow_run.requested">[]>>>;
|
|
44
44
|
configuration: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TAny>>;
|
|
45
45
|
skipBotEvents: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
46
|
+
homepage_url: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
46
47
|
}>;
|
|
47
48
|
type Manifest = Static<typeof manifestSchema>;
|
|
48
49
|
|
package/dist/manifest.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare const manifestSchema: _sinclair_typebox.TObject<{
|
|
|
43
43
|
"ubiquity:listeners": _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"branch_protection_configuration" | "branch_protection_configuration.disabled" | "branch_protection_configuration.enabled" | "branch_protection_rule" | "branch_protection_rule.created" | "branch_protection_rule.deleted" | "branch_protection_rule.edited" | "check_run" | "check_run.completed" | "check_run.created" | "check_run.requested_action" | "check_run.rerequested" | "check_suite" | "check_suite.completed" | "check_suite.requested" | "check_suite.rerequested" | "code_scanning_alert" | "code_scanning_alert.appeared_in_branch" | "code_scanning_alert.closed_by_user" | "code_scanning_alert.created" | "code_scanning_alert.fixed" | "code_scanning_alert.reopened" | "code_scanning_alert.reopened_by_user" | "commit_comment" | "commit_comment.created" | "create" | "custom_property" | "custom_property.created" | "custom_property.deleted" | "custom_property.promote_to_enterprise" | "custom_property.updated" | "custom_property_values" | "custom_property_values.updated" | "delete" | "dependabot_alert" | "dependabot_alert.auto_dismissed" | "dependabot_alert.auto_reopened" | "dependabot_alert.created" | "dependabot_alert.dismissed" | "dependabot_alert.fixed" | "dependabot_alert.reintroduced" | "dependabot_alert.reopened" | "deploy_key" | "deploy_key.created" | "deploy_key.deleted" | "deployment" | "deployment.created" | "deployment_protection_rule" | "deployment_protection_rule.requested" | "deployment_review" | "deployment_review.approved" | "deployment_review.rejected" | "deployment_review.requested" | "deployment_status" | "deployment_status.created" | "discussion" | "discussion.answered" | "discussion.category_changed" | "discussion.closed" | "discussion.created" | "discussion.deleted" | "discussion.edited" | "discussion.labeled" | "discussion.locked" | "discussion.pinned" | "discussion.reopened" | "discussion.transferred" | "discussion.unanswered" | "discussion.unlabeled" | "discussion.unlocked" | "discussion.unpinned" | "discussion_comment" | "discussion_comment.created" | "discussion_comment.deleted" | "discussion_comment.edited" | "fork" | "github_app_authorization" | "github_app_authorization.revoked" | "gollum" | "installation" | "installation.created" | "installation.deleted" | "installation.new_permissions_accepted" | "installation.suspend" | "installation.unsuspend" | "installation_repositories" | "installation_repositories.added" | "installation_repositories.removed" | "installation_target" | "installation_target.renamed" | "issue_comment" | "issue_comment.created" | "issue_comment.deleted" | "issue_comment.edited" | "issues" | "issues.assigned" | "issues.closed" | "issues.deleted" | "issues.demilestoned" | "issues.edited" | "issues.labeled" | "issues.locked" | "issues.milestoned" | "issues.opened" | "issues.pinned" | "issues.reopened" | "issues.transferred" | "issues.typed" | "issues.unassigned" | "issues.unlabeled" | "issues.unlocked" | "issues.unpinned" | "issues.untyped" | "label" | "label.created" | "label.deleted" | "label.edited" | "marketplace_purchase" | "marketplace_purchase.cancelled" | "marketplace_purchase.changed" | "marketplace_purchase.pending_change" | "marketplace_purchase.pending_change_cancelled" | "marketplace_purchase.purchased" | "member" | "member.added" | "member.edited" | "member.removed" | "membership" | "membership.added" | "membership.removed" | "merge_group" | "merge_group.checks_requested" | "merge_group.destroyed" | "meta" | "meta.deleted" | "milestone" | "milestone.closed" | "milestone.created" | "milestone.deleted" | "milestone.edited" | "milestone.opened" | "org_block" | "org_block.blocked" | "org_block.unblocked" | "organization" | "organization.deleted" | "organization.member_added" | "organization.member_invited" | "organization.member_removed" | "organization.renamed" | "package" | "package.published" | "package.updated" | "page_build" | "personal_access_token_request" | "personal_access_token_request.approved" | "personal_access_token_request.cancelled" | "personal_access_token_request.created" | "personal_access_token_request.denied" | "ping" | "project" | "project.closed" | "project.created" | "project.deleted" | "project.edited" | "project.reopened" | "project_card" | "project_card.converted" | "project_card.created" | "project_card.deleted" | "project_card.edited" | "project_card.moved" | "project_column" | "project_column.created" | "project_column.deleted" | "project_column.edited" | "project_column.moved" | "projects_v2" | "projects_v2.closed" | "projects_v2.created" | "projects_v2.deleted" | "projects_v2.edited" | "projects_v2.reopened" | "projects_v2_item" | "projects_v2_item.archived" | "projects_v2_item.converted" | "projects_v2_item.created" | "projects_v2_item.deleted" | "projects_v2_item.edited" | "projects_v2_item.reordered" | "projects_v2_item.restored" | "projects_v2_status_update" | "projects_v2_status_update.created" | "projects_v2_status_update.deleted" | "projects_v2_status_update.edited" | "public" | "pull_request" | "pull_request.assigned" | "pull_request.auto_merge_disabled" | "pull_request.auto_merge_enabled" | "pull_request.closed" | "pull_request.converted_to_draft" | "pull_request.demilestoned" | "pull_request.dequeued" | "pull_request.edited" | "pull_request.enqueued" | "pull_request.labeled" | "pull_request.locked" | "pull_request.milestoned" | "pull_request.opened" | "pull_request.ready_for_review" | "pull_request.reopened" | "pull_request.review_request_removed" | "pull_request.review_requested" | "pull_request.synchronize" | "pull_request.unassigned" | "pull_request.unlabeled" | "pull_request.unlocked" | "pull_request_review" | "pull_request_review.dismissed" | "pull_request_review.edited" | "pull_request_review.submitted" | "pull_request_review_comment" | "pull_request_review_comment.created" | "pull_request_review_comment.deleted" | "pull_request_review_comment.edited" | "pull_request_review_thread" | "pull_request_review_thread.resolved" | "pull_request_review_thread.unresolved" | "push" | "registry_package" | "registry_package.published" | "registry_package.updated" | "release" | "release.created" | "release.deleted" | "release.edited" | "release.prereleased" | "release.published" | "release.released" | "release.unpublished" | "repository" | "repository.archived" | "repository.created" | "repository.deleted" | "repository.edited" | "repository.privatized" | "repository.publicized" | "repository.renamed" | "repository.transferred" | "repository.unarchived" | "repository_advisory" | "repository_advisory.published" | "repository_advisory.reported" | "repository_dispatch" | "repository_dispatch.sample.collected" | "repository_import" | "repository_ruleset" | "repository_ruleset.created" | "repository_ruleset.deleted" | "repository_ruleset.edited" | "repository_vulnerability_alert" | "repository_vulnerability_alert.create" | "repository_vulnerability_alert.dismiss" | "repository_vulnerability_alert.reopen" | "repository_vulnerability_alert.resolve" | "secret_scanning_alert" | "secret_scanning_alert.created" | "secret_scanning_alert.publicly_leaked" | "secret_scanning_alert.reopened" | "secret_scanning_alert.resolved" | "secret_scanning_alert.validated" | "secret_scanning_alert_location" | "secret_scanning_alert_location.created" | "secret_scanning_scan" | "secret_scanning_scan.completed" | "security_advisory" | "security_advisory.published" | "security_advisory.updated" | "security_advisory.withdrawn" | "security_and_analysis" | "sponsorship" | "sponsorship.cancelled" | "sponsorship.created" | "sponsorship.edited" | "sponsorship.pending_cancellation" | "sponsorship.pending_tier_change" | "sponsorship.tier_changed" | "star" | "star.created" | "star.deleted" | "status" | "sub_issues" | "sub_issues.parent_issue_added" | "sub_issues.parent_issue_removed" | "sub_issues.sub_issue_added" | "sub_issues.sub_issue_removed" | "team" | "team.added_to_repository" | "team.created" | "team.deleted" | "team.edited" | "team.removed_from_repository" | "team_add" | "watch" | "watch.started" | "workflow_dispatch" | "workflow_job" | "workflow_job.completed" | "workflow_job.in_progress" | "workflow_job.queued" | "workflow_job.waiting" | "workflow_run" | "workflow_run.completed" | "workflow_run.in_progress" | "workflow_run.requested">[]>>>;
|
|
44
44
|
configuration: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TAny>>;
|
|
45
45
|
skipBotEvents: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
46
|
+
homepage_url: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
46
47
|
}>;
|
|
47
48
|
type Manifest = Static<typeof manifestSchema>;
|
|
48
49
|
|
package/dist/manifest.js
CHANGED
|
@@ -50,7 +50,8 @@ var manifestSchema = import_typebox.Type.Object({
|
|
|
50
50
|
commands: import_typebox.Type.Optional(import_typebox.Type.Record(import_typebox.Type.String({ pattern: "^[A-Za-z-_]+$" }), commandSchema, { default: {} })),
|
|
51
51
|
"ubiquity:listeners": import_typebox.Type.Optional(import_typebox.Type.Array(runEvent, { default: [] })),
|
|
52
52
|
configuration: import_typebox.Type.Optional(import_typebox.Type.Record(import_typebox.Type.String(), import_typebox.Type.Any(), { default: {} })),
|
|
53
|
-
skipBotEvents: import_typebox.Type.Optional(import_typebox.Type.Boolean({ default: true }))
|
|
53
|
+
skipBotEvents: import_typebox.Type.Optional(import_typebox.Type.Boolean({ default: true })),
|
|
54
|
+
homepage_url: import_typebox.Type.Optional(import_typebox.Type.String())
|
|
54
55
|
});
|
|
55
56
|
// Annotate the CommonJS export names for ESM import in node:
|
|
56
57
|
0 && (module.exports = {
|
package/dist/manifest.mjs
CHANGED
|
@@ -23,7 +23,8 @@ var manifestSchema = T.Object({
|
|
|
23
23
|
commands: T.Optional(T.Record(T.String({ pattern: "^[A-Za-z-_]+$" }), commandSchema, { default: {} })),
|
|
24
24
|
"ubiquity:listeners": T.Optional(T.Array(runEvent, { default: [] })),
|
|
25
25
|
configuration: T.Optional(T.Record(T.String(), T.Any(), { default: {} })),
|
|
26
|
-
skipBotEvents: T.Optional(T.Boolean({ default: true }))
|
|
26
|
+
skipBotEvents: T.Optional(T.Boolean({ default: true })),
|
|
27
|
+
homepage_url: T.Optional(T.String())
|
|
27
28
|
});
|
|
28
29
|
export {
|
|
29
30
|
commandSchema,
|