0
0
mirror of https://github.com/thegeeklab/wp-matrix.git synced 2024-09-19 15:12:47 +02:00

chore: rename roomid to room_id to harmonize parameters (#142)

This commit is contained in:
Robert Kaussow 2024-08-07 20:38:54 +02:00 committed by GitHub
parent 7ccf5bee7a
commit 3c5f68f348
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View File

@ -15,8 +15,8 @@ steps:
from_secret: matrix_homeserver from_secret: matrix_homeserver
password: password:
from_secret: matrix_password from_secret: matrix_password
roomid: room_id:
from_secret: matrix_roomid from_secret: matrix_room_id
username: username:
from_secret: matrix_username from_secret: matrix_username
when: when:

View File

@ -26,7 +26,7 @@ steps:
image: quay.io/thegeeklab/matrix image: quay.io/thegeeklab/matrix
settings: settings:
homeserver: https://matrix.org homeserver: https://matrix.org
roomid: randomstring:matrix.org room_id: randomstring:matrix.org
username: octocat username: octocat
password: random-secret password: random-secret
``` ```
@ -57,7 +57,7 @@ docker build --file Containerfile.multiarch --tag thegeeklab/wp-matrix .
```Shell ```Shell
docker run --rm \ docker run --rm \
-e PLUGIN_ROOMID=randomstring:matrix.org \ -e PLUGIN_ROOM_ID=randomstring:matrix.org \
-e PLUGIN_USERNAME=octocat \ -e PLUGIN_USERNAME=octocat \
-e PLUGIN_PASSWORD=random-secret \ -e PLUGIN_PASSWORD=random-secret \
-v $(pwd):/build:z \ -v $(pwd):/build:z \

View File

@ -33,9 +33,9 @@ properties:
type: string type: string
required: false required: false
- name: roomid - name: room_id
description: | description: |
Roomid to send messages to. Room ID to send messages to.
type: string type: string
required: false required: false

View File

@ -110,9 +110,9 @@ func Flags(settings *Settings, category string) []cli.Flag {
Category: category, Category: category,
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "roomid", Name: "room_id",
EnvVars: []string{"PLUGIN_ROOMID", "MATRIX_ROOMID"}, EnvVars: []string{"PLUGIN_ROOM_ID", "PLUGIN_ROOMID", "MATRIX_ROOMID", "MATRIX_ROOM_ID"},
Usage: "roomid to send messages to", Usage: "room id to send messages to",
Destination: &settings.RoomID, Destination: &settings.RoomID,
Category: category, Category: category,
}, },