opensource-place/backend

Update projects from GitHub API

Opened this issue · 2 comments

Platformda ekli olan projelere her girildiğinde veri tabanındaki Last Update Date alanı 24 saatten önce bir tarih ise GitHub API'dan tekrar çekip veri tabanımızdaki proje dökümanını güncelleyip sonrasında gösterme

Bunun için bir tane fonksiyon yazsak back-end'te 12 saatte bir dönücek ve her döndüğünde güncellenmemişleri güncelliycek? ne dersiniz? @ahmetbcakici @altaysimsek

{
  repoName: "RepoAdı",
  repoAuthor: "YazarAdı",
  repoPath: "repopath",
  issues: [ ... ],
  contributors : [ ... ],
  lastUpdate: "HH-MM",
}

Her 12 saatte dönüceği için lastUpdate'e 12 saat eklendiğinde o anki saatten azsa bir şey yapmıycak ama eğer alast update 12 saati geçtiyse hem projeyi update edicek hem de lastUpdate'i güncelleyecek