chore: ask for the app in the issue title

This commit is contained in:
Felitendo committed 2026-10-01 09:06:20 +02:00
1 parent c0fca75cbc
commit 8a7e67b1f9
2 files changed
+4 -29

No files matched your search

+2 -10
View File
@@ -4,13 +4,9 @@ title: 'App: '
labels: labels:
- app - app
body: body:
- type: input - type: markdown
id: app
attributes: attributes:
label: Which app? value: Just add the app's name to the title. The rest is optional.
placeholder: Obsidian
validations:
required: true
- type: dropdown - type: dropdown
id: install id: install
attributes: attributes:
@@ -21,7 +17,3 @@ body:
- Flatpak - Flatpak
- Snap - Snap
- AppImage - AppImage
- type: textarea
id: more
attributes:
label: Anything else?
+2 -19
View File
@@ -2,34 +2,17 @@ name: issues
on: on:
issues: issues:
types: [opened, labeled] types: [labeled]
permissions: permissions:
issues: write issues: write
jobs: jobs:
# Users can leave the title alone, it gets the app's name.
title:
name: name app issues after the app
if: github.event.action == 'opened' && contains(github.event.issue.labels.*.name, 'app')
runs-on: ubuntu-latest
steps:
- env:
GH_TOKEN: ${{ github.token }}
BODY: ${{ github.event.issue.body }}
NUMBER: ${{ github.event.issue.number }}
run: |
app=$(printf '%s\n' "$BODY" | tr -d '\r' \
| awk '/^### /{f = ($0 == "### Which app?"); next} f && NF {print; exit}')
if [ -n "$app" ] && [ "$app" != "_No response_" ]; then
gh issue edit "$NUMBER" --repo "$GITHUB_REPOSITORY" --title "App: ${app:0:80}"
fi
# The "fixed" and "not chromium" labels answer and close the issue. # The "fixed" and "not chromium" labels answer and close the issue.
close: close:
name: close on label name: close on label
if: >- if: >-
github.event.action == 'labeled' && github.event.issue.state == 'open' github.event.issue.state == 'open'
&& (github.event.label.name == 'fixed' || github.event.label.name == 'not chromium') && (github.event.label.name == 'fixed' || github.event.label.name == 'not chromium')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: