-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Projects List Feature #14
Open
mrthankyou
wants to merge
57
commits into
JLLeitschuh:master
Choose a base branch
from
mrthankyou:custom_lists
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
d26d6b1
Add fork:false to Github queries
mrthankyou 2e58640
Initial work setting up custom LGTM project list curation
mrthankyou d4098d3
Clean up code and get basic cache parsing file setup
mrthankyou e69003a
Continued work on custom project lists feature
mrthankyou 02f16a3
Fix misc issues
mrthankyou d3898cb
Add comment and ignore cache files
mrthankyou 8e839a8
Refactor code
mrthankyou 5c996fc
Reword text
mrthankyou 7bd1bf0
Revert stars to accurate count
mrthankyou 3f8d336
Remove comment
mrthankyou ca2bbc6
Update README.md
mrthankyou 69543fb
Add custom project list feature to search term script
mrthankyou a687d35
Save only real projects to LGTM project lists
mrthankyou a4133cc
Remove unnecessary modules
mrthankyou b5ecc8a
Create cache folder if it already doesn't exist
mrthankyou c770a2f
Add draft for build in progress guard clause
mrthankyou b83bacf
Accept both proto and real projects
mrthankyou 1b2982a
Add ProjectBuild and ProjectBuilds classes
mrthankyou 0bdd4cc
Remove logs and add new request for proto projects
mrthankyou 88e3793
Save more project data to cache files
mrthankyou f515563
Refactor how we move repos to LGTM lists
mrthankyou a853b98
Update README with LGTM build process info
mrthankyou 01842f7
Add Python documentation for functions
mrthankyou 2313cc3
Add comment
mrthankyou 32d4fd9
Remove unnecessary comments
mrthankyou 6c825f6
Add guard clauses and improved project filtering
mrthankyou 3922973
Increase timer
mrthankyou a3cf8e2
Uncomment code
mrthankyou 50fc91e
Remove unnecessary comment
mrthankyou 2cd04b5
Add HTTP retries
mrthankyou c8e33ae
Remove unnecessary prints
mrthankyou 58b4d1e
Fix various issues with moving repos to lists
mrthankyou 08f1b7c
Add HTTP retries when retrieving a project
mrthankyou 429c9ba
Add check for protoprojects
mrthankyou ba0e6f4
Handle exceptions from LGTM
mrthankyou 85b368e
Delete test.py
mrthankyou cbe5fa5
Clarify API call to LGTM
mrthankyou 1e40f13
Refactor how we build SimpleProjects
mrthankyou aa14305
Rename method
mrthankyou bedc587
Remove useless code
mrthankyou e362ef8
Rename ProjectBuild#name and refactor code
mrthankyou fda2a9f
Add SimpleProject#project_type method
mrthankyou b51fced
Continue refactoring how we determine LGTM project types
mrthankyou 0b182b9
Rename ProjectBuild#id to #key
mrthankyou c6db487
Update comment on refactoring
mrthankyou 9eb9c4a
Refactor SimpleProject to store the project type
mrthankyou 0ba1576
Simplify logic in determining project state
mrthankyou 476faeb
Add comments
mrthankyou 2c0d44b
Refactor logic with guard clauses
mrthankyou 574d0f6
Add unfollow_all_followed_projects.py script
mrthankyou 803ebd7
Convert ProjectBuild to a subclass of SimpleProject
mrthankyou 69b6614
Refactor simple project build to not raise error
mrthankyou 89a25d7
Add checks confirming LGTM project is valid
mrthankyou f44b959
Fix misc errors
mrthankyou 9ba28cf
Reword comment
mrthankyou 2e1d595
Remove unnecessary code
mrthankyou 5ea2b9a
Remove comments
mrthankyou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
from lgtm import LGTMSite, SimpleProject, LGTMDataFilters | ||
import time | ||
|
||
site = LGTMSite.create_from_file() | ||
|
||
projects = site.get_my_projects() | ||
|
||
for project in projects: | ||
simple_project = LGTMDataFilters.build_simple_project(project) | ||
if simple_project.is_valid_project: | ||
site.unfollow_repository(simple_project) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there other project types other than protoprojects and non-protoprojects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, no. But I will take a deeper look and get back to you on this.