Issue links to pull requests (OD-1352)
Ungolden opened 3 years ago

It could be useful for having multiple pull requests in different repositories fixing issue that is in the parent repository. As an added bonus, it could also support state transitions with any and all type queries for those pull requests.

  • jbauer commented 3 years ago

    I think you might be able to do that even today if your project structure is correct and if you would create issues for each task you need to do.

    So if you have

    main-project
    |--- child-a
    |--- child-b
    

    you could create the main issue in main-project and sub tasks in child-a and child-b. Now these sub-tasks need to reference the main issue via issue links (e.g. the default parent/child issue link or you create your own "tasks" issue link).

    Once you have connected your main issue with your sub tasks you can define a state transition that automatically does something once all sub tasks reach a state, e.g. change the main issue to closed if all sub tasks are closed.

    Finally you can make pull requests for each sub task and once all are merged the main issue should be automatically closed.

  • Ungolden commented 3 years ago

    Of course, I figured this out myself, but it creates unnecessary issues for every subproject, which is a clutter I would like to avoid.

  • jbauer commented 3 years ago

    Of course, I figured this out myself, but it creates unnecessary issues for every subproject, which is a clutter I would like to avoid.

    Yeah it is personal preference. Some call it clutter, some like that they can track the progress that way and to make sure nothing has forgotten. I just wanted to make sure you know about this way.

    Github mitigates the extra work a bit by allowing to write a todo list in the main issue and automatically create issues from each todo item. In OneDev you have to do it manually. Would be cool if OneDev would understand todo lists in issues and you could link a PR to a todo item of an issue. So you could do something like "Close this issue if all todos are done".

  • Robin Shen changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • Ungolden commented 2 years ago

    @robin May I ask why is this closed?

  • Robin Shen commented 2 years ago

    There is already workarounds and this will not likely to be implemented.

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (1)
Watchers (6)
Reference
OD-1352
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover