mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
Misspelling: to setup -> to set up (#572)
* Typo: to setup -> to set up * Add newsfile
This commit is contained in:
parent
db8221b60a
commit
80010f7b9b
2
.github/workflows/docs-release.yml
vendored
2
.github/workflows/docs-release.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
||||
- name: Get release tag
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup mdBook
|
||||
- name: Set up mdBook
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
with:
|
||||
mdbook-version: '0.4.11'
|
||||
|
1
changelog.d/572.misc
Normal file
1
changelog.d/572.misc
Normal file
@ -0,0 +1 @@
|
||||
Change "setup" to "set up" where it's used as a verb.
|
@ -46,7 +46,7 @@ Hookshot handles the following webhook event types:
|
||||
|
||||
You can disable any of these to disable the events being handled in Hookshot.
|
||||
|
||||
Once you have setup your app, you can move onto configuring the bridge:
|
||||
Once you have set up your app, you can move onto configuring the bridge:
|
||||
|
||||
## Bridge Configuration
|
||||
|
||||
|
@ -797,7 +797,7 @@ export class Bridge {
|
||||
}
|
||||
|
||||
if (this.connectionManager?.isRoomConnected(roomId)) {
|
||||
// Room has connections, don't setup a wizard.
|
||||
// Room has connections, don't set up a wizard.
|
||||
return;
|
||||
}
|
||||
|
||||
@ -805,14 +805,14 @@ export class Bridge {
|
||||
// Otherwise it's a new room
|
||||
if (this.config.widgets?.roomSetupWidget?.addOnInvite) {
|
||||
if (await this.as.botClient.userHasPowerLevelFor(this.as.botUserId, roomId, "im.vector.modular.widgets", true) === false) {
|
||||
await this.as.botIntent.sendText(roomId, "Hello! To setup new integrations in this room, please promote me to a Moderator/Admin");
|
||||
await this.as.botIntent.sendText(roomId, "Hello! To set up new integrations in this room, please promote me to a Moderator/Admin.");
|
||||
} else {
|
||||
// Setup the widget
|
||||
// Set up the widget
|
||||
await SetupWidget.SetupRoomConfigWidget(roomId, this.as.botIntent, this.config.widgets);
|
||||
}
|
||||
}
|
||||
} catch (ex) {
|
||||
log.error(`Failed to setup new widget for room`, ex);
|
||||
log.error(`Failed to set up new widget for room`, ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -216,7 +216,7 @@ export class GitLabRepoConnection extends CommandConnection<GitLabRepoConnection
|
||||
});
|
||||
}
|
||||
|
||||
// Try to setup a webhook
|
||||
// Try to set up a webhook
|
||||
// Requires at least a "Maintainer" role: https://docs.gitlab.com/ee/user/permissions.html
|
||||
let warning: ConnectionWarning | undefined;
|
||||
if (gitlabConfig.webhook.publicUrl && permissionLevel >= AccessLevel.Maintainer) {
|
||||
|
@ -18,7 +18,7 @@ export class SetupWidget {
|
||||
|
||||
static async SetupRoomConfigWidget(roomId: string, botIntent: Intent, config: BridgeWidgetConfig): Promise<boolean> {
|
||||
if (await SetupWidget.createWidgetInRoom(roomId, botIntent, config, HookshotWidgetKind.RoomConfiguration, "hookshot_room_config")) {
|
||||
await botIntent.sendText(roomId, `Please open the ${config.branding.widgetTitle} widget to setup integrations.`);
|
||||
await botIntent.sendText(roomId, `Please open the ${config.branding.widgetTitle} widget to set up integrations.`);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -88,7 +88,7 @@ export default class App extends Component<void, IState> {
|
||||
busy: false,
|
||||
});
|
||||
} catch (ex) {
|
||||
console.error(`Failed to setup widget:`, ex);
|
||||
console.error(`Failed to set up widget:`, ex);
|
||||
let error: string = ex.message;
|
||||
if (ex instanceof BridgeAPIError) {
|
||||
if (ex.errcode === "M_AS_BAD_OPENID") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user