Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

ci: label the install statistics, since GitHub will not

Gauthier Piarrette8321614684a0
diff --git a/.github/workflows/label-funnel.yml b/.github/workflows/label-funnel.yml
new file mode 100644
index 0000000..7591f1e
--- /dev/null
+++ b/.github/workflows/label-funnel.yml
@@ -0,0 +1,25 @@
+# Install statistics arrive unlabelled, so they cannot be filtered or counted.
+#
+# FunnelLog.url builds the issue with ?labels=funnel, but GitHub only honours that parameter
+# for someone with triage rights on the repository, and every one of these comes from a person
+# who has none. It is dropped in silence: 31 of 31 issues titled "Install statistics" between
+# 2026-09-06 and 2026-09-23 carry no label at all, although the label exists. The app cannot
+# fix this, because the permission belongs to the sender, so the repository does it instead.
+name: label-funnel
+on:
+ issues:
+ types: [opened, reopened]
+
+permissions:
+ issues: write
+
+jobs:
+ label:
+ # The title is fixed by FunnelLog.url, not typed by the sender, so an exact match is safe.
+ if: github.event.issue.title == 'Install statistics'
+ runs-on: ubuntu-latest
+ steps:
+ - env:
+ GH_TOKEN: ${{ github.token }}
+ NUM: ${{ github.event.issue.number }}
+ run: gh issue edit "$NUM" --repo "$GITHUB_REPOSITORY" --add-label funnel