mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 09:39:58 +08:00
Release 0.5.0
This commit is contained in:
parent
b79c231516
commit
74951ab779
@ -22,28 +22,25 @@ function! SpaceVim#dev#releases#open() abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:get_list_of_PRs() abort
|
||||
let prs = github#api#issues#List_All_for_Repo('SpaceVim', 'SpaceVim',
|
||||
\ {
|
||||
\ 'state' : 'closed',
|
||||
\ 'since' : s:time_of_last_release(),
|
||||
\ })
|
||||
return filter(prs, 'has_key(v:val, "pull_request")')
|
||||
function! List(owner, repo, page) abort
|
||||
return github#api#util#Get('repos/' . a:owner . '/' . a:repo . '/issues?state=closed&page=' . a:page , [])
|
||||
endfunction
|
||||
|
||||
function! s:time_of_last_release() abort
|
||||
let last_release = github#api#repos#releases#latest('SpaceVim', 'SpaceVim')
|
||||
if has_key(last_release, 'created_at')
|
||||
return last_release.created_at
|
||||
else
|
||||
return ''
|
||||
endif
|
||||
" v0.4.0 is released at https://github.com/SpaceVim/SpaceVim/pull/768
|
||||
" v0.5.0 is released at https://github.com/SpaceVim/SpaceVim/pull/966
|
||||
function! s:get_list_of_PRs() abort
|
||||
let prs = []
|
||||
for i in range(1, 10)
|
||||
let issues = List('SpaceVim','SpaceVim', i)
|
||||
call extend(prs, filter(issues, 'v:val["number"] > 768 && v:val["number"] < 966'))
|
||||
endfor
|
||||
return filter(prs, 'has_key(v:val, "pull_request")')
|
||||
endfunction
|
||||
|
||||
function! s:pr_to_list(pr) abort
|
||||
return '- ' . a:pr.title . ' [#' . a:pr.number . '](' . a:pr.html_url . ')'
|
||||
endfunction
|
||||
|
||||
let g:wsd = []
|
||||
function! SpaceVim#dev#releases#content()
|
||||
let md = [
|
||||
\ '### SpaceVim release ' . g:spacevim_version
|
||||
@ -52,12 +49,15 @@ function! SpaceVim#dev#releases#content()
|
||||
let changes = []
|
||||
let fixs = []
|
||||
let others = []
|
||||
for pr in s:get_list_of_PRs()
|
||||
if pr.title =~ '^ADD:'
|
||||
if g:wsd == []
|
||||
let g:wsd =s:get_list_of_PRs()
|
||||
endif
|
||||
for pr in g:wsd
|
||||
if pr.title =~? '^ADD'
|
||||
call add(adds, s:pr_to_list(pr))
|
||||
elseif pr.title =~ '^CHANGE:'
|
||||
elseif pr.title =~? '^CHANGE'
|
||||
call add(changes, s:pr_to_list(pr))
|
||||
elseif pr.title =~ '^FIX:'
|
||||
elseif pr.title =~? '^FIX'
|
||||
call add(fixs, s:pr_to_list(pr))
|
||||
else
|
||||
call add(others, s:pr_to_list(pr))
|
||||
@ -67,21 +67,29 @@ function! SpaceVim#dev#releases#content()
|
||||
call add(md, '')
|
||||
call add(md, '#### New Features')
|
||||
call add(md, '')
|
||||
call extend(md, adds)
|
||||
call add(md, '')
|
||||
endif
|
||||
if !empty(changes)
|
||||
call add(md, '')
|
||||
call add(md, '#### Feature Changes')
|
||||
call add(md, '')
|
||||
call extend(md, changes)
|
||||
call add(md, '')
|
||||
endif
|
||||
if !empty(fixs)
|
||||
call add(md, '')
|
||||
call add(md, '#### Bug Fixs')
|
||||
call add(md, '')
|
||||
call extend(md, fixs)
|
||||
call add(md, '')
|
||||
endif
|
||||
if !empty(others)
|
||||
call add(md, '')
|
||||
call add(md, '#### Unmarked PRs')
|
||||
call add(md, '')
|
||||
call extend(md, others)
|
||||
call add(md, '')
|
||||
endif
|
||||
return join(md, "\n")
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
[](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||
[](https://ci.appveyor.com/project/wsdjeg/spacevim/branch/dev)
|
||||
[](https://codecov.io/gh/SpaceVim/SpaceVim/branch/dev)
|
||||

|
||||

|
||||
[](LICENSE)
|
||||
[](doc/SpaceVim.txt)
|
||||
[](http://isitmaintained.com/project/SpaceVim/SpaceVim "Average time to resolve an issue")
|
||||
|
@ -27,7 +27,7 @@
|
||||
""
|
||||
" Version of SpaceVim , this value can not be changed.
|
||||
scriptencoding utf-8
|
||||
let g:spacevim_version = '0.5.0-dev'
|
||||
let g:spacevim_version = '0.5.0'
|
||||
lockvar g:spacevim_version
|
||||
""
|
||||
" Change the default indentation of SpaceVim. Default is 2.
|
||||
|
@ -7,7 +7,7 @@ description: "SpaceVim 是一个社区驱动的 Vim 配置,内含多种语言
|
||||
# SpaceVim 中文手册
|
||||
|
||||
[](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||

|
||||

|
||||
[](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
||||
[](https://github.com/SpaceVim/SpaceVim/blob/dev/doc/SpaceVim.txt)
|
||||
[](https://jq.qq.com/?_wv=1027&k=43DB6SG)
|
||||
|
@ -6,7 +6,7 @@ description: "SpaceVim is a community-driven vim distribution that seeks to prov
|
||||
# Introduction
|
||||
|
||||
[](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||

|
||||

|
||||
[](https://raw.githubusercontent.com/SpaceVim/SpaceVim/dev/LICENSE)
|
||||
[](https://raw.githubusercontent.com/SpaceVim/SpaceVim/dev/doc/SpaceVim.txt)
|
||||
[](http://isitmaintained.com/project/SpaceVim/SpaceVim "Average time to resolve an issue")
|
||||
|
@ -11,7 +11,7 @@ echo " \______/| ##____/ \_______/\_______/\_______/ \_/ |__|__/ |__/
|
||||
echo " | ## "
|
||||
echo " | ## "
|
||||
echo " |__/ "
|
||||
echo " version : 0.5.0-dev by : spacevim.org "
|
||||
echo " version : 0.5.0 by : spacevim.org "
|
||||
|
||||
Push-Location ~
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
# Reset
|
||||
Color_off='\033[0m' # Text Reset
|
||||
Version='0.5.0-dev'
|
||||
Version='0.5.0'
|
||||
|
||||
# Regular Colors
|
||||
Red='\033[0;31m'
|
||||
|
@ -1,7 +1,7 @@
|
||||
[](https://spacevim.org)
|
||||
|
||||
[](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||

|
||||

|
||||
[](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
||||
[](https://github.com/SpaceVim/SpaceVim/blob/dev/doc/SpaceVim.txt)
|
||||
[](https://jq.qq.com/?_wv=1027&k=43DB6SG)
|
||||
|
Loading…
x
Reference in New Issue
Block a user