[gcc r17-3406] add-write-after: Optionally capture forge ID

Richard Earnshaw via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:ece170d61d697bccd368e83eb9f8b8b4826050cc

commit r17-3406-gece170d61d697bccd368e83eb9f8b8b4826050cc
Author: Richard Earnshaw <[email protected]>
Date:   Wed Aug 19 10:38:19 2026 +0100

    add-write-after: Optionally capture forge ID
    
    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 an optional
            forge ID.

Diff:
---
 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 9c93324bc909..6bbcd8c7e3b2 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)):
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.