mirror of
https://github.com/thegeeklab/wp-matrix.git
synced 2024-11-09 18:10:39 +00:00
chore: rename roomid to room_id to harmonize parameters (#142)
This commit is contained in:
parent
7ccf5bee7a
commit
3c5f68f348
@ -15,8 +15,8 @@ steps:
|
||||
from_secret: matrix_homeserver
|
||||
password:
|
||||
from_secret: matrix_password
|
||||
roomid:
|
||||
from_secret: matrix_roomid
|
||||
room_id:
|
||||
from_secret: matrix_room_id
|
||||
username:
|
||||
from_secret: matrix_username
|
||||
when:
|
||||
|
@ -26,7 +26,7 @@ steps:
|
||||
image: quay.io/thegeeklab/matrix
|
||||
settings:
|
||||
homeserver: https://matrix.org
|
||||
roomid: randomstring:matrix.org
|
||||
room_id: randomstring:matrix.org
|
||||
username: octocat
|
||||
password: random-secret
|
||||
```
|
||||
@ -57,7 +57,7 @@ docker build --file Containerfile.multiarch --tag thegeeklab/wp-matrix .
|
||||
|
||||
```Shell
|
||||
docker run --rm \
|
||||
-e PLUGIN_ROOMID=randomstring:matrix.org \
|
||||
-e PLUGIN_ROOM_ID=randomstring:matrix.org \
|
||||
-e PLUGIN_USERNAME=octocat \
|
||||
-e PLUGIN_PASSWORD=random-secret \
|
||||
-v $(pwd):/build:z \
|
||||
|
@ -33,9 +33,9 @@ properties:
|
||||
type: string
|
||||
required: false
|
||||
|
||||
- name: roomid
|
||||
- name: room_id
|
||||
description: |
|
||||
Roomid to send messages to.
|
||||
Room ID to send messages to.
|
||||
type: string
|
||||
required: false
|
||||
|
||||
|
@ -110,9 +110,9 @@ func Flags(settings *Settings, category string) []cli.Flag {
|
||||
Category: category,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "roomid",
|
||||
EnvVars: []string{"PLUGIN_ROOMID", "MATRIX_ROOMID"},
|
||||
Usage: "roomid to send messages to",
|
||||
Name: "room_id",
|
||||
EnvVars: []string{"PLUGIN_ROOM_ID", "PLUGIN_ROOMID", "MATRIX_ROOMID", "MATRIX_ROOM_ID"},
|
||||
Usage: "room id to send messages to",
|
||||
Destination: &settings.RoomID,
|
||||
Category: category,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user