Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Síle Ekaterin Liszka
Chessa
Commits
b5bd8ff2
Commit
b5bd8ff2
authored
May 09, 2022
by
Kiyoshi Aman
Browse files
Chessa::Bug: fix some oversights
parent
8990bc27
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Chessa/Bug.pm
View file @
b5bd8ff2
...
...
@@ -105,15 +105,15 @@ sub parse {
for
my
$word
(
@words
)
{
my
(
$project
,
$num
,
$type
,
$sigil
,
$group
);
match
(
$word
:
=~
)
{
case
(
/#/
)
{
case
(
/#
\d+\b
/
)
{
$type
=
'
issues
';
$sigil
=
quotemeta
'
#
';
}
case
(
/!/
)
{
case
(
/!
\d+\b
/
)
{
$type
=
'
merge_requests
';
$sigil
=
quotemeta
'
!
';
}
case
(
/\$/
)
{
case
(
/\$
\d+\b
/
)
{
$type
=
'
snippets
';
$sigil
=
quotemeta
'
$
';
}
...
...
@@ -126,15 +126,14 @@ sub parse {
}
}
(
$project
,
$num
)
=
split
/$sigil/
,
$word
;
$self
->
{
log
}("
Project defined?
"
.
defined
(
$project
));
if
(
!
defined
(
$project
))
{
if
(
!
length
(
$project
))
{
unless
(
$type
eq
'
snippets
')
{
$project
=
$self
->
{
conf
}{
default_project
};
$self
->
{
log
}("
Project undefined, setting to '
$project
'
");
(
$group
,
$project
)
=
split
m!/!
,
$project
;
if
(
!
defined
(
$project
))
{
if
(
!
length
(
$project
))
{
$project
=
$group
;
$group
=
$self
->
{
conf
}{
default_group
};
$self
->
{
log
}("
Group for project '
$project
' undefined, setting to '
$group
'
");
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment