mirror of
https://github.com/thegeeklab/wp-matrix.git
synced 2024-11-23 07:00:40 +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
|
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:
|
||||||
|
@ -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 \
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -110,8 +110,8 @@ 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: "room id to send messages to",
|
Usage: "room id to send messages to",
|
||||||
Destination: &settings.RoomID,
|
Destination: &settings.RoomID,
|
||||||
Category: category,
|
Category: category,
|
||||||
|
Loading…
Reference in New Issue
Block a user