You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, use the mentioned prefixes because CI system is ready to match with them. Be sure your feature, fix, improvement or technical branches are updated with latest changes in official `android/master`, it will give us a better chance to test your code before merging it with stable code.
32
-
* Once you are done with your code, start a pull request to merge your contribution into official `android/master`.
31
+
Please, use the mentioned prefixes because CI system is ready to match with them. Be sure your feature, fix, improvement or technical branches are updated with latest changes in official `android/main`, it will give us a better chance to test your code before merging it with stable code.
32
+
* Once you are done with your code, start a pull request to merge your contribution into official `android/main`.
33
33
* Keep on using pull requests for your next contributions although you own write permissions.
34
34
* Important to mention that ÒpenCloud Android team uses OneFlow as branching model. It's something as useful as easy:
35
35
36
-
*`master` will stay as main branch. Everything will work around it.
37
-
* Feature branch: new branch created from `master`. Once it is finished and DoD accomplished, rebased and merged into `master`.
38
-
* Release branch: will work as any feature branch. Before rebasing and merging into `master`, release tag must be signed.
39
-
* Hotfix branch: created from latest tag. Once it is finished, tag must be signed. Then, rebased and merged into `master`.
36
+
*`main` will stay as main branch. Everything will work around it.
37
+
* Feature branch: new branch created from `main`. Once it is finished and DoD accomplished, rebased and merged into `main`.
38
+
* Release branch: will work as any feature branch. Before rebasing and merging into `main`, release tag must be signed.
39
+
* Hotfix branch: created from latest tag. Once it is finished, tag must be signed. Then, rebased and merged into `main`.
40
40
* The way to get an specific version is browsing through the tags.
41
41
42
42
Interesting [link](https://www.endoflineblog.com/oneflow-a-git-branching-model-and-workflow) about this.
43
43
44
-
### 1. Fork and download android/master repository:
44
+
### 1. Fork and download android/main repository:
45
45
46
-
* Please follow [SETUP.md](https://github.com/opencloud-eu/android/blob/master/SETUP.md) to setup OpenCloud Android app work environment.
46
+
* Please follow [SETUP.md](https://github.com/opencloud-eu/android/blob/main/SETUP.md) to setup OpenCloud Android app work environment.
47
47
48
48
### 2. Create pull request:
49
49
50
-
* Create new feature, fix, improvement or technical enhancement branch from your master branch: ```git checkout -b feature/feature_name```
50
+
* Create new feature, fix, improvement or technical enhancement branch from your main branch: ```git checkout -b feature/feature_name```
51
51
* Register your changes: `git add filename`
52
52
* Commit your changes locally. Please, if posible use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) to add descriptive messages to the commits. Take the simplest approach:
53
53
- Feature commits: `feat: brief description of the changes performed`
@@ -60,17 +60,17 @@ Before we're able to merge your code into the OpenCloud app for Android, please,
60
60
* Browse to https://github.com/YOURGITHUBNAME/android/pulls and issue pull request
61
61
* Enter description and send pull request.
62
62
63
-
### 3. Update your contribution branch with master changes:
63
+
### 3. Update your contribution branch with main changes:
64
64
65
65
It is possible you see the next message from time to time.
To fix this and make sure your contribution branch is updated with official android/master, you need to perform the next steps:
70
-
* Checkout your master branch: ```git checkout master```
71
-
* Get and apply official android/master branch changes in your master branch: ```git fetch upstream``` + ```git rebase upstream/master```. Now you have your master branch updated with official master branch changes.
69
+
To fix this and make sure your contribution branch is updated with official android/main, you need to perform the next steps:
70
+
* Checkout your main branch: ```git checkout main```
71
+
* Get and apply official android/main branch changes in your main branch: ```git fetch upstream``` + ```git rebase upstream/main```. Now you have your main branch updated with official main branch changes.
72
72
* Checkout your contribution branch: ```git checkout feature/feature_name```
73
-
* Rebase contribution branch with master to put your contribution commits after the last commit of master branch, ensuring a clean commits history: ```git rebase master```. If there's some conflicts, solve it by using rebase in different steps.
73
+
* Rebase contribution branch with main to put your contribution commits after the last commit of main branch, ensuring a clean commits history: ```git rebase main```. If there's some conflicts, solve it by using rebase in different steps.
74
74
* Push branch to server: ```git push -f origin feature/feature_name```. At this point, the message ```This branch is out-of-date with the base branch``` should disappear.
**Start contributing:** Make sure you read [SETUP.md](https://github.com/opencloud-eu/android/blob/master/SETUP.md) when you start working on this project. Basically: Fork this repository and contribute back using pull requests to the master branch.
16
+
**Start contributing:** Make sure you read [SETUP.md](https://github.com/opencloud-eu/android/blob/main/SETUP.md) when you start working on this project. Basically: Fork this repository and contribute back using pull requests to the main branch.
17
17
Easy starting points are also reviewing [pull requests](https://github.com/opencloud-eu/android/pulls) and working on [contributions are welcome](https://github.com/opencloud-eu/android/issues?q=is%3Aopen+is%3Aissue+label%3A%22Contributions+are+welcome%22).
0 commit comments