mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Allow enabled
to be specified optionally in config
Signed-off-by: Rhea Danzey <rdanzey@element.io>
This commit is contained in:
parent
78ce7754fd
commit
49d0556c8a
@ -393,7 +393,7 @@ interface BridgeConfigWebhook {
|
||||
}
|
||||
|
||||
export interface BridgeConfigQueue {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
monolithic: boolean;
|
||||
port?: number;
|
||||
host?: string;
|
||||
|
@ -34,7 +34,7 @@ const GITHUB_ISSUE_CREATED_PAYLOAD = {
|
||||
}
|
||||
};
|
||||
|
||||
function createConnection(state: Record<string, unknown> = {}, isExistingState=false) {
|
||||
function createConnection(state: Record<string, unknown> = {}, isExistingState = false) {
|
||||
const mq = createMessageQueue({
|
||||
monolithic: true
|
||||
});
|
||||
@ -58,7 +58,7 @@ function createConnection(state: Record<string, unknown> = {}, isExistingState=f
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
DefaultConfig.github!
|
||||
);
|
||||
return {connection, intent};
|
||||
return { connection, intent };
|
||||
}
|
||||
|
||||
describe("GitHubRepoConnection", () => {
|
||||
|
@ -21,7 +21,7 @@ const GITLAB_MR = {
|
||||
};
|
||||
|
||||
const GITLAB_ISSUE_CREATED_PAYLOAD = {
|
||||
object_kind: "merge_request",
|
||||
object_kind: "merge_request",
|
||||
user: {
|
||||
name: "Alice",
|
||||
username: "alice",
|
||||
@ -33,7 +33,7 @@ const GITLAB_ISSUE_CREATED_PAYLOAD = {
|
||||
}
|
||||
};
|
||||
|
||||
function createConnection(state: Record<string, unknown> = {}, isExistingState=false) {
|
||||
function createConnection(state: Record<string, unknown> = {}, isExistingState = false) {
|
||||
const mq = createMessageQueue({
|
||||
monolithic: true
|
||||
});
|
||||
@ -56,7 +56,7 @@ function createConnection(state: Record<string, unknown> = {}, isExistingState=f
|
||||
url: "https://gitlab.example.com"
|
||||
},
|
||||
);
|
||||
return {connection, intent};
|
||||
return { connection, intent };
|
||||
}
|
||||
|
||||
describe("GitLabRepoConnection", () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user