Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
This is a simple wrapper for GitHub's v3 API. It is in the EARLY stages of development. Knowing a little about GitHub's API will aid in its use.
As of right now, the library has not reached a version which I consider worth pushing to RubyGems.org. Feel free to clone the repository and build the gem and install it if you wish:
$ git clone https://github.com/caseyscarborough/github && cd github
$ gem build github-api-v3.gemspec
$ gem install github-api-v3-0.0.1.gem
Add the following line to your gemfile:
gem 'github-api-v3'
or install it manually:
$ gem install github-api-v3
Then you can proceed to use it in the following manner:
Returns a Hash containing information about a user.
user = GitHub.user('caseyscarborough')
user.login # => "caseyscarborough"
user.name # => "Casey Scarborough"
user.html_url # => "https://github.com/caseyscarborough"
user.following # => 23
# etc...
You can find the available attributes here.
Returns an array of events for a particular user.
events = GitHub.events('caseyscarborough')
events.each { |e| puts e.type }
Returns an array of followers for a user.
followers = GitHub.followers('caseyscarborough')
followers.each { |f| puts f.login }
Returns an array of repositories that belong to a user.
repos = GitHub.repos('caseyscarborough')
repos.each { |r| puts r.name }
Some methods, such as retrieving private repos or emails, require authentication. To create one of these requests, you'll need to pass in your login and access token. You can create a personal access token on your account page.
client = GitHub::Client.new(login: 'username', access_token: 'abcdefghijklmnopqrstuvwxyz12345')
client.emails # => ["email@example.com", "email2@example.com"]
More functionality to come.
The better question is... What's not to do? Any functionality of the API listed at developer.github.com that isn't currently in effect.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that github-api-v3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.