Skip to content

T8782: remove redundant pr-auto-close.yml on sagitta - #5228

Merged
andamasov merged 1 commit into
sagittafrom
feature/remove-pr-auto-close-sagitta
May 28, 2026
Merged

andamasov merged 1 commit into
sagittafrom
feature/remove-pr-auto-close-sagitta

Conversation

@andamasov

Copy link
Copy Markdown
Member

Summary

Removes .github/workflows/pr-auto-close.yml from the sagitta branch. Functionality is replaced by the central Mergify rule shipped in vyos/mergify#13, which closes PRs targeting EOL release branches (sagitta, crux, circinus) across every vyos/* repo that extends the central baseline.

Why this is safe

  • vyos/vyos-1x extends the central Mergify config via .github/mergify.yml on the current (default) branch.
  • Per Mergify docs, Mergify reads its configuration from the default branch of the repository — regardless of the PR's target branch.
  • Once vyos/mergify#13 merges, the new Auto-close PRs targeting EOL release branches rule will fire on any PR opened against sagitta in this repo.

Sequencing

Depends-On: vyos/mergify#13

The Mergify built-in Depends-On merge protection will hold this PR's merge until vyos/mergify#13 lands, ensuring no coverage gap between the GHA being deleted and the Mergify rule taking over.

Related cleanups (separate follow-up PRs)

Two more copies of the same workflow exist on other branches; left out of this PR to keep the diff scoped:

Branch File Status
circinus .github/workflows/pr-auto-close.yml Sibling of this file; closes PRs to circinus. Same Mergify rule will cover it.
current .github/workflows/pr-auto-close.yml Newer copy targeting both sagitta+circinus. Dormant: pull_request_target evaluates the workflow from the PR's target branch, so a file on current never fires for PRs to sagitta/circinus. Safe to delete.

Test plan

  • Confirm vyos/mergify#13 merges first (Depends-On gate).
  • After both PRs land, open a test PR against vyos/vyos-1x:sagitta and confirm Mergify closes it with the expected message.

🤖 Generated by robots

Functionality moved to the central Mergify config at vyos/mergify
(see PR vyos/mergify#13), which closes PRs targeting EOL release
branches (sagitta, crux, circinus) across every vyos/* repo that
extends the central baseline.

vyos/vyos-1x extends the central config via .github/mergify.yml on
the default branch (current). Mergify reads its configuration from
the default branch regardless of the PR's target branch, so the
new central rule will fire on PRs targeting sagitta in this repo
once vyos/mergify#13 lands.

This deletion is gated on vyos/mergify#13 via the Depends-On marker
in the PR body so Mergify holds the merge until upstream lands and
no coverage gap opens.

Two related cleanups remain (separate PRs):
  - .github/workflows/pr-auto-close.yml on the circinus branch
  - .github/workflows/pr-auto-close.yml on the current branch
    (dormant — its branch filter targets sagitta/circinus only, but
    pull_request_target evaluates the file from the target branch,
    so it never fires).
@coderabbitai

coderabbitai Bot commented May 28, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 3b9108d0-8ce8-4ff7-8e53-3be1e5a936a2

📥 Commits

Reviewing files that changed from the base of the PR and between c3f6886 and 28a8a6a.

📒 Files selected for processing (1)
  • .github/workflows/pr-auto-close.yml

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Removed automated pull request closure workflow.

Walkthrough

This PR removes .github/workflows/pr-auto-close.yml, a GitHub Actions workflow that automatically closed pull requests opened on the sagitta branch. The workflow used the superbrothers/close-pull-request@v3 action with a personal access token.

Changes

Cohort / File(s) Summary
Workflow deletion
.github/workflows/pr-auto-close.yml
Removed the auto-close workflow that targeted pull_request_target events on the sagitta branch. Entire file deleted (18 lines).

Possibly related PRs

  • vyos/vyos-1x#5221: Adds or repairs the same pr-auto-close.yml workflow that this PR removes.
  • vyos/vyos-1x#5223: Modifies the same .github/workflows/pr-auto-close.yml file with display name updates.
✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch feature/remove-pr-auto-close-sagitta

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown

Pull requests to this branch are not accepted and have been closed automatically.

@github-actions github-actions Bot closed this May 28, 2026
@github-actions

Copy link
Copy Markdown

👍
No issues in PR Title / Commit Title

@github-actions github-actions Bot added the sagitta VyOS 1.4 LTS label May 28, 2026
@andamasov andamasov reopened this May 28, 2026
@andamasov
andamasov marked this pull request as ready for review May 28, 2026 10:22
@andamasov
andamasov requested a review from a team as a code owner May 28, 2026 10:22
@andamasov
andamasov requested review from dmbaturin, hedrok, jestabro, natali-rs1985, sarthurdev, sever-sever and zdc and removed request for a team May 28, 2026 10:22
@github-actions

Copy link
Copy Markdown

Pull requests to this branch are not accepted and have been closed automatically.

@github-actions github-actions Bot closed this May 28, 2026
@andamasov
andamasov merged commit 64fba5e into sagitta May 28, 2026
12 of 16 checks passed
@andamasov
andamasov deleted the feature/remove-pr-auto-close-sagitta branch May 28, 2026 10:22
natali-rs1985 pushed a commit to natali-rs1985/vyos-1x that referenced this pull request May 28, 2026
This workflow was a newer copy of the per-branch pr-auto-close.yml
files, with a branch filter targeting both sagitta and circinus.

It never actually fired: pull_request_target evaluates the workflow
from the PR's TARGET branch, not the default branch. PRs targeting
sagitta used .github/workflows/pr-auto-close.yml from the sagitta
branch; PRs targeting circinus used circinus's copy. The file on
current matched no events.

Functionality is now centralized in the Mergify config at vyos/mergify
(see PR vyos/mergify#13, merged). vyos/vyos-1x extends that baseline
via .github/mergify.yml on this branch.

Sibling cleanup of vyos#5228 (sagitta) and the parallel
PR removing circinus's copy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sagitta VyOS 1.4 LTS

Development

Successfully merging this pull request may close these issues.

1 participant