[PATCH v1] add-write-after: Optionally capture forge ID

Richard Earnshaw via Sourceware Forge <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <bmm.hlhhkqy9qs.gcc.gcc.rearnsha.221.1.0@forge-stage.sourceware.org>
From: Richard Earnshaw <[email protected]>

If a developer has an account on the forge, capture it while collecing
data for a new write-after account.

contrib/ChangeLog:

	* add-write-after.py (getuserdata): Also capture and
	optional forge ID.
---
This is a forge pull request published on the gcc-patches mailing list mailing list
as requested by Richard Earnshaw via Sourceware Forge <[email protected]>.
Forge discussion: https://forge.sourceware.org/gcc/gcc/pulls/221

Get it locally using:
```
git fetch forge-upstream "+refs/versioned_pull/221/*:refs/versioned_pull/221/*"
git switch -c "pr-221-v1" "refs/versioned_pull/221/1/head"
```
Or, download the patch at: https://forge.sourceware.org/gcc/gcc/pulls/221.diff
Created on: 2026-08-19 09:49:57+00:00
Latest update: 2026-08-19 09:50:20+00:00
Changes: 1 changed files, 4 additions, 0 deletions
Head revision: rearnsha/gcc ref awa-forgeid commit 66582efd2c1feb1a7b887b40b5e9fdb8d09280ae 
Base revision: gcc/gcc ref trunk commit 75b259d068e1db2c8ac2246e3118dd5d24724674 r17-3401-g75b259d068e1db
Merge base: 75b259d068e1db2c8ac2246e3118dd5d24724674
Requested Reviewers: 

Changed files:
- M: contrib/add-write-after.py

 contrib/add-write-after.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/add-write-after.py b/contrib/add-write-after.py
index 9c93324bc9096..6bbcd8c7e3b22 100755
--- a/contrib/add-write-after.py
+++ b/contrib/add-write-after.py
@@ -82,6 +82,8 @@ def getuserdata():
     newuser['sn'] = ask("Your surname (only used for sorting entries)",
                         get_surname(newuser['cn']))
     account = ask("Your sourceware account", user.pw_name)
+    forgeid = ask("Your sourceware forge ID (if you have one)", None,
+                  required=False)
     while True:
         e = ask("Primary email address", None)
         if email_valid(e):
@@ -101,6 +103,8 @@ def getuserdata():
     newuser['roles'] = list()
     newuser['roles'].append('WriteAfter')
     newuser['account'] = account
+    if forgeid:
+        newuser['forgeid'] = forgeid
     print("If you are using a Developer Certificate of Origin (DCO)")
     print("you can add appropriate email addresses here")
     while (e := ask("DCO email (return to stop)", None, required=False)):
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.