[AAE-9462] Being able to add contributors of the current upstream (#7705)

* Being able to add contributors of the current upstream

* Fix typo

* Fix comments
This commit is contained in:
Maurizio Vitale
2022-07-08 16:13:30 +01:00
committed by GitHub
parent e321ccf479
commit 23a76e0e79
3 changed files with 92 additions and 12 deletions

View File

@@ -14,6 +14,7 @@ show_help() {
echo "-t or --token: Github ouath token"
echo "-p or --pr: Originating jsapi PR number"
echo "-v or --version version to update"
echo "-c or --commit The commit that the current build is testing"
}
set_token() {
@@ -28,6 +29,10 @@ version() {
VERSION=$1
}
set_commit() {
COMMIT=$1
}
update_dependency() {
PKG=$1
PKG_VERSION=$(npm view $PKG@$VERSION version)
@@ -91,7 +96,7 @@ update() {
git push --force origin $BRANCH_TO_CREATE
fi
node $BUILD_PIPELINE_DIR/pr-creator.js --token=$TOKEN --title="Update branch for ADF ${PR_NUMBER} and JS-API ${JS_API_INSTALLED} [ci:force]" --head=$BRANCH_TO_CREATE --repo=$NAME_REPO
node $BUILD_PIPELINE_DIR/pr-creator.js --token=$TOKEN --title="Update branch for ADF ${PR_NUMBER} and JS-API ${JS_API_INSTALLED} [ci:force]" --head=$BRANCH_TO_CREATE --repo=$NAME_REPO --commit=$COMMIT
cd ..
rm -rf $TEMP_GENERATOR_DIR
@@ -103,6 +108,7 @@ while [[ $1 == -* ]]; do
-t|--token) set_token $2; shift; shift;;
-p|--pr) set_pr $2; shift; shift;;
-v|--version) version $2; shift 2;;
-c|--commit) set_commit $2; shift 2;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 1;;
esac
done