-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ya-optimise-build
- Loading branch information
Showing
30 changed files
with
266 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "src/bp/professional"] | ||
path = src/bp/professional | ||
url = git@github.com:botpress/botpress-professional.git | ||
[submodule "src/bp/pro"] | ||
path = src/bp/pro | ||
url = git@github.com:botpress/botpress-pro.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
DOCS_VERSION_COMMAND="run version" | ||
|
||
echo "Select an option for release:" | ||
echo | ||
|
||
select VERSION in patch minor major "Specific Version" | ||
do | ||
echo | ||
if [[ $REPLY =~ ^[1-4]$ ]]; then | ||
if [[ $REPLY == 4 ]]; then | ||
read -p "Enter a specific version: " -r VERSION | ||
echo | ||
if [[ -z $REPLY ]]; then | ||
VERSION=$REPLY | ||
fi | ||
fi | ||
|
||
read -p "Create $VERSION commit - Are you sure ... (y/n) " -n 1 -r | ||
echo | ||
|
||
if [[ $REPLY =~ ^[Yy]$ || -z $REPLY ]]; then | ||
# Bump version | ||
yarn version --new-version $VERSION --no-git-tag-version | ||
NEW_VERSION=$(node -p "require('./package.json').version") | ||
cd docs/guide/website && yarn $DOCS_VERSION_COMMAND $NEW_VERSION && cd ../../.. | ||
|
||
# Create commit | ||
git add -A | ||
git commit -m "v$NEW_VERSION" | ||
git tag -a "v$NEW_VERSION" -m "created tag v$NEW_VERSION" | ||
echo "-----" | ||
echo "Finished, commit created, need to push to origin/master directly" | ||
else | ||
echo Cancelled | ||
fi | ||
break | ||
else | ||
echo Invalid \"${REPLY}\" | ||
echo "To continue, please enter one of the options (1-4):" | ||
echo | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const BotpressEditions = { ce: 'Community', pro: 'Professional', ee: 'Enterprise' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* The object that wraps HTTP errors. | ||
* | ||
* @constructor | ||
* @param message - The error message that will be sent to the end-user | ||
* @param statusCode - The HTTP status code | ||
* @param errorCode - Botpress error codes e.g. BP_0001, BP_0002, etc. | ||
*/ | ||
export class ResponseError extends Error { | ||
errorCode: string | ||
statusCode: number | ||
|
||
skipLogging = false | ||
|
||
constructor(message: string, statusCode: number, errorCode: string) { | ||
super(message) | ||
Error.captureStackTrace(this, this.constructor) | ||
this.statusCode = statusCode | ||
this.errorCode = errorCode | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.