mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
parent
f2e7d6b90e
commit
3106dba28c
@ -69,68 +69,68 @@ else
|
||||
fi
|
||||
|
||||
# Get vars from the GitHub API and parse the returned json
|
||||
prAuthor=$(cat ${jsonTmp} | python -c "
|
||||
prAuthor=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['user']['login'].encode('utf-8').decode('ascii','ignore')
|
||||
print (json.load(sys.stdin)['user']['login'].encode('utf-8').decode('ascii','ignore'))
|
||||
except:
|
||||
print ''
|
||||
print ('')
|
||||
")
|
||||
|
||||
prTitle=$(cat ${jsonTmp} | python -c "
|
||||
prTitle=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['title'].encode('utf-8').decode('ascii','ignore')
|
||||
print (json.load(sys.stdin)['title'].encode('utf-8').decode('ascii','ignore'))
|
||||
except:
|
||||
print ''
|
||||
print ('')
|
||||
")
|
||||
|
||||
prBody=$(cat ${jsonTmp} | python -c "
|
||||
prBody=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['body'].encode('utf-8').decode('ascii','ignore')
|
||||
print (json.load(sys.stdin)['body'].encode('utf-8').decode('ascii','ignore'))
|
||||
except:
|
||||
print ''
|
||||
print ('')
|
||||
")
|
||||
|
||||
prOriginBranch=$(cat ${jsonTmp} | python -c "
|
||||
prOriginBranch=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['head']['label'].encode('utf-8').decode('ascii','ignore')
|
||||
print (json.load(sys.stdin)['head']['label'].encode('utf-8').decode('ascii','ignore'))
|
||||
except:
|
||||
print ''
|
||||
print ('')
|
||||
" | sed -e "s/:/\//")
|
||||
|
||||
prState=$(cat ${jsonTmp} | python -c "
|
||||
prState=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['state'].encode('utf-8').decode('ascii','ignore')
|
||||
print (json.load(sys.stdin)['state'].encode('utf-8').decode('ascii','ignore'))
|
||||
except:
|
||||
print 'Unknown'
|
||||
print ('Unknown')
|
||||
")
|
||||
|
||||
prMergeableState=$(cat ${jsonTmp} | python -c "
|
||||
prMergeableState=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['mergeable_state'].encode('utf-8').decode('ascii','ignore')
|
||||
print (json.load(sys.stdin)['mergeable_state'].encode('utf-8').decode('ascii','ignore'))
|
||||
except:
|
||||
print 'Unknown'
|
||||
print ('Unknown')
|
||||
")
|
||||
|
||||
prDestinationBranch=$(cat ${jsonTmp} | python -c "
|
||||
prDestinationBranch=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['base']['ref'].encode('utf-8').decode('ascii','ignore')
|
||||
print (json.load(sys.stdin)['base']['ref'].encode('utf-8').decode('ascii','ignore'))
|
||||
except:
|
||||
print 'Unknown'
|
||||
print ('Unknown')
|
||||
")
|
||||
|
||||
prCommits=$(cat ${jsonTmp} | python -c "
|
||||
prCommits=$(cat ${jsonTmp} | python3 -c "
|
||||
try:
|
||||
import sys, json
|
||||
print json.load(sys.stdin)['commits']
|
||||
print (json.load(sys.stdin)['commits'])
|
||||
except:
|
||||
print 'Unknown'
|
||||
print ('Unknown')
|
||||
")
|
||||
|
||||
# Do some sanity checking
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user