github: label issues based on os

We get a lot of issues for podman-remote on macos. Since the fact that
this is a remote client is often overlooked by us lets add windows, macos
and remote label automatically based on a regex which should match the
output of podman version.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2022-01-27 17:26:14 +01:00
parent 5659b0734c
commit 525bdc3771
No known key found for this signature in database
GPG Key ID: EB145DD938A3CAF2
2 changed files with 25 additions and 0 deletions

10
.github/issue-labeler.yml vendored Normal file
View File

@ -0,0 +1,10 @@
# List of labels which should be assigned to issues based on a regex
windows:
- 'Os\/Arch:\s*windows'
macos:
- 'Os\/Arch:\s*darwin'
remote:
# podman-remote version prints Client:\nVersion:...
- 'Client:\sVersion:'

15
.github/workflows/issue-labeler.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: "Issue Labeler"
on:
issues:
types: [opened, edited]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/issue-labeler.yml
not-before: 2022-01-27T00:00:00Z
enable-versioned-regex: 0