Skip to content

auto-rebase: extract stuck-notice predicate + body formatting into a tested helper #735

Open

Description

@don-petry

Follow-up from #713 (auto-rebase Part C), deferred to keep that fix minimal.

Context

#713 added inline bash in auto-rebase-reusable.yml (~lines 161–182) implementing the "skipped + dirty ⇒ post stuck notice once" predicate and the notice body formatting. Copilot's review noted this deviates from the repo pattern of extracting auto-rebase logic into small, testable helpers (lib/eligibility.sh, lib/comments.sh) with bats coverage.

Task

Extract the stuck-notice predicate + body formatting from auto-rebase-reusable.yml into a dedicated helper under .github/scripts/auto-rebase/, add bats coverage, and reduce the workflow step to thin I/O glue — matching the existing eligibility/comments helper pattern.

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions