@@ -184,9 +184,10 @@ def say_thanks_and_close_issue(weekly_date)
184184 contributors . each_key do |key |
185185 contributors_list << "@#{ key } "
186186 end
187+ url = weekly_url ( weekly_date )
187188 comment = <<-EOS
188189:fireworks:Congratulations!
189- :scroll:MSBU Weekly #{ weekly_date } is published on <https://msbu-tech.github.io/weekly/ #{ weekly_date } -weekly.html >.
190+ :scroll:MSBU Weekly #{ weekly_date } is published on <#{ url } >.
190191:thumbsup:Thanks #{ contributors_list . join ', ' } for your great contributions!
191192 EOS
192193 # say thanks
@@ -210,7 +211,7 @@ Post your entry following the instruction of <https://github.com/msbu-tech/weekl
210211 show_success
211212end
212213
213- def find_issue_link ( )
214+ def find_issue_link
214215 client = Octokit ::Client . new ( :access_token => get_access_token )
215216 # find issue
216217 issues = client . list_issues ( get_weekly_repo , options = { :state => "open" } )
@@ -222,15 +223,21 @@ def find_issue_link()
222223 "https://github.com/#{ get_weekly_repo } /issues/#{ number } "
223224end
224225
226+ def weekly_url ( weekly_date )
227+ "https://msbu-tech.github.io/weekly/#{ weekly_date } -weekly.html"
228+ end
229+ 225230def complete_wunderlist ( weekly_date )
226231 wl = Wunderlist ::API . new ( {
227232 access_token : ENV [ "WLIST_ACCESS_TOKEN" ] ,
228233 client_id : ENV [ "WLIST_CLIENT_ID" ]
229234 } )
230235
231236 tasks = wl . tasks ( [ "🗑Working" ] )
237+ url = weekly_url ( weekly_date )
232238 tasks . each do |t |
233239 if t . title . eql? ( "MSBU Tech Weekly" ) && weekly_date . eql? ( t . due_date )
240+ t . note . content = "MSBU Weekly #{ weekly_date } is published on <#{ url } >."
234241 t . completed = true
235242 t . save
236243 show_info ( "Completing wunderlist task..." )
0 commit comments