Extend action to autolabel issues

labelling does not work for outside users even through the template
This commit is contained in:
bbhtt
2024-12-08 11:11:37 +05:30
parent c788763aa3
commit 9f08942894
2 changed files with 15 additions and 4 deletions
+1
View File
@@ -1,6 +1,7 @@
---
name: "Quality Guidelines"
about: "Feedback or support regarding Flathub Quality Guidelines"
title: "Quality guideline problems for <app name>"
labels: "quality-guidelines"
---
+14 -4
View File
@@ -1,15 +1,25 @@
name: Tag Quality mod team
name: Label and tag quality mod team
on:
issues:
types: [labeled]
types: [opened, labeled]
workflow_dispatch:
jobs:
tag:
if: github.event.label.name == 'quality-guidelines'
label_and_tag:
runs-on: ubuntu-latest
permissions:
issues: write
if: startsWith(github.event.issue.title, 'Quality guideline problems for')
steps:
- name: Label
run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: quality-guidelines
- name: Add comment tagging the team
uses: peter-evans/create-or-update-comment@v4
with: