Author: sebb
Date: Sun Feb 28 17:31:39 2021
New Revision: 1887002

URL: http://svn.apache.org/viewvc?rev=1887002&view=rev
Log:
Generate text for Attic JIRA

Added:
    attic/site/_template.jira
Modified:
    attic/site/retire.py

Added: attic/site/_template.jira
URL: 
http://svn.apache.org/viewvc/attic/site/_template.jira?rev=1887002&view=auto
==============================================================================
--- attic/site/_template.jira (added)
+++ attic/site/_template.jira Sun Feb 28 17:31:39 2021
@@ -0,0 +1,16 @@
+# Confirm Board Resolution
+# Inform users of the move to the Attic
+# Create project page on Attic site: 
[http://attic.apache.org/projects/${tlpid}|http://attic.apache.org/projects/${tlpid}.html]
+# Update the project DOAP file (if any) or copy to 
[projects-override|https://svn.apache.org/repos/asf/comdev/projects.apache.org/trunk/data/projects-override/]:
+# Announce on [announce at 
apache.org|http://mail-archives.apache.org/mod_mbox/www-announce/]
+
+See [http://attic.apache.org/process.html#howto] for detailed instructions
+
+Open an Infrastructure JIRA issue identifying the resources that need turning 
off/making read only.
+ Typically:
+ * Make source control Git|Svn read-only (requested)
+ * Remove files from 
[release|https://dist.apache.org/repos/dist/release/${tlpid}] and 
[staging|https://dist.apache.org/repos/dist/dev/${tlpid}] areas
+ * Closing down of [mailing lists|http://mail-archives.apache.org/mod_mbox/]
+ * Make JIRA|Bugzilla|Github issues read-only
+ * Make the wiki (Confluence|Moinmoin) read-only
+ * Delete unix/ldap group
\ No newline at end of file

Modified: attic/site/retire.py
URL: 
http://svn.apache.org/viewvc/attic/site/retire.py?rev=1887002&r1=1887001&r2=1887002&view=diff
==============================================================================
--- attic/site/retire.py (original)
+++ attic/site/retire.py Sun Feb 28 17:31:39 2021
@@ -76,7 +76,16 @@ def update_stylesheet(pid):
     else:
         print("Could not find where to add %s" % pid)
 
-
+# create JIRA template
+def create_jira_template(pid):
+    outfile = join(MYHOME, "%s.jira.tmp" % pid)
+    print("Creating %s" % outfile)
+    with open(join(MYHOME, '_template.jira'), 'r') as t:
+        template = Template(t.read())
+    out = template.substitute(tlpid = pid)
+    with open(outfile, 'w') as o:
+        o.write(out)
+    
 # create the project.xml file from the template
 def create_project(pid):
     outfile = join(projects, "%s.xml" % pid)
@@ -103,6 +112,7 @@ for arg in sys.argv[1:]:
         if os.path.exists(flagdir):
             print("flagged/%s already exists" % arg)
             continue        
+        create_jira_template(arg)
         try:
             os.mkdir(flagdir)
             os.system("svn add %s" % flagdir)


Reply via email to