Skip to content

Commit 4413cb6

Browse files
authored
Merge pull request #65 from ggoffy/master
updated reading data from github: pulled_at/updated_at
2 parents b23f246 + 97fd1c4 commit 4413cb6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

class/RepositoriesHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ public function updateTableRepositories($user, $repos = [], $updateAddtionals =
156156
$repositoriesObj = $repositoriesAll[$i];
157157
}
158158
if ($repoId > 0) {
159-
if (\is_string($repo['updated_at'])) {
159+
if (\is_string($repo['pushed_at'])) {
160+
$updatedAtNew = \strtotime($repo['pushed_at']);
161+
} elseif (\is_string($repo['updated_at'])) {
160162
$updatedAtNew = \strtotime($repo['updated_at']);
161163
}
162164
if ($updatedAtOld != Constants::STATUS_OFFLINE && $updatedAtOld != $updatedAtNew) {

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- replaced Common/XoopsConfirm by Common/Confirm (mamba/goffy)
1313
- uninstall with bak-file creation (mamba/goffy)
1414
- adapted update due to new semantic versioning (goffy)
15+
- updated reading data from github: pulled_at/updated_at (goffy)
1516

1617
===================================================================
1718
2021/03/31 Version 1.04 RC1

0 commit comments

Comments
 (0)