8000 GitHub - darxtrix/autorel: Syslog-ng-autorel project code
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 2, 2018. It is now read-only.

darxtrix/autorel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syslog-ng-autorel

https://github.com/balabit/syslog-ng/wiki/GSoC2016-Idea-&-Project-list#project-automated-release-generation-for-syslog-ng

Playing with github client

73E7
>>> # Make some imports
>>> from clients.github_client import Github
>>> from clients.pull_requests import PullRequests
>>> from clients.commits import Commits

>>> # Config for github client
>>> endpoint = "https://api.github.com"
>>> port = "443"
>>> user_agent = "syslong-ng/autorel"
>>> login = 'dummy'
>>> password = 'dummy_password'

>>> # Create a client instance
>>> cli = Github(endpoint,port,login,password,None,None,user_agent,None)

>>> # Create a pull request client
>>> pull = PullRequests(cli)

>>> # Fetch a specific pull request
>>> p = pull.pullDetails('balabit/syslog-ng', '1059', state='closed')
>>> p.title.value
'F/dbparser pdbload refact'
>>> p.commits.value
4

>>> # Fetch commits on a pull request
>>> c = pull.getCommits('balabit/syslog-ng', '1059')
>>> c
[<clients.commits.Commit object at 0x7fdb18b05668>, <clients.commits.Commit object at 0x7fdb17040c18>, 
<clients.commits.Commit object at 0x7fdb17a80eb8>, <clients.commits.Commit object at 0x7fdb1704cf98>]
>>> c[0].sha.value
'9058e8111993231d9220da354ad5fa5b675b7a1e'

About

Syslog-ng-autorel project code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0