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
7c83f534
Commit
7c83f534
authored
May 09, 2022
by
Kiyoshi Aman
Browse files
Chessa::Bug::Adelie: oops, not blessed yet
parent
d15057af
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Chessa/Bug/Adelie.pm
View file @
7c83f534
...
...
@@ -25,7 +25,7 @@ sub new {
$self
->
{
irc
}
=
$self
->
{
conf
}{
irc
};
$self
->
{
projects
}
=
{};
$self
->
load_projects
(
$http
,
'
https://git.adelielinux.org/api/v4/projects
');
load_projects
(
$self
,
$http
,
'
https://git.adelielinux.org/api/v4/projects
');
return
bless
$self
,
$class
||
ref
$class
;
}
...
...
@@ -55,7 +55,7 @@ sub load_projects {
on_response
=>
sub
{
my
(
$response
)
=
@_
;
$self
->
log
("
Fetched projects from
$uri
");
$self
->
projects
(
$http
,
$response
);
projects
(
$self
,
$http
,
$response
);
},
on_error
=>
sub
{
my
(
$error
)
=
@_
;
$self
->
error
("
Couldn't fetch projects:
$error
");
...
...
@@ -75,7 +75,7 @@ sub projects {
}
my
$link
=
$response
->
header
('
Link
');
if
(
length
(
$link
))
{
$self
->
load_projects
(
$http
,
$link
);
load_projects
(
$self
,
$http
,
$link
);
}
}
...
...
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