mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 06:50:05 +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
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:get_list_of_PRs() abort
|
function! List(owner, repo, page) abort
|
||||||
let prs = github#api#issues#List_All_for_Repo('SpaceVim', 'SpaceVim',
|
return github#api#util#Get('repos/' . a:owner . '/' . a:repo . '/issues?state=closed&page=' . a:page , [])
|
||||||
\ {
|
|
||||||
\ 'state' : 'closed',
|
|
||||||
\ 'since' : s:time_of_last_release(),
|
|
||||||
\ })
|
|
||||||
return filter(prs, 'has_key(v:val, "pull_request")')
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:time_of_last_release() abort
|
" v0.4.0 is released at https://github.com/SpaceVim/SpaceVim/pull/768
|
||||||
let last_release = github#api#repos#releases#latest('SpaceVim', 'SpaceVim')
|
" v0.5.0 is released at https://github.com/SpaceVim/SpaceVim/pull/966
|
||||||
if has_key(last_release, 'created_at')
|
function! s:get_list_of_PRs() abort
|
||||||
return last_release.created_at
|
let prs = []
|
||||||
else
|
for i in range(1, 10)
|
||||||
return ''
|
let issues = List('SpaceVim','SpaceVim', i)
|
||||||
endif
|
call extend(prs, filter(issues, 'v:val["number"] > 768 && v:val["number"] < 966'))
|
||||||
|
endfor
|
||||||
|
return filter(prs, 'has_key(v:val, "pull_request")')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:pr_to_list(pr) abort
|
function! s:pr_to_list(pr) abort
|
||||||
return '- ' . a:pr.title . ' [#' . a:pr.number . '](' . a:pr.html_url . ')'
|
return '- ' . a:pr.title . ' [#' . a:pr.number . '](' . a:pr.html_url . ')'
|
||||||
endfunction
|
endfunction
|
||||||
|
let g:wsd = []
|
||||||
function! SpaceVim#dev#releases#content()
|
function! SpaceVim#dev#releases#content()
|
||||||
let md = [
|
let md = [
|
||||||
\ '### SpaceVim release ' . g:spacevim_version
|
\ '### SpaceVim release ' . g:spacevim_version
|
||||||
@ -52,12 +49,15 @@ function! SpaceVim#dev#releases#content()
|
|||||||
let changes = []
|
let changes = []
|
||||||
let fixs = []
|
let fixs = []
|
||||||
let others = []
|
let others = []
|
||||||
for pr in s:get_list_of_PRs()
|
if g:wsd == []
|
||||||
if pr.title =~ '^ADD:'
|
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))
|
call add(adds, s:pr_to_list(pr))
|
||||||
elseif pr.title =~ '^CHANGE:'
|
elseif pr.title =~? '^CHANGE'
|
||||||
call add(changes, s:pr_to_list(pr))
|
call add(changes, s:pr_to_list(pr))
|
||||||
elseif pr.title =~ '^FIX:'
|
elseif pr.title =~? '^FIX'
|
||||||
call add(fixs, s:pr_to_list(pr))
|
call add(fixs, s:pr_to_list(pr))
|
||||||
else
|
else
|
||||||
call add(others, s:pr_to_list(pr))
|
call add(others, s:pr_to_list(pr))
|
||||||
@ -67,21 +67,29 @@ function! SpaceVim#dev#releases#content()
|
|||||||
call add(md, '')
|
call add(md, '')
|
||||||
call add(md, '#### New Features')
|
call add(md, '#### New Features')
|
||||||
call add(md, '')
|
call add(md, '')
|
||||||
|
call extend(md, adds)
|
||||||
|
call add(md, '')
|
||||||
endif
|
endif
|
||||||
if !empty(changes)
|
if !empty(changes)
|
||||||
call add(md, '')
|
call add(md, '')
|
||||||
call add(md, '#### Feature Changes')
|
call add(md, '#### Feature Changes')
|
||||||
call add(md, '')
|
call add(md, '')
|
||||||
|
call extend(md, changes)
|
||||||
|
call add(md, '')
|
||||||
endif
|
endif
|
||||||
if !empty(fixs)
|
if !empty(fixs)
|
||||||
call add(md, '')
|
call add(md, '')
|
||||||
call add(md, '#### Bug Fixs')
|
call add(md, '#### Bug Fixs')
|
||||||
call add(md, '')
|
call add(md, '')
|
||||||
|
call extend(md, fixs)
|
||||||
|
call add(md, '')
|
||||||
endif
|
endif
|
||||||
if !empty(others)
|
if !empty(others)
|
||||||
call add(md, '')
|
call add(md, '')
|
||||||
call add(md, '#### Unmarked PRs')
|
call add(md, '#### Unmarked PRs')
|
||||||
call add(md, '')
|
call add(md, '')
|
||||||
|
call extend(md, others)
|
||||||
|
call add(md, '')
|
||||||
endif
|
endif
|
||||||
return join(md, "\n")
|
return join(md, "\n")
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||||
[![Build status](https://ci.appveyor.com/api/projects/status/eh3t5oph70abp665/branch/dev?svg=true)](https://ci.appveyor.com/project/wsdjeg/spacevim/branch/dev)
|
[![Build status](https://ci.appveyor.com/api/projects/status/eh3t5oph70abp665/branch/dev?svg=true)](https://ci.appveyor.com/project/wsdjeg/spacevim/branch/dev)
|
||||||
[![codecov](https://codecov.io/gh/SpaceVim/SpaceVim/branch/dev/graph/badge.svg)](https://codecov.io/gh/SpaceVim/SpaceVim/branch/dev)
|
[![codecov](https://codecov.io/gh/SpaceVim/SpaceVim/branch/dev/graph/badge.svg)](https://codecov.io/gh/SpaceVim/SpaceVim/branch/dev)
|
||||||
![Version](https://img.shields.io/badge/version-0.5.0--dev-FF00CC.svg)
|
![Version](https://img.shields.io/badge/version-0.5.0-FF00CC.svg)
|
||||||
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
||||||
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg)](doc/SpaceVim.txt)
|
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg)](doc/SpaceVim.txt)
|
||||||
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/SpaceVim/SpaceVim.svg)](http://isitmaintained.com/project/SpaceVim/SpaceVim "Average time to resolve an issue")
|
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/SpaceVim/SpaceVim.svg)](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.
|
" Version of SpaceVim , this value can not be changed.
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
let g:spacevim_version = '0.5.0-dev'
|
let g:spacevim_version = '0.5.0'
|
||||||
lockvar g:spacevim_version
|
lockvar g:spacevim_version
|
||||||
""
|
""
|
||||||
" Change the default indentation of SpaceVim. Default is 2.
|
" Change the default indentation of SpaceVim. Default is 2.
|
||||||
|
@ -7,7 +7,7 @@ description: "SpaceVim 是一个社区驱动的 Vim 配置,内含多种语言
|
|||||||
# SpaceVim 中文手册
|
# SpaceVim 中文手册
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||||
![Version](https://img.shields.io/badge/version-0.5.0--dev-FF00CC.svg)
|
![Version](https://img.shields.io/badge/version-0.5.0-FF00CC.svg)
|
||||||
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
||||||
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](https://github.com/SpaceVim/SpaceVim/blob/dev/doc/SpaceVim.txt)
|
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](https://github.com/SpaceVim/SpaceVim/blob/dev/doc/SpaceVim.txt)
|
||||||
[![QQ](https://img.shields.io/badge/QQ群-121056965-blue.svg)](https://jq.qq.com/?_wv=1027&k=43DB6SG)
|
[![QQ](https://img.shields.io/badge/QQ群-121056965-blue.svg)](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
|
# Introduction
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||||
![Version](https://img.shields.io/badge/version-0.5.0--dev-FF00CC.svg)
|
![Version](https://img.shields.io/badge/version-0.5.0-FF00CC.svg)
|
||||||
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/SpaceVim/SpaceVim/dev/LICENSE)
|
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/SpaceVim/SpaceVim/dev/LICENSE)
|
||||||
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](https://raw.githubusercontent.com/SpaceVim/SpaceVim/dev/doc/SpaceVim.txt)
|
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](https://raw.githubusercontent.com/SpaceVim/SpaceVim/dev/doc/SpaceVim.txt)
|
||||||
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/SpaceVim/SpaceVim.svg)](http://isitmaintained.com/project/SpaceVim/SpaceVim "Average time to resolve an issue")
|
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/SpaceVim/SpaceVim.svg)](http://isitmaintained.com/project/SpaceVim/SpaceVim "Average time to resolve an issue")
|
||||||
|
@ -11,7 +11,7 @@ echo " \______/| ##____/ \_______/\_______/\_______/ \_/ |__|__/ |__/
|
|||||||
echo " | ## "
|
echo " | ## "
|
||||||
echo " | ## "
|
echo " | ## "
|
||||||
echo " |__/ "
|
echo " |__/ "
|
||||||
echo " version : 0.5.0-dev by : spacevim.org "
|
echo " version : 0.5.0 by : spacevim.org "
|
||||||
|
|
||||||
Push-Location ~
|
Push-Location ~
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
# Reset
|
# Reset
|
||||||
Color_off='\033[0m' # Text Reset
|
Color_off='\033[0m' # Text Reset
|
||||||
Version='0.5.0-dev'
|
Version='0.5.0'
|
||||||
|
|
||||||
# Regular Colors
|
# Regular Colors
|
||||||
Red='\033[0;31m'
|
Red='\033[0;31m'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[![SpaceVim](https://spacevim.org/logo.png)](https://spacevim.org)
|
[![SpaceVim](https://spacevim.org/logo.png)](https://spacevim.org)
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
[![Build Status](https://travis-ci.org/SpaceVim/SpaceVim.svg?branch=dev)](https://travis-ci.org/SpaceVim/SpaceVim)
|
||||||
![Version](https://img.shields.io/badge/version-0.5.0--dev-FF00CC.svg)
|
![Version](https://img.shields.io/badge/version-0.5.0-FF00CC.svg)
|
||||||
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/SpaceVim/SpaceVim/blob/master/LICENSE)
|
||||||
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](https://github.com/SpaceVim/SpaceVim/blob/dev/doc/SpaceVim.txt)
|
[![Doc](https://img.shields.io/badge/doc-%3Ah%20SpaceVim-orange.svg?style=flat-square)](https://github.com/SpaceVim/SpaceVim/blob/dev/doc/SpaceVim.txt)
|
||||||
[![QQ](https://img.shields.io/badge/QQ群-121056965-blue.svg)](https://jq.qq.com/?_wv=1027&k=43DB6SG)
|
[![QQ](https://img.shields.io/badge/QQ群-121056965-blue.svg)](https://jq.qq.com/?_wv=1027&k=43DB6SG)
|
||||||
|
Loading…
Reference in New Issue
Block a user