Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F116306
check-changelog
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
481 B
Referenced Files
None
Subscribers
None
check-changelog
View Options
#!/bin/sh
echo
$CI_MERGE_REQUEST_IID
ls changelog.d
count
=
0
for
i
in
add remove fix security skip
;
do
[
-f changelogs/
"
$CI_MERGE_REQUEST_IID
"
.
"
$i
"
]
retcode
=
$?
if
[
$retcode
-eq
0
]
;
then
echo
"found
$CI_MERGE_REQUEST_IID
.
$i
"
else
echo
"no
$CI_MERGE_REQUEST_IID
.
$i
"
fi
count
=
$((
$count
+
1
-
$retcode
))
done
if
[
$count
-eq
1
]
;
then
echo
"ok"
exit
0
else
echo
"must have a changelog entry or explicitly skip it"
exit
1
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Dec 1, 4:38 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41602
Default Alt Text
check-changelog (481 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment