Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mrhlpr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
mrhlpr
Commits
9c1d1e62
Verified
Commit
9c1d1e62
authored
1 year ago
by
Zach DeCook
Committed by
Newbyte
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
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
!25
mrtest add: Show the name of the PR before asking you to confirm
Pipeline
#184971
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mrtest/add_packages.py
+5
-1
5 additions, 1 deletion
mrtest/add_packages.py
with
5 additions
and
1 deletion
mrtest/add_packages.py
+
5
−
1
View file @
9c1d1e62
...
...
@@ -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
(
"
Malicio
u
s 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?
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment