jboss-set / auxilia Goto Github PK
View Code? Open in Web Editor NEWAuxility scripts
Auxility scripts
I am using pr-merge
script to review PR in my local branch:
[๐ฉ lgao@lgao vertx-mail-client]$ git status
On branch review_pr_122
nothing to commit, working tree clean
[๐ฉ lgao@lgao vertx-mail-client]$ git remote -v
fork [email protected]:gaol/vertx-mail-client.git (fetch)
fork [email protected]:gaol/vertx-mail-client.git (push)
origin https://github.com/vert-x3/vertx-mail-client (fetch)
origin https://github.com/vert-x3/vertx-mail-client (push)
[๐ฉ lgao@lgao vertx-mail-client]$ /sources/jboss-set/auxilia/pr-merge origin 122
Merging 122 from origin onto review_pr_122
Retrieving PR information from https://api.github.com/repos///pulls/122...Done.
Git commit message will be: Merge pull request #122 from null null
Continue...
Both OWNER
and REPO
are null in case that the FETCH_URL
starts with https
Create script that will automate cert generation and update of JDK store.
Some github repositories are relocated to another organization, which will lead to the getting PR metadata failure:
[๐ฉ lgao@lgao vertx]$ git status
On branch pulls/3228
nothing to commit, working tree clean
[๐ฉ lgao@lgao vertx]$ git remote -v
origin https://github.com/eclipse/vert.x (fetch)
origin https://github.com/eclipse/vert.x (push)
[๐ฉ lgao@lgao vertx]$ bash -x /sources/jboss-set/auxilia/pr-merge origin 3228
+ sanity_check
+ isJqInstalled
+ local jq_url=https://stedolan.github.io/jq
+ which jq
+ '[' 0 '!=' 0 ']'
+ isNetrcPresent
+ local netrc_file=/home/lgao/.netrc
+ '[' '!' -e /home/lgao/.netrc -o '!' -r /home/lgao/.netrc ']'
+ set -eo pipefail
+ '[' 2 '!=' 2 ']'
++ git rev-parse --abbrev-ref HEAD
+ readonly BRANCH=pulls/3228
+ BRANCH=pulls/3228
+ readonly REMOTE=origin
+ REMOTE=origin
+ readonly PR_ID=3228
+ PR_ID=3228
+ '[' -z origin ']'
+ '[' -z 3228 ']'
+ echo 'Merging 3228 from origin onto pulls/3228'
Merging 3228 from origin onto pulls/3228
++ git remote -v
++ grep '^origin[ ]*'
++ grep fetch
++ cut -f2
++ cut '-d ' -f1
+ readonly FETCH_URL=https://github.com/eclipse/vert.x
+ FETCH_URL=https://github.com/eclipse/vert.x
+ '[' -z https://github.com/eclipse/vert.x ']'
++ echo https://github.com/eclipse/vert.x
++ sed 's/\//:/g'
+ readonly URL_PARSE=https:::github.com:eclipse:vert.x
+ URL_PARSE=https:::github.com:eclipse:vert.x
+ readonly REPO_PART=vert.x
+ REPO_PART=vert.x
++ echo vert.x
++ sed s/.git//
+ readonly REPO=vert.x
+ REPO=vert.x
++ echo https:::github.com:eclipse:vert.x
++ sed s/:vert.x//
+ readonly URL_LEFT=https:::github.com:eclipse
+ URL_LEFT=https:::github.com:eclipse
+ readonly OWNER=eclipse
+ OWNER=eclipse
+ '[' -z eclipse -o -z vert.x ']'
+ readonly PR_GITHUB_API_URL=https://api.github.com/repos/eclipse/vert.x/pulls/3228
+ PR_GITHUB_API_URL=https://api.github.com/repos/eclipse/vert.x/pulls/3228
+ set -e
+ echo -n 'Retrieving PR information from https://api.github.com/repos/eclipse/vert.x/pulls/3228...'
Retrieving PR information from https://api.github.com/repos/eclipse/vert.x/pulls/3228...++ curl -s -n https://api.github.com/repos/eclipse/vert.x/pulls/3228
+ readonly 'PULL={
"message": "Moved Permanently",
"url": "https://api.github.com/repositories/1911523/pulls/3228",
"documentation_url": "https://developer.github.com/v3/#http-redirects"
}'
+ PULL='{
"message": "Moved Permanently",
"url": "https://api.github.com/repositories/1911523/pulls/3228",
"documentation_url": "https://developer.github.com/v3/#http-redirects"
}'
++ grep 'Not Found'
++ echo '{' '"message":' '"Moved' 'Permanently",' '"url":' '"https://api.github.com/repositories/1911523/pulls/3228",' '"documentation_url":' '"https://developer.github.com/v3/#http-redirects"' '}'
+ '[' 0 -ne 0 -o '' '!=' '' ']'
+ echo Done.
Done.
+ set +e
++ echo '{' '"message":' '"Moved' 'Permanently",' '"url":' '"https://api.github.com/repositories/1911523/pulls/3228",' '"documentation_url":' '"https://developer.github.com/v3/#http-redirects"' '}'
++ jq -r .head.label
++ echo '{' '"message":' '"Moved' 'Permanently",' '"url":' '"https://api.github.com/repositories/1911523/pulls/3228",' '"documentation_url":' '"https://developer.github.com/v3/#http-redirects"' '}'
++ jq -r .title
+ readonly 'MSG=Merge pull request #3228 from null null'
+ MSG='Merge pull request #3228 from null null'
+ echo 'Git commit message will be: Merge pull request #3228 from null null'
Git commit message will be: Merge pull request #3228 from null null
+ echo -n Continue...
Continue...+ read _
Since #18 read product version from config files.
The one it depends on is feature-pack/src/main/resources/content/version.txt
which no longer exists in jboss-eap7 7.4.x branch.
eap-version-bump.sh
doesn't do the version string replacement to galleon-pack/src/main/resources/packages/version.txt/content/version.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.