FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: update contributings doc · NativeScript/NativeScript@5ca6e99 · GitHub

Commit 5ca6e99

Browse files
docs: update contributings doc
1 parent 7eaba62 commit 5ca6e99

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,10 @@ git checkout release
225225
```
226226
2. Create a PR to cut the release:
227227
```
228-
git checkout -b release-version
229-
git push --set-upstream origin release-version
228+
export RELEASE_VERSION=version
229+
export BRANCH="release-${RELEASE_VERSION}"
230+
git checkout -b ${BRANCH}
231+
git push --set-upstream origin ${BRANCH}
230232
```
231233
#### Merge master in release branch or cherry-pick commits. If the commits are in release branch **skip this step**.
232234
```
@@ -266,9 +268,13 @@ git push
266268
git tag release-version
267269
git push --tags
268270
```
269-
9. Merge PR into release branch.
271+
9. Create a pull request
272+
```
273+
curl -d '{"title": "release: cut the ${RELEASE_VERSION} release","body": "docs: update changelog","head": "${BRANCH}","base": "release"}' -X POST https://api.github.com/repos/NativeScript/NativeScript/pulls -H "Authorization: token ${GIT_TOKEN}"
274+
```
275+
10. Merge PR into release branch.
270276

271-
10. If all checks has passed publish package.
277+
11. If all checks has passed publish package.
272278

273279
## Merge changes from release into master
274280

@@ -283,8 +289,9 @@ git pull
283289
```
284290
2. Create PR to merge changes back in master and preserve history:
285291
```
286-
git checkout -b merge-release-in-master
287-
git push --set-upstream origin merge-release-in-master
292+
export MERGE_BRANCH='merge-release-in-master'
293+
git checkout -b ${MERGE_BRANCH}
294+
git push --set-upstream origin ${MERGE_BRANCH}
288295
git merge origin/master
289296
```
290297
3. Resolve conflicts. Choose to keep the version of master branch. If it is needed to revert versions of modules, see at the bottom.
@@ -299,6 +306,11 @@ git commit
299306
git push
300307
```
301308

309+
6. Create pull request
310+
```
311+
git curl -d '{"title": "chore: merge release in master","body": "chore: merge release in master","head": "${MERGE_BRANCH}","base": "master"}' -X POST https://api.github.com/repos/NativeScript/NativeScript/pulls -H "Authorization: token ${GIT_TOKEN}"
312+
```
313+
302314
**If needed, revert version of modules and platform declarations to take the one from master:**
303315
```
304316
git checkout origin/master tns-platform-declarations/package.json tns-core-modules/package.json

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL