-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial work on v2 candidate * Additional changes for v2 * Reworked env and travis * Added Changelog
- Loading branch information
1 parent
75cebfa
commit 9952389
Showing
10 changed files
with
379 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.DS_Store | ||
.idea | ||
logs | ||
.env |
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
language: bash | ||
language: python | ||
|
||
python: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
|
||
install: | ||
- pip install -r requirements.txt | ||
|
||
script: | ||
- shellcheck github-archive.sh | ||
- shellcheck src/legacy/github-archive.sh | ||
- pylint src/github_archive.py |
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,21 @@ | ||
# CHANGELOG | ||
|
||
## 2.0.0 (2020-05-18) | ||
|
||
* Rewrote the script in Python. | ||
* Added concurrency to clone/pull changes incredibly fast for large amounts of repos and gists. | ||
* Added even more custimization and control | ||
* Uniform log naming, better logging details | ||
* Added changelog | ||
|
||
## 1.1.0 (2020) | ||
|
||
* Added more customization options | ||
* Allowed organization and gists to be cloned/pulled | ||
* Allowed private repos to be cloned/pulled | ||
* Bug fixes | ||
|
||
## 1.0.0 (2019) | ||
|
||
* Wrote the script in Bash with Python as dependency | ||
* Added some customization options |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python-dotenv | ||
PyGithub | ||
pylint |
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,44 @@ | ||
## GITHUB ARCHIVE CONFIGURATION ## | ||
# Only edit the values of each variable, leaving variable names alone. | ||
|
||
###################################################################### | ||
## USER CONFIGURATION ## | ||
|
||
# Your GitHub token | ||
TOKEN="" | ||
|
||
# Enter "enable" to clone personal repos. Default: "enable" | ||
USER_CLONE_ON="enable" | ||
|
||
# Enter "enable" to pull personal repos. Default: "enable" | ||
USER_PULL_ON="enable" | ||
|
||
# Enter "enable" to clone gists. Default "disable" | ||
GISTS_CLONE_ON="disable" | ||
|
||
# Enter "enable" to pull gists. Default "disable" | ||
GISTS_PULL_ON="disable" | ||
|
||
###################################################################### | ||
## ORGANIZATIONAL CONFIGURATION ## | ||
|
||
# Add each org name separated by comma. eg: "org1, org2, org3" | ||
ORGS="" | ||
|
||
# Enter "enable" to clone organization repos. Organization names must be entered in the "ORGS" variable below. Default: "disable" | ||
ORGS_CLONE_ON="disable" | ||
|
||
# Enter "enable" to pull organization repos. Organization names must be entered in the "ORGS" variable below. Default: "disable" | ||
ORGS_PULL_ON="disable" | ||
|
||
###################################################################### | ||
## ARCHIVE CONFIGURATION ## | ||
|
||
# Number of days logs will be retained for. Default: "30" | ||
LOG_LIFE="30" | ||
|
||
# Where your archive will be housed. Default: "~/github-archive" | ||
LOCATION="~/github-archive" | ||
|
||
# Which branch each repo will pull from. Default: "master" | ||
BRANCH="master" |
Oops, something went wrong.