0
0
mirror of https://github.com/thegeeklab/wp-matrix.git synced 2024-11-21 04:20:38 +00: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
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
room_id:
from_secret: matrix_room_id
username:
from_secret: matrix_username
when:

View File

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

View File

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

View File

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