File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub struct Hero {
24
24
25
25
#[ derive( Serialize , Deserialize , Clone ) ]
26
26
pub struct Pulls {
27
- pub url : String ,
27
+ pub html_url : String ,
28
28
pub title : String ,
29
29
}
30
30
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ pub async fn run(
60
60
for _ in 0 ..3 {
61
61
hero. pulls . push ( Pulls {
62
62
title : "" . to_string ( ) ,
63
- url : "" . to_string ( ) ,
63
+ html_url : "" . to_string ( ) ,
64
64
} )
65
65
}
66
66
}
@@ -70,8 +70,10 @@ pub async fn run(
70
70
71
71
if hero. pulls [ 0 ..2 ] . len ( ) == index {
72
72
if !hero. pulls [ index] . title . is_empty ( ) {
73
- pull_req_cloned +=
74
- & format ! ( "<:reply:1029065416905076808>[{}]({})\n " , pr. title, pr. url) ;
73
+ pull_req_cloned += & format ! (
74
+ "<:reply:1029065416905076808>[{}]({})\n " ,
75
+ pr. title, pr. html_url
76
+ ) ;
75
77
} else {
76
78
pull_req_cloned += "<:reply:1029065416905076808>Not Available\n " ;
77
79
}
@@ -80,7 +82,7 @@ pub async fn run(
80
82
} else {
81
83
pull_req_cloned += & format ! (
82
84
"<:reply_multi:1029067132572549142>[{}]({})\n " ,
83
- pr. title, pr. url
85
+ pr. title, pr. html_url
84
86
) ;
85
87
}
86
88
@@ -123,7 +125,7 @@ pub async fn run(
123
125
c. create_action_row ( |r| {
124
126
r. add_button ( link_button (
125
127
"Hero Page" ,
126
- format ! ( "https://github.com /{}" , hero. github) ,
128
+ format ! ( "https://novu.co/contributors /{}" , hero. github) ,
127
129
"🔗" . parse ( ) . unwrap ( ) ,
128
130
) )
129
131
} )
You can’t perform that action at this time.
0 commit comments