Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

「仕様変更」の抽出対応、および分類の日本語化 #13

Merged
merged 5 commits into from
Dec 15, 2018
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion env-set.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
PATH=C:\Ruby25-x64\bin;C:\Ruby25\bin;%PATH%
PATH=C:\Ruby24-x64\bin;C:\Ruby24\bin;%PATH%
2 changes: 1 addition & 1 deletion installChangeLog.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ setlocal

call %~dp0env-set.bat

gem install github_changelog_generator
gem install github_changelog_generator --version 1.15.0.pre.rc
takke marked this conversation as resolved.
Show resolved Hide resolved
endlocal
18 changes: 18 additions & 0 deletions makeChangeLog.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ setlocal

call %~dp0env-set.bat

REM 日本語を扱えるように内部エンコーディングを UTF-8 にする
set RUBYOPT=-EUTF-8:UTF-8

set ACCOUNTNAME=sakura-editor
set PROJECTNAME=sakura
set OUTFILENAME=CHANGELOG.md
set EXCLUDELABELS=duplicate,question,invalid,wontfix,CI,management,refactoring
set BUG_LABEL=### バグ修正
set ENHANCEMENT_LABEL=### 機能追加
set BREAKING_LABEL=### 仕様変更
set BREAKING_LABELS="specification change"
set PR_LABEL=### その他変更

@echo.
@echo INFO: APPVEYOR_REPO_NAME = %APPVEYOR_REPO_NAME%
Expand Down Expand Up @@ -38,11 +46,21 @@ if not defined CHANGELOG_GITHUB_TOKEN (
exit /b 1
)

REM
REM 日本語を含むパラメータを指定すると文字化けするのでファイル経由で渡す
REM
echo bugs-label=%BUG_LABEL% > .github_changelog_generator
takke marked this conversation as resolved.
Show resolved Hide resolved
echo enhancement-label=%ENHANCEMENT_LABEL% >> .github_changelog_generator
echo breaking-label=%BREAKING_LABEL% >> .github_changelog_generator
echo pr-label=%PR_LABEL% >> .github_changelog_generator

github_changelog_generator ^
-u %ACCOUNTNAME% ^
-p %PROJECTNAME% ^
-o %OUTFILENAME% ^
--exclude-labels %EXCLUDELABELS% ^
--breaking-labels %BREAKING_LABELS% ^
--cache-file %TEMP%\github-changelog-http-cache ^
--cache-log %TEMP%\github-changelog-logger.log

endlocal