Skip to content

Commit

Permalink
Skip over already closed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Apr 22, 2016
1 parent fb81bce commit b7e5eaf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/gen_libsass_todo.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ if [%1] == [] GOTO :NoIssue
SET SPECS=%FOLDER%..\sass-spec\spec

if not exist "%ISSUE%.scss" (
echo input source not found: %ISSUE%.scss
goto :End
echo input source not found: %ISSUE%.scss
goto :End
)

SET GITCMD=git -C "%FOLDER%..\sass-spec"

%GITCMD% fetch --all
%GITCMD% checkout -f -B todo/issue_%ISSUE% master

if exist "%SPECS%\libsass-closed-issues\issue_%ISSUE%" GOTO :IsClosed

if not exist "%SPECS%\libsass-todo-issues\issue_%ISSUE%" (
mkdir "%SPECS%\libsass-todo-issues\issue_%ISSUE%"
mkdir "%SPECS%\libsass-todo-issues\issue_%ISSUE%"
)

copy %ISSUE%.scss %SPECS%\libsass-todo-issues\issue_%ISSUE%\input.scss
Expand All @@ -46,6 +48,10 @@ echo Going to push to remote %2

GOTO :End

:IsClosed

echo Issue seems to be closed already

:NoIssue

echo Please pass an issue number
Expand Down

0 comments on commit b7e5eaf

Please sign in to comment.