jone / github-watchlist Goto Github PK
View Code? Open in Web Editor NEWManage your watched GitHub repositories per script
License: Other
Manage your watched GitHub repositories per script
License: Other
Hey @jone, although a software license is mentioned in the README, would you mind adding a file LICENSE
to the code base, so it might entitle me to contribute to this useful piece of software? ๐
just a thank you for a great thing you produced
I'm in ~8 orgs and only one of them is listed when I run update-watchlist. Unfortunately it's not the org I wanted to change subscriptions for :/
Logging gets clugged and showing this loginfo is IMHO rather meaningless...
Maybe you have to define your own loglevel...
Hey @jone
Would you be interested in a pull request which makes the code base compatible with Python > 3.6 and drops compatibility for older Pythons?
TBH I haven't done any troubleshooting and I need to go to bed, but I just tried installing as per README instructions and got a dependnacy issue when running bin/buildout
so thought I'd post it here...
Here's the tail end of the stacktrace (but I can post more if you want - seems to be pretty clear what the issue is)
pkg_resources.VersionConflict: (six 1.1.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.4'))
An error occurred when trying to install unittest2 1.0.1. Look above this message for any errors that were output by easy_install.
While:
Installing test.
Getting distribution for 'unittest2'.
Error: Couldn't install: unittest2 1.0.1
I fixed that with:
sudo pip install six --upgrade
Install seemed to complete but there were errors such as:
Installed /tmp/easy_install-TQu5dX/unittest2-1.0.1/.eggs/linecache2-1.0.0-py2.7.egg
/turnkey/non/github-watchlist/eggs/setuptools-15.2-py2.7.egg/setuptools/dist.py:291: UserWarning: The version specified (<__main__.late_version instance at 0x2b1b680>) is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
And
Installed /tmp/easy_install-HqH4Nr/linecache2-1.0.0/.eggs/pbr-0.10.8-py2.7.egg
SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/linecache2/tests/inspect_fodder2.py', 102, 25, 'def keyworded(*arg1, arg2=1):\n'))
SyntaxError: ('invalid syntax', ('/turnkey/non/github-watchlist/eggs/tmpvtTZUo/linecache2-1.0.0-py2.7.egg/linecache2/tests/inspect_fodder2.py', 102, 25, 'def keyworded(*arg1, arg2=1):\n'))
But I reran it and it all seems ok now... So I continued on and all seemed well until I tried to add a heap of repos to my watchlist. All looks good until it actually tries to add (after I say "Yes").
Traceback (most recent call last):
File "bin/update-watchlist", line 14, in <module>
sys.exit(watchlist.command.update_command())
File "/turnkey/non/github-watchlist/watchlist/command.py", line 93, in update_command
UpdateCommand(config)(confirmed=args.confirmed)
File "/turnkey/non/github-watchlist/watchlist/command.py", line 27, in __call__
SubscriptionsUpdater(self.config).update(data)
File "/turnkey/non/github-watchlist/watchlist/updater.py", line 12, in update
self.create_subscriptions(data['watch'])
File "/turnkey/non/github-watchlist/watchlist/updater.py", line 21, in create_subscriptions
payload=watch_payload)
File "/turnkey/non/github-watchlist/watchlist/github.py", line 20, in put
response.raise_for_status()
File "/turnkey/non/github-watchlist/eggs/requests-2.6.2-py2.7.egg/requests/models.py", line 851, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found
I was just notified by GitHub that using the access_token
query parameter is deprecated and the Authorization HTTP header should be used instead.
Hi mbaechtold,
On April 28th, 2020 at 06:52 (UTC) your personal access token (github-watchlist) using python-requests/2.22.0 was used as part of a query parameter to access an endpoint through the GitHub API:
https://api.github.com/user/subscriptions
Please use the Authorization HTTP header instead, as using the
access_token
query parameter is deprecated. If this token is being used by an app you don't have control over, be aware that it may stop working as a result of this deprecation.Depending on your API usage, we'll be sending you this email reminder on a monthly basis for each token and User-Agent used in API calls made on your behalf.
Just one URL that was accessed with a token and User-Agent combination will be listed in the email reminder, not all.Visit https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param for more information about suggested workarounds and removal dates.
Thanks,
The GitHub Team
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.