1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +08:00

Update release func

This commit is contained in:
wsdjeg 2017-11-06 00:07:28 +08:00
parent a91a016609
commit 0f79d54f39

View File

@ -1,17 +1,13 @@
function! s:body() abort
return 'SpaceVim development (pre-release:' . g:spacevim_version . ') build.'
endfunction
function! SpaceVim#dev#releases#open() abort
let username = input('github username:')
let password = input('github password:')
let releases = {
\ 'tag_name': 'nightly',
\ 'tag_name': g:spacevim_version,
\ 'target_commitish': 'dev',
\ 'name': g:spacevim_version,
\ 'body': s:body(),
\ 'name': 'SpaceVim v' . g:spacevim_version,
\ 'body': SpaceVim#dev#releases#content(),
\ 'draft': v:false,
\ 'prerelease': v:true
\ 'prerelease': v:false
\ }
let response = github#api#repos#releases#Create('SpaceVim', 'SpaceVim',
\ username, password, releases)
@ -83,6 +79,6 @@ function! SpaceVim#dev#releases#content()
call add(md, '#### Unmarked PRs')
call add(md, '')
endif
return md
return join(md, "\n")
endfunction