-
Name Previous Value Current Value Type
Question
New Feature
-
I would like to see this as well, this seems like very desirable functionality, but I do believe that step 4 and 5 in the use case should be reversed. As far as I know it's not possible to create a Pull request if there are no differences between source and target branch.
-
Plan to get this into next major release.
-
State changed as build OD-7256 (15.0.0) is successful
-
OneDev
changed state to 'Closed' 3 months ago
Previous Value Current Value Open
Closed
-
THANKYOU THANKYOU THANKYOU THANKYOU THANKYOU THANKYOU THANKYOU THANKYOU THANKYOU !!!!!!!!!!!!!!!!!!!!!
-
I would like to see this as well, this seems like very desirable functionality, but I do believe that step 4 and 5 in the use case should be reversed. As far as I know it's not possible to create a Pull request if there are no differences between source and target branch.
I now agree @bcverdouw. I did not know this at the time of creating the original post. (I came from GitLab where it is possible to do this and it's actually part of the regular workflow to create the branch and the merge request at the same time).
-
Thanks @robin
| Type |
New Feature
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Problem
Currently, OneDev has a built-in
CreateBranchStepthat can be used in CI/CD jobs to automatically create a branch when an issue transitions to a certain state. This is great.However, there is no equivalent
CreatePullRequestStep. To auto-create a pull request after the branch is created, you have to write aCommandStepwith acurlcall to the REST API (POST /~api/pulls), which requires:This is unnecessarily complex for what should be a basic workflow.
Desired Solution
Add a
CreatePullRequestStepas a first-class built-in step type (just likeCreateBranchStep), with the following fields:@suggested_issue_branch@main)Issue @issue_number@ - @issue_title@fix #@issue_number@Use Case
The ideal workflow that many teams expect (and that GitLab CE provides with one click) is:
CreateBranchStep)fix #123Example Build Spec (Desired)
Why This Matters
CreateBranchStepwas a fantastic addition - this is the natural next stepThank you for considering this. OneDev's CI/CD flexibility is already incredibly powerful - this would complete the picture and allow us to migrate away from
OneDevGitLab