Skip to content

Edit head_branch of a PR #33883

@AdamMajer

Description

@AdamMajer

Feature Description

In a typical workflow,

  1. do some changes on branch foo
  2. create a PR
  3. add some commits to branch foo
  4. PR is updated

Now, how can I turn this automatic branch following off?

The reason is specific workflows that can run long time and where changes on the source branch may not be wanted in the PR.

In the API https://demo.gitea.com/api/swagger/#/repository/repoEditPullRequest I can't set the HEAD branch to another branch. The other branch could even refer to same commitid.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions