-
Previous Value Current Value Add function to create the branch when the issue is opened
Able to create branch when issue is opened or transited to certain state
-
OneDev
changed state to 'Closed' 3 years ago
Previous Value Current Value Open
Closed
-
OneDev
changed state to 'Released' 3 years ago
Previous Value Current Value Closed
Released
-
State changed as build #3927 is successful
-
This can now be achieved by creating a CI job running create branch step, with issue in state trigger, and branch name can be specified as
issue-@issue_number@ -
No. You need this.
This is blocking us from moving away from GitLab.
Gitlab (free edition) has a feature which automatically creates a branch and related pull request (or "merge request" as GitLab calls it).
This means it takes us 5 seconds of "zero-brain" activity to do the following:
- Create a branch from an issue
- Create a merge request that is linked to the branch
Finally, when the merge request is merged into the source branch, the issue is automatically closed.
It's like magic.
Here are the steps in GitLab
Create a new Issue

The new issue has a button to create a merge request

Fields are automatically filled in by the system
The source branch is automatically set to the default branch
The branch name is automatically set to a clean git-friendly branch name based on the issue title

The merge request is created

Finally, we click on merge
((Optionally, the approver needs to approve the merge request before the merge button is enabled, depending on project settings)._

The issue has automatically been closed

-
Previous Value Current Value Closed
Open
-
This can now be achieved by creating a CI job running create branch step, with issue in state trigger, and branch name can be specified as
issue-@issue_number@I tried this but it's not seamless because I need to name the branch. I don't want the branch to be just a number, and I don't want to spend the time to name the branch.
In GitLab, the branch name is automatically set to a clean git-friendly branch name based on the issue title, like
1260-hello-worldin the example above. -
C'mon everyone, please vote on this!
-
With build OD-7156, it is possible to use
@suggested_issue_branch@as branch name of the create branch step. This variable will be replaced with valueissue-<issue number>-<normalized issue title>. Additionally, if lite AI model is configured, the issue title will be normalized with help of LLM to generate shorter branch name, and works even for non English titles.As to auto-close issue when merge a pull request, make sure that the commit message contains issue fix info (such as fix #3: some description, or use conventional commit). This is much reliable than relying on pull request description, and the issue can also be associated with all commits related to it, even if PR is not used.
-
Previous Value Current Value Open
Closed
-
Using @suggested_issue_branch@ as the branch name does not work on OneDev 14.1.8 (self hosted).
Neither does it work inside the issue text.
What am I missing?

-
Previous Value Current Value Closed
Open
-
Why is this difficult? Why can't I just open the issue and click a buttonCreate Branchfrom inside the issue?@robin I've raised these concerns before and they haven't been adequately addressed. Even GitLab Community Edition clearly outperforms your suggestion. Can we give it proper consideration this time? -
-
Getting closer......
version: 46 jobs: - name: Auto Create Issue Branch steps: - type: CreateBranchStep name: '@suggested_issue_branch@' branchName: '@suggested_issue_branch@' branchRevision: main condition: SUCCESSFUL optional: false triggers: - type: IssueInStateTrigger state: In Progress retryCondition: never maxRetries: 3 retryDelay: 30 timeout: 14400 -
OH MY GOSH - I take everything back, I'm SO SORRY
OneDev much more powerful than GitLab - it just takes some getting used to
-
-
-
No problem. I did not mention it clearly, as I assume we are discussing in context of creating branch step, which is part of CI/CD.
The step to create pull request step is reasonable. However it will be triggered when a branch is updated, instead of issue state being transitioned, as OneDev only allows PR to be created when source branch has outstanding commits (like GitHub do).
-
Previous Value Current Value Open
Closed
| Type |
New Feature
|
| Priority |
Major
|
| Assignee |