Files
devx/docs/specs/DEVX-169.md
T
kireto 85f1bd9304
Post-merge / detect-and-configure (push) Successful in 59s
Post-merge / release-and-maintain (push) Successful in 1m6s
DEVX-169: fix(ci): create dep-PR branches via POST /branches
2026-09-19 19:12:27 +00:00

985 B

DEVX-169: create_dependency_pr uses branches API

Problem

After DEVX-168, dep-PR creation fails at POST /git/refs with HTTP 405 Method Not Allowed — this Gitea version does not implement the createRef endpoint. Observed creating the sso_bridge 0.4.1 infra dependency PR.

Approach

REQ-1: Create the dependency branch via POST /branches with new_branch_name/old_branch_name (from master). An already-exists error is tolerated; other API errors fail closed.

Test Plan

  • Branch creation calls POST /branches with the expected payload.
  • 422 already-exists is tolerated and the PR is still created.
  • Other API errors abort with a branch-creation failure.

Deploy Plan

devx release tag; producers pick it up via pin bumps.

Rollback Plan

Revert; dep-PR creation stays broken (status quo).

Acceptance Criteria

  • REQ-1: branch creation uses the branches API; already-exists tolerated; failures surface. Covered by unit tests at 100% coverage.