Build forgejo-pr-merge plugin #70

Open
opened 2026-11-07 21:19:01 +00:00 by martin · 0 comments
Owner

Add a Woodpecker plugin that merges a Forgejo pull request using configurable repository and PR identifiers, merge method, branch-deletion policy, and wait-for-checks behavior.

Design

Priority: Medium. Evidence: a direct Forgejo merge API call conditioned on a PR label in cluster/.woodpecker/switch.yml. Existing Forgejo API plugins do not merge PRs.

Acceptance criteria

The plugin authenticates with a Forgejo token and merges the configured PR using the selected merge method and deletion/wait-for-checks policies. Document settings and add tests for request construction and behavior.

Migration provenance

Migrated from Beads. Original timestamps and authors are preserved below; Forgejo creation metadata reflects the migration.

Original Beads record
{
  "_type": "issue",
  "id": "beads-9ql",
  "title": "Build forgejo-pr-merge plugin",
  "description": "Add a Woodpecker plugin that merges a Forgejo pull request using configurable repository and PR identifiers, merge method, branch-deletion policy, and wait-for-checks behavior.",
  "design": "Priority: Medium. Evidence: a direct Forgejo merge API call conditioned on a PR label in cluster/.woodpecker/switch.yml. Existing Forgejo API plugins do not merge PRs.",
  "acceptance_criteria": "The plugin authenticates with a Forgejo token and merges the configured PR using the selected merge method and deletion/wait-for-checks policies. Document settings and add tests for request construction and behavior.",
  "status": "open",
  "priority": 2,
  "issue_type": "feature",
  "owner": "git@martials.no",
  "created_at": "2026-10-03T21:40:59Z",
  "created_by": "Martin Berg Alstad",
  "updated_at": "2026-10-03T21:40:59Z",
  "labels": [
    "woodpecker-plugins"
  ],
  "dependency_count": 0,
  "dependent_count": 0,
  "comment_count": 0
}
Add a Woodpecker plugin that merges a Forgejo pull request using configurable repository and PR identifiers, merge method, branch-deletion policy, and wait-for-checks behavior. ## Design Priority: Medium. Evidence: a direct Forgejo merge API call conditioned on a PR label in cluster/.woodpecker/switch.yml. Existing Forgejo API plugins do not merge PRs. ## Acceptance criteria The plugin authenticates with a Forgejo token and merges the configured PR using the selected merge method and deletion/wait-for-checks policies. Document settings and add tests for request construction and behavior. ## Migration provenance Migrated from Beads. Original timestamps and authors are preserved below; Forgejo creation metadata reflects the migration. <details> <summary>Original Beads record</summary> ```json { "_type": "issue", "id": "beads-9ql", "title": "Build forgejo-pr-merge plugin", "description": "Add a Woodpecker plugin that merges a Forgejo pull request using configurable repository and PR identifiers, merge method, branch-deletion policy, and wait-for-checks behavior.", "design": "Priority: Medium. Evidence: a direct Forgejo merge API call conditioned on a PR label in cluster/.woodpecker/switch.yml. Existing Forgejo API plugins do not merge PRs.", "acceptance_criteria": "The plugin authenticates with a Forgejo token and merges the configured PR using the selected merge method and deletion/wait-for-checks policies. Document settings and add tests for request construction and behavior.", "status": "open", "priority": 2, "issue_type": "feature", "owner": "git@martials.no", "created_at": "2026-10-03T21:40:59Z", "created_by": "Martin Berg Alstad", "updated_at": "2026-10-03T21:40:59Z", "labels": [ "woodpecker-plugins" ], "dependency_count": 0, "dependent_count": 0, "comment_count": 0 } ``` </details> <!-- beads-migration:beads-9ql -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Personal/woodpecker-plugins#70
No description provided.