Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/server.py
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | def backportCheck(): | ||||
if re.search('secp', line, re.IGNORECASE): | if re.search('secp', line, re.IGNORECASE): | ||||
line = re.sub(r'PR[ #]*(\d{2}\d?)([^\d]|$)', replacePRWithLink( | line = re.sub(r'PR[ #]*(\d{2}\d?)([^\d]|$)', replacePRWithLink( | ||||
'https://github.com/bitcoin-core/secp256k1/pull'), line) | 'https://github.com/bitcoin-core/secp256k1/pull'), line) | ||||
newSummary += line | newSummary += line | ||||
if foundPRs > 0: | if foundPRs > 0: | ||||
phab.updateRevisionSummary(revisionId, newSummary) | phab.updateRevisionSummary(revisionId, newSummary) | ||||
commentMessage = ("[Bot Message]\n" | |||||
"One or more PR numbers were detected in the summary.\n" | |||||
"Links to those PRs have been inserted into the summary for reference.") | |||||
phab.commentOnRevision(revisionId, commentMessage) | |||||
return SUCCESS, 200 | return SUCCESS, 200 | ||||
@app.route("/build", methods=['POST']) | @app.route("/build", methods=['POST']) | ||||
def build(): | def build(): | ||||
buildTypeId = request.args.get('buildTypeId', None) | buildTypeId = request.args.get('buildTypeId', None) | ||||
ref = request.args.get('ref', 'master') | ref = request.args.get('ref', 'master') | ||||
▲ Show 20 Lines • Show All 735 Lines • Show Last 20 Lines |