forked from infra/ansible
feat(pagure.io): added notification banner and git hook that informs about pagure migration
Signed-off-by: Anton Medvedev <amedvede@redhat.com>
This commit is contained in:
parent
0be5e89880
commit
c7a559d359
2 changed files with 19 additions and 18 deletions
|
|
@ -1,13 +1,13 @@
|
|||
Date: Thu, 12 Mar 2026 00:00:00 +0000
|
||||
Subject: [PATCH] Add site-wide banner on pagure.io for Flock 2026 sunset
|
||||
announcement
|
||||
Subject: [PATCH] Add site-wide banner on pagure.io for read-only transition
|
||||
|
||||
Add a banner linking to the decommissioning discussion and encouraging
|
||||
migration to forge.fedoraproject.org.
|
||||
Add a banner announcing pagure.io will become read-only by July 31, 2026
|
||||
at the latest, linking to forge.fedoraproject.org and the decommissioning
|
||||
discussion.
|
||||
|
||||
---
|
||||
pagure/themes/pagureio/templates/theme.html | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
pagure/themes/pagureio/templates/theme.html | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/pagure/themes/pagureio/templates/theme.html b/pagure/themes/pagureio/templates/theme.html
|
||||
index 17a97160..e5a1ef1d 100644
|
||||
|
|
@ -20,10 +20,9 @@ index 17a97160..e5a1ef1d 100644
|
|||
+{% if config['APP_URL'] in ['https://stg.pagure.io/', 'https://pagure.io/'] %}
|
||||
+<div class="alert alert-warning mb-0">
|
||||
+ <div class="container text-center">
|
||||
+ <strong>pagure.io is expected to be decommissioned at or around <a href="https://fedoraproject.org/flock/2026/" target="_blank">Flock 2026</a>, June 14-16, 2026.</strong>
|
||||
+ Fedora Project contributors are encouraged to migrate Fedora Project related work to
|
||||
+ <a href="https://forge.fedoraproject.org">forge.fedoraproject.org</a>.
|
||||
+ <a href="https://discussion.fedoraproject.org/t/decommissioning-of-pagure-io-anticipated-by-flock-2026/181997">Discussion and feedback</a>.
|
||||
+ <strong>pagure.io will become read-only by July 31, 2026 at the latest.</strong>
|
||||
+ Repositories are available on <a href="https://forge.fedoraproject.org/">forge.fedoraproject.org</a>. Migrate your work there and update your git remotes.
|
||||
+ <a href="https://discussion.fedoraproject.org/t/decommissioning-of-pagure-io-anticipated-by-flock-2026/181997">Read the announcement and share feedback</a>.
|
||||
+ </div>
|
||||
+</div>
|
||||
+{% endif %}
|
||||
|
|
|
|||
|
|
@ -1,27 +1,29 @@
|
|||
Date: Thu, 12 Mar 2026 00:00:00 +0000
|
||||
Subject: [PATCH] Add hardcoded Flock 2026 sunset message to post-receive hook
|
||||
Subject: [PATCH] Add read-only transition message to post-receive hook
|
||||
|
||||
Print a fixed message in the terminal on git push announcing pagure.io
|
||||
decommissioning by Flock 2026 and migration to forge.fedoraproject.org.
|
||||
will become read-only by July 31, 2026 at the latest and migration to
|
||||
forge.fedoraproject.org.
|
||||
|
||||
---
|
||||
pagure/hooks/__init__.py | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
pagure/hooks/__init__.py | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/pagure/hooks/__init__.py b/pagure/hooks/__init__.py
|
||||
index 24544dcc..d24262ba 100644
|
||||
--- a/pagure/hooks/__init__.py
|
||||
+++ b/pagure/hooks/__init__.py
|
||||
@@ -548,6 +548,15 @@ def run_hook_file(hooktype):
|
||||
@@ -548,6 +548,16 @@ def run_hook_file(hooktype):
|
||||
|
||||
if pagure_config.get("HOOK_DEBUG", False):
|
||||
print("Running %s hooks for %s" % (hooktype, project.fullname))
|
||||
+ if hooktype == "post-receive":
|
||||
+ print()
|
||||
+ print("===============================================================================")
|
||||
+ print("pagure.io is expected to be decommissioned by Flock 2026.")
|
||||
+ print("pagure.io will become read-only by July 31, 2026 at the latest.")
|
||||
+ print()
|
||||
+ print("Migrate to forge.fedoraproject.org. Discussion:")
|
||||
+ print("Migrate your repositories to forge.fedoraproject.org and update your git remotes.")
|
||||
+ print("Discussion:")
|
||||
+ print("https://discussion.fedoraproject.org/t/decommissioning-of-pagure-io-anticipated-by-flock-2026/181997")
|
||||
+ print("===============================================================================")
|
||||
+ print()
|
||||
|
|
@ -29,5 +31,5 @@ index 24544dcc..d24262ba 100644
|
|||
session,
|
||||
pushuser,
|
||||
|
||||
--
|
||||
--
|
||||
2.49.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue