1 Star 0 Fork 0

RX91/r8

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PRESUBMIT.py 648 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rico Wind 提交于 2018-11-30 20:43 +08:00 . Presubmit for "do not merge" in cl descrition
# Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
def CheckDoNotMerge(input_api, output_api):
for l in input_api.change.FullDescriptionText().splitlines():
if l.lower().startswith('do not merge'):
msg = 'Your cl contains: \'Do not merge\' - this will break WIP bots'
return [output_api.PresubmitPromptWarning(msg, [])]
return []
def CheckChangeOnUpload(input_api, output_api):
results = []
results.extend(CheckDoNotMerge(input_api, output_api))
return results
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/rx91/r8.git
git@gitee.com:rx91/r8.git
rx91
r8
r8
master

搜索帮助