Skip to content

fix: repair broken call-to-action link on Volunteer page (#2983)#3058

Open
hanu-14 wants to merge 1 commit into
python:mainfrom
hanu-14:fix/volunteer-cta-link
Open

fix: repair broken call-to-action link on Volunteer page (#2983)#3058
hanu-14 wants to merge 1 commit into
python:mainfrom
hanu-14:fix/volunteer-cta-link

Conversation

@hanu-14

@hanu-14 hanu-14 commented Jul 16, 2026

Copy link
Copy Markdown

Fixes #2983

Removes the broken psf-volunteers mailing list call-to-action
from the Volunteer page, as this list was archived during the
Mailman 2.1 to Mailman 3 migration in May 2025 and no longer
exists.

@hanu-14 hanu-14 requested a review from JacobCoffee as a code owner July 16, 2026 16:33
Copilot AI review requested due to automatic review settings July 16, 2026 16:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #2983 by removing an outdated call-to-action on the PSF Volunteer page that points to a non-existent psf-volunteers Mailman 2.1 list, updating the site’s CMS page content via a data migration.

Changes:

  • Adds a Django data migration to locate the psf/volunteer CMS Page record.
  • Removes the section of the page content referencing psf-volunteers and its “Sign up” CTA.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +11 to +35
content = page.content
if "psf-volunteers" not in content:
return

# Remove the broken CTA section about the psf-volunteers mailing list,
# which was archived during the Mailman 2.1 -> Mailman 3 migration in
# May 2025 and no longer exists.
lines = content.split("\n")
new_lines = []
drop = False
for line in lines:
if "psf-volunteers" in line:
drop = True
if not drop:
new_lines.append(line)
elif "Sign up" in line or "sign up" in line:
continue
elif line.strip() == "":
drop = False
new_lines.append(line)

new_content = "\n".join(new_lines).strip()
if new_content != content:
page.content = new_content
page.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Broken call to action on the Volunteer page

2 participants