Skip to content
Snippets Groups Projects
Verified Commit 9c1d1e62 authored by Zach DeCook's avatar Zach DeCook Committed by Newbyte
Browse files

mrtest add: Show the name of the PR before asking you to confirm (MR 25)

parent 2ec3ec63
No related branches found
No related tags found
1 merge request!25mrtest add: Show the name of the PR before asking you to confirm
Pipeline #184971 passed
......@@ -71,16 +71,20 @@ def confirm_mr_id(origin, mr_id):
"""
link = f"https://{origin['host']}/{origin['project_id']}/-/merge_requests/{mr_id}"
status = mrhlpr.mr.get_status(mr_id, origin=origin)
print("Welcome to mrtest, this tool allows downloading and installing")
print("Alpine packages from merge requests.")
print()
print("WARNING: do not use this tool unless you understand what it does,")
print("otherwise you can get tricked into installing malicious code!")
print("Malicios code may make your device permanently unusable, steal")
print("Malicious code may make your device permanently unusable, steal")
print("your passwords, and worse.")
print()
print("You are about to select and then install packages from:")
print(link)
print("\t\033[1m"+status['title']+"\033[m”")
print("\t(\033[3m" + status['source'] + ":" + status['source_branch']+"\033[m)")
print()
print("* Did you read and understand the diff?")
print("* If not, do you at least trust the person who submitted it?")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment