We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fbc72c commit 1d97cd8Copy full SHA for 1d97cd8
lib/EvalbotExecuter.pm
@@ -108,6 +108,9 @@ sub run {
108
my $raw_link = (values %{$json->{files}})[0]{links}->{self}->{href};
109
$program = `curl -s \Q$raw_link\E`;
110
}
111
+ } elsif ($program =~ /^https:\/\/gitlab\.com\/snippets\/(\d+)$/) {
112
+ $program = decode_utf8 `curl --fail -s https://gitlab.com/snippets/\Q$1\E/raw`;
113
+ return 'snippet not found' if $program eq '';
114
115
return _fork_and_eval($program, $executer, $ename);
116
0 commit comments