Improve manual pipeline branch autocomplete #1

Open
lambadalambda wants to merge 1 commit from fix/manual-branch-autocomplete into main

Summary

  • render the manual pipeline form immediately with the repository default branch
  • add a searchable branch autocomplete API and use it from the manual pipeline branch field
  • add native branch search for GitHub, GitLab, and Bitbucket Data Center, with bounded fallback search for other forges

Tests

  • go test -tags test ./server/api ./server/forge/github ./server/forge/gitlab ./server/forge/bitbucketdatacenter
  • pnpm run typecheck
  • pnpm run lint
  • pnpm run format:check

Related: pleroma/woodpecker#9

## Summary - render the manual pipeline form immediately with the repository default branch - add a searchable branch autocomplete API and use it from the manual pipeline branch field - add native branch search for GitHub, GitLab, and Bitbucket Data Center, with bounded fallback search for other forges ## Tests - go test -tags test ./server/api ./server/forge/github ./server/forge/gitlab ./server/forge/bitbucketdatacenter - pnpm run typecheck - pnpm run lint - pnpm run format:check Related: pleroma/woodpecker#9
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/manual-branch-autocomplete:fix/manual-branch-autocomplete
git switch fix/manual-branch-autocomplete

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff fix/manual-branch-autocomplete
git switch fix/manual-branch-autocomplete
git rebase main
git switch main
git merge --ff-only fix/manual-branch-autocomplete
git switch fix/manual-branch-autocomplete
git rebase main
git switch main
git merge --no-ff fix/manual-branch-autocomplete
git switch main
git merge --squash fix/manual-branch-autocomplete
git switch main
git merge --ff-only fix/manual-branch-autocomplete
git switch main
git merge fix/manual-branch-autocomplete
git push origin main
Sign in to join this conversation.
No reviewers
No labels
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.

Dependencies

No dependencies set.

Reference
lambadalambda/woodpecker!1
No description provided.