Github.vim : Another github v3 api implemented in vim script
script karma |
Rating 12/3,
Downloaded by 961 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Shidong Wang |
|
script type |
utility |
|
description |
This is a vim script library to access the Github API v3. With it, you can manage Github resources (repositories, user profiles, organizations, etc.) from viml scripts.
for example, to creat an issue:
function! CreateIssue(owner, repo) abort
let username = input('your github username:')
let password = input('your github password:')
let title = input('Issue title: ')
let issue = {
\ 'title': title,
\ 'body': s:body(),
\ }
let response = github#api#issues#Create(a:owner, a:repo,
\ username, password, issue)
if !empty(response)
echomsg 'Create successed! ' . response.url
else
echom 'Create failed!'
endif
endfunction
func! s:body()
return 'Testting Github.vim...'
endf |
|
install details |
For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests.Increasing the unauthenticated rate limit, you need Create OAuth app, and set EVN: CLIENTID and CLIENTSECRET. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.117.106.206
|