Project

General

Profile

Pull Requests Workflow » History » Version 7

Miguel Gonzalez, 08/11/2025 11:56 AM

1 1 Miguel Gonzalez
# Pull Requests Workflow
2
* Recommended: Github Pull Requests extension for VSCode
3
## Developer Steps
4
### Starting a task
5 4 Miguel Gonzalez
* Create a branch from development named 'task_number' - 'short_description' (or just the description if there is no associated task number)
6 2 Miguel Gonzalez
``` shell
7
git checkout -b new_branch
8
```
9 1 Miguel Gonzalez
10 2 Miguel Gonzalez
11
12 1 Miguel Gonzalez
### Working a task
13
#### Daily and before any commit
14 5 Miguel Gonzalez
1. ```mergeFromDev``` (or ```rebaseFromDev```)
15 7 Miguel Gonzalez
  * git checkout Development
16
  * git pull
17
  * git checkout task_branch
18
  * git merge Development
19
2. Resolve conflicts
20 4 Miguel Gonzalez
21 1 Miguel Gonzalez
#### Pushing code
22 5 Miguel Gonzalez
* Push whenever there is a distinct and stable change (not the entire task; just a specific, concise, and related chunk of changes)
23
1. ```commitAndPush```
24 1 Miguel Gonzalez
1. Create pull request
25
1. Set yourself as owner of the pull request
26
* Be on the lookout for changes requested
27
28
#### Finishing a task
29
* When the task is considered finished and closed, the branch is deleted
30
* Any future fixes to this functionality will be considered a new task with a new branch
31
32 6 Miguel Gonzalez
### Pull Request Best Practices
33
* Write a clear, concise, and descriptive title
34
* Link to issue # in description
35
* Reproduction steps if applicable
36 1 Miguel Gonzalez
37
## Reviewer Steps
38
1. Choose an open pull request
39
1. Review changes
40
1. Recommend changes or approve pull request
41 7 Miguel Gonzalez
  * Be on the lookout for the owner of the request implementing the changes (repeat steps 2 and 3 after changes are committed)
42 1 Miguel Gonzalez
  * When code is acceptable, merge the branch into Development
43
44
## Keep in mind
45
* If using VSCode extension, you might need to manually refresh at some points throughout the process.
46
* Once you've created a pull request, you can push commits from your task branch to add them to your existing pull request. These commits will appear in chronological order within your pull request and the changes will be visible in the "Files changed" tab.
47
48 2 Miguel Gonzalez
## Merge vs Rebase
49
* Merge creates a more convoluted commit and branch history but is safer.
50 5 Miguel Gonzalez
* Rebase makes commit history more linear and easier to read through but can cause issues if done incorrectly.
51
* Rebase can make solving conflicts more complicated. If there are multiple commits before rebasing, will need to resolve merge conflicts for each one. Can be mitigating by always rebasing before committing.