Skip to content

ci: freeze legacy repo - auto-close PRs and drop release workflow#2724

Merged
adekbadek merged 1 commit into
trunkfrom
NPPM-2752/freeze-legacy-ci
May 27, 2026
Merged

ci: freeze legacy repo - auto-close PRs and drop release workflow#2724
adekbadek merged 1 commit into
trunkfrom
NPPM-2752/freeze-legacy-ci

Conversation

@adekbadek
Copy link
Copy Markdown
Member

Changes proposed in this Pull Request:

Part of the move to the Automattic/newspack-workspace monorepo (NPPM-2752). Now that the monorepo is merged, this repo becomes a read-only mirror:

  • Add auto-close-prs.yml – any newly opened or reopened PR is automatically commented on (pointing contributors to the monorepo) and closed. Uses pull_request_target so the token has write scope for fork PRs; no PR code is checked out or run.
  • Remove release.yml – this repo no longer cuts releases. Releases are now produced from the monorepo.

How to test the changes in this Pull Request:

  1. Review the workflow YAML – confirm auto-close-prs.yml triggers on pull_request_target (opened, reopened) with pull-requests: write and closes via gh pr close --comment.
  2. After merge, open a test PR against the default branch and confirm it is auto-commented and closed.
  3. Confirm no release workflow remains (.github/workflows/release.yml deleted).

Other information:

Development has moved to the Automattic/newspack-workspace monorepo.
Auto-close any newly opened/reopened PR with a pointer to the monorepo,
and remove the release workflow so this repo no longer cuts releases.

NPPM-2752

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@adekbadek adekbadek marked this pull request as ready for review May 27, 2026 08:59
@adekbadek adekbadek requested a review from a team as a code owner May 27, 2026 08:59
@adekbadek adekbadek merged commit 2809bcd into trunk May 27, 2026
5 checks passed
@adekbadek adekbadek deleted the NPPM-2752/freeze-legacy-ci branch May 27, 2026 09:01
@github-actions
Copy link
Copy Markdown

Hey @adekbadek, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

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.

1 participant