Build forgejo-file-sync plugin #64

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

Add a Woodpecker plugin that reads, creates, or updates arbitrary Forgejo repository files. Support optional branch creation and pull-request creation; callers provide replacement content or a transformation command rather than coupling the plugin to image-tag replacement. Follow the Forgejo API patterns established by forgejo-release.

Design

Priority: High. Evidence: roughly 100 lines of repeated shell/YAML in recurring-events and woodpecker-extension.

Acceptance criteria

The plugin can read and create repository files, update existing files using their SHA, and optionally create a branch and PR. It accepts Forgejo credentials, target owner/repository/path/branch, content or a transformation command, and commit message. Document configuration and add appropriate tests.

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-8vn",
  "title": "Build forgejo-file-sync plugin",
  "description": "Add a Woodpecker plugin that reads, creates, or updates arbitrary Forgejo repository files. Support optional branch creation and pull-request creation; callers provide replacement content or a transformation command rather than coupling the plugin to image-tag replacement. Follow the Forgejo API patterns established by forgejo-release.",
  "design": "Priority: High. Evidence: roughly 100 lines of repeated shell/YAML in recurring-events and woodpecker-extension.",
  "acceptance_criteria": "The plugin can read and create repository files, update existing files using their SHA, and optionally create a branch and PR. It accepts Forgejo credentials, target owner/repository/path/branch, content or a transformation command, and commit message. Document configuration and add appropriate tests.",
  "status": "open",
  "priority": 1,
  "issue_type": "feature",
  "owner": "git@martials.no",
  "created_at": "2026-10-03T21:40:05Z",
  "created_by": "Martin Berg Alstad",
  "updated_at": "2026-10-03T21:40:05Z",
  "labels": [
    "woodpecker-plugins"
  ],
  "dependency_count": 0,
  "dependent_count": 0,
  "comment_count": 0
}
Add a Woodpecker plugin that reads, creates, or updates arbitrary Forgejo repository files. Support optional branch creation and pull-request creation; callers provide replacement content or a transformation command rather than coupling the plugin to image-tag replacement. Follow the Forgejo API patterns established by forgejo-release. ## Design Priority: High. Evidence: roughly 100 lines of repeated shell/YAML in recurring-events and woodpecker-extension. ## Acceptance criteria The plugin can read and create repository files, update existing files using their SHA, and optionally create a branch and PR. It accepts Forgejo credentials, target owner/repository/path/branch, content or a transformation command, and commit message. Document configuration and add appropriate tests. ## 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-8vn", "title": "Build forgejo-file-sync plugin", "description": "Add a Woodpecker plugin that reads, creates, or updates arbitrary Forgejo repository files. Support optional branch creation and pull-request creation; callers provide replacement content or a transformation command rather than coupling the plugin to image-tag replacement. Follow the Forgejo API patterns established by forgejo-release.", "design": "Priority: High. Evidence: roughly 100 lines of repeated shell/YAML in recurring-events and woodpecker-extension.", "acceptance_criteria": "The plugin can read and create repository files, update existing files using their SHA, and optionally create a branch and PR. It accepts Forgejo credentials, target owner/repository/path/branch, content or a transformation command, and commit message. Document configuration and add appropriate tests.", "status": "open", "priority": 1, "issue_type": "feature", "owner": "git@martials.no", "created_at": "2026-10-03T21:40:05Z", "created_by": "Martin Berg Alstad", "updated_at": "2026-10-03T21:40:05Z", "labels": [ "woodpecker-plugins" ], "dependency_count": 0, "dependent_count": 0, "comment_count": 0 } ``` </details> <!-- beads-migration:beads-8vn -->
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#64
No description provided.