-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to order results by last commit date
This adds the ability to clone every repo (which can be used for other purposes later) and determine the date of the last commit, which is then recorded and can be used to sort the export results. Closes #7
- Loading branch information
Showing
10 changed files
with
112 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ git+https://gitlab.com/gitmate/open-source/IGitt.git#egg=IGitt | |
requests | ||
termcolor | ||
giturlparse | ||
pyyaml | ||
gitman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
https://github.com/foo/r0: passing (last commit: 2018-11-05T08:20:37Z) | ||
https://github.com/foo/r1: passing (last commit: 2018-11-02T17:31:46Z) | ||
https://github.com/foo/r2: passing (last commit: 2018-11-06T02:27:42Z) | ||
0 Passing, 0 Failing, 0 Error, 0 Unknown of 3 Repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
https://github.com/foo/r2: passing (last commit: 2018-11-06T02:27:42Z) | ||
https://github.com/foo/r0: passing (last commit: 2018-11-05T08:20:37Z) | ||
https://github.com/foo/r1: passing (last commit: 2018-11-02T17:31:46Z) | ||
0 Passing, 0 Failing, 0 Error, 0 Unknown of 3 Repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from unittest import mock | ||
|
||
from org_status.encoders.gitman import GitManEncoder | ||
|
||
|
||
def test_get_last_commit_date(): | ||
encoder = GitManEncoder() | ||
with mock.patch('org_status.encoders.gitman.clone'): | ||
with mock.patch('org_status.encoders.gitman.os.chdir'): | ||
with mock.patch('subprocess.check_output', | ||
return_value='1542514751'): | ||
output = encoder.get_last_commit_date(mock.Mock(), 'foo') | ||
assert output == 1542514751 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters