Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
e17c2ef6
Commit
e17c2ef6
authored
7 years ago
by
Spencer Smith
Browse files
Options
Downloads
Patches
Plain Diff
premoderator breaks on redirect. update to use kubespray.
parent
b73786c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/premoderator.sh
+1
-1
1 addition, 1 deletion
scripts/premoderator.sh
with
1 addition
and
1 deletion
scripts/premoderator.sh
+
1
−
1
View file @
e17c2ef6
...
...
@@ -8,7 +8,7 @@ MAGIC="${MAGIC:-ci check this}"
# Get PR number from CI_BUILD_REF_NAME
issue
=
$(
echo
${
CI_BUILD_REF_NAME
}
| perl
-ne
'/^pr-(\d+)-\S+$/ && print $1'
)
# Get the user name from the PR comments with the wanted magic incantation casted
user
=
$(
curl
${
CURL_ARGS
}
"https://api.github.com/repos/kubernetes-incubator/k
argo
/issues/
${
issue
}
/comments"
\
user
=
$(
curl
${
CURL_ARGS
}
"https://api.github.com/repos/kubernetes-incubator/k
ubespray
/issues/
${
issue
}
/comments"
\
| jq
-M
"map(select(.body | contains (
\"
$MAGIC
\"
))) | .[0] .user.login"
|
tr
-d
'"'
)
# Check for the required user group membership to allow (exit 0) or decline (exit >0) the pipeline
if
[
"
$user
"
=
"null"
]
;
then
...
...
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