Hi gcc-patches mailing list, Richard Earnshaw via Sourceware Forge <[email protected]> has requested that the following forgejo pull request be published on the mailing list.
Created on: 2026-04-29 10:48:37+00:00 Latest update: 2026-05-05 09:17:11+00:00 Changes: 4 changed files, 1366 additions, 0 deletions Head revision: rearnsha/gcc-TEST ref forge-labels commit 59109ed260b8a6064ba8c5a41335d3caf6ee82b6 Base revision: gcc/gcc-TEST ref trunk commit b99e67e8ac8e0333cc74040e9924e88555b7a3e1 r17-96-gb99e67e8ac8e03 Merge base: b99e67e8ac8e0333cc74040e9924e88555b7a3e1 Full diff url: https://forge.sourceware.org/gcc/gcc-TEST/pulls/149.diff Discussion: https://forge.sourceware.org/gcc/gcc-TEST/pulls/149 Requested Reviewers: rdfm Add some scaffolding for managing labels used by the forge. This patch handles some general infrastructure to read a 'database' of labels, an initial set of lables and a script to manage the list of labels on the forge instance. It makes use of the forge's REST API to automate the process, thus making it simple for a user with appropriate privilages to update the list with minimal effort. The classify.py script takes a list of file paths and applies the match rules, printing out the labels that would apply to each filename. You can see the effects by running (cd $GCC_SRC_BASE; find . -type f -print) | ./classify.py I expect a future patch to use the matching data to automatically label merge requests with the relevant labels as part of the initial triaging process. contrib/ChangeLog: * forge/forgelabels.py: New file. * forge/labels.yaml: New file. * forge/update-labels.py: New file. * forge/classify.py: New file. Thanks for taking the time to contribute to GCC! Please be advised that https://forge.sourceware.org/ is currently a trial that is being used by the GCC community to experiment with a new workflow based on pull requests. Pull requests sent here may be forgotten or ignored. Patches that you want to propose for inclusion in GCC should use the existing email-based workflow, see https://gcc.gnu.org/contribute.html Changed files: - A: contrib/forge/classify.py - A: contrib/forge/forgelabels.py - A: contrib/forge/labels.yaml - A: contrib/forge/update-labels.py Richard Earnshaw (1): Forge: Add scaffolding for managing forge labels contrib/forge/classify.py | 88 ++++ contrib/forge/forgelabels.py | 201 +++++++ contrib/forge/labels.yaml | 926 +++++++++++++++++++++++++++++++++ contrib/forge/update-labels.py | 151 ++++++ 4 files changed, 1366 insertions(+) create mode 100755 contrib/forge/classify.py create mode 100755 contrib/forge/forgelabels.py create mode 100644 contrib/forge/labels.yaml create mode 100755 contrib/forge/update-labels.py -- 2.54.0
