Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Commit d79a979

Browse files
author
Nikita Chernyi
committed
Added support for GitHub, updated README link to stable release
1 parent 4edd3aa commit d79a979

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
* Commits that file with commit summary `Release v<NEW_VERSION>`
1919
* Creates new tag with release version and changes list as message
2020
* Pushes commit with new tag and updated changelog
21-
* Opens Gitlab Merge Request (url generated from origin url) with predefined title and branches in browser
21+
* Opens Gitlab Merge Request or GitHub Pull Request (url generated from origin url) with predefined title and branches in browser
2222

2323
**PLEASE**, use http://semver.org/
2424

2525
## Integration with git
2626

2727
```bash
28-
sudo curl -o /usr/local/bin/git-bump -s https://raw.githubusercontent.com/titanium-codes/bump.sh/master/bin && sudo chmod +x /usr/local/bin/git-bump
28+
sudo curl -o /usr/local/bin/git-bump -s https://raw.githubusercontent.com/titanium-codes/bump.sh/stable/bin && sudo chmod +x /usr/local/bin/git-bump
2929
git config --global alias.bump "git-bump"
3030
```
3131

bin

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@ echo -e "$PREFIX Pushing..."
5050
git push origin --follow-tags
5151

5252
# Open merge request url with preset changes
53-
xdg-open "https://$REPO_URL/merge_requests/new?utf8=✓&merge_request[source_branch]=$BRANCH_1&merge_request[target_branch]=$BRANCH_2&merge_request[title]=$NEW_VERSION"
53+
if [[ $REPO_URL == *"gitlab"* ]]; then
54+
xdg-open "https://$REPO_URL/merge_requests/new?utf8=✓&merge_request[source_branch]=$BRANCH_1&merge_request[target_branch]=$BRANCH_2&merge_request[title]=$NEW_VERSION"
55+
elif [[ $REPO_URL == *"github"* ]]; then
56+
xdg-open "https://$REPO_URL/compare/$BRANCH_1...$BRANCH_2&pull_request[title]=$NEW_VERSION"
57+
fi
5458
echo -e "$PREFIX Don't forget to notify your teammates about new release!"

0 commit comments

Comments
 (0)