Project

General

Profile

Pull Requests Workflow » History » Version 3

Miguel Gonzalez, 08/11/2025 02:42 AM

1 1 Miguel Gonzalez
# Pull Requests Workflow
2
* Recommended: Github Pull Requests extension for VSCode
3
## Developer Steps
4
### Starting a task
5 3 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 2 Miguel Gonzalez
1. Checkout local Development
15
1. Pull from remote Development
16
1. Checkout task_branch
17 1 Miguel Gonzalez
1. Rebase from development 
18
1. Resolve conflicts
19
20
#### Pushing code
21
* Push whenever there is a distinct and stable change (not the entire task; just a small, concise, and related chunk of changes)
22
1. Commit
23
1. Push
24
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
## Reviewer Steps
33
1. Choose an open pull request
34
1. Review changes
35
1. Recommend changes or approve pull request
36
  * Be on the lookout for the owner of the request implementing the changes (repeat steps 2 and 3 after changes are commited)
37
  * When code is acceptable, merge the branch into Development
38
39
## Keep in mind
40
* If using VSCode extension, you might need to manually refresh at some points throughout the process.
41
* 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.
42 2 Miguel Gonzalez
43
## Merge vs Rebase
44
* Merge creates a more convoluted commit and branch history but is safer.
45
* Rebase makes commit history more linear and easier to read through but can cause issues if done incorrectly.