github: label issues based on os fix regex

Good news the github action works, however I noticed that we cannot use
a multiline regex so we have to use serviceIsRemote to detect if this is
a remote client. Also change the os regex so that it matches both the
output of podman version and podman info.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
Paul Holzinger 2022-01-27 21:24:34 +01:00
parent fae7648ba1
commit a928d39d0c
1 changed files with 8 additions and 5 deletions

View File

@ -1,10 +1,13 @@
# List of labels which should be assigned to issues based on a regex # List of labels which should be assigned to issues based on a regex
windows: windows:
- 'Os\/Arch:\s*windows' # info prints OsArch: ...
# version prints OS/Arch: ...
- 'O[Ss]\/?Arch:\s*windows'
macos: macos:
- 'Os\/Arch:\s*darwin' # info prints OsArch: ...
# version prints OS/Arch: ...
- 'O[Ss]\/?Arch:\s*darwin'
remote: remote:
# podman-remote version prints Client:\nVersion:... # we cannot use multiline regex so we check for serviceIsRemote in podman info
- 'Client:\sVersion:' - 'serviceIsRemote:\strue'