forked from osmocom/wireshark
Tools: skip commit validation for merge trains.
Skip commit validation if it looks like we're in a GitLab merge train.
(cherry picked from commit 404802dc34
)
This commit is contained in:
parent
81bcbf0ed6
commit
bf311c44a5
|
@ -209,6 +209,12 @@ is checked so that maintainers can rebase your change and make minor edits.\
|
||||||
def main():
|
def main():
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
commit = args.commit
|
commit = args.commit
|
||||||
|
|
||||||
|
if(os.getenv('CI_MERGE_REQUEST_EVENT_TYPE') == 'merge_train'):
|
||||||
|
print("If we were on the love train, people all over the world would be joining hands for this merge request.\nInstead, we're on a merge train so we're skipping commit validation checks. ")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
cmd = ['git', 'show', '--no-patch',
|
cmd = ['git', 'show', '--no-patch',
|
||||||
'--format=%h%n%an%n%ae%n%B', commit, '--']
|
'--format=%h%n%an%n%ae%n%B', commit, '--']
|
||||||
output = subprocess.check_output(cmd, universal_newlines=True)
|
output = subprocess.check_output(cmd, universal_newlines=True)
|
||||||
|
|
Loading…
Reference in New Issue