Misspelling: to setup -> to set up (#572)

* Typo: to setup -> to set up

* Add newsfile
This commit is contained in:
Christian Paul 2022-11-21 18:38:50 +01:00 committed by GitHub
parent db8221b60a
commit 80010f7b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 9 deletions

View File

@ -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
View File

@ -0,0 +1 @@
Change "setup" to "set up" where it's used as a verb.

View File

@ -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

View File

@ -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);
}
}

View File

@ -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) {

View File

@ -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;

View File

@ -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") {