mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 17:28:57 +00:00
Extend action to autolabel issues
labelling does not work for outside users even through the template
This commit is contained in:
@@ -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"
|
||||
---
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user