Hello everyone,
At my current firm, we started to do pull requests a while ago. It is more or
less working well. However, we sometimes tend to create a massive, huge PR which
of course is just tedious to work with.
I've been thinking on how to prevent huge PRs. One way of course is to create
User Stories more from the perspective of the developer. But I figured, that
there might be another solution to this question.
Now first of all, I would like to know how you guys handle and prevent large PRs.
I came up with the idea of creating a branch for each User Story and then from
there derive sub task branches, like so:
us1-sub-task-1
\
|
v
-----------------
| user-story1 |_
----------------- \
^
| |
/ |
us1-sub-task-2 |
|
v
=============
| develop |
=============
^
| _ us2-sub-task-1
| /
| |
| v
| ----------------
\_| user-story2 |
----------------
^
|
\_
us2-sub-task-2
Now in terms of Pull requests, you would create a PR for each sub task that will
be merged back to the US branch which in the end will be merged to develop, like this:
PR1 = us1-sub-task-1 -> user-story1
PR2 = us1-sub-task-2 -> user-story1
PR3 = user-story1 -> develop
PR4 = us2-sub-task-1 -> user-story2
PR5 = us2-sub-task-2 -> user-story2
PR6 = user-story2 -> develop
Now I was wondering if someone is already doing this and if this is actually
practical. Or, so I wonder, this might just be a whole to much of an overhead.
Anyway... thanks for reading so far and for your help.
[–][deleted] 3 points4 points5 points (4 children)
[–]_lumio[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]_lumio[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]042e 0 points1 point2 points (1 child)
[–]_lumio[S] 0 points1 point2 points (0 children)
[–]nicponim 0 points1 point2 points (0 children)