Skip to content

wilhelmberg/commit-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commit-message

experimenting with commit message parsing, geared towards [publish binary] on AppVeyor

parsing commit messages in batch files it cumbersome. parsing in Powershell is easy. unfortunately getting the result back from PS is not:

  • CMD, has set of env vars
    • --> PS, new process, but inherits env vars from CMD, set env var base on analysis of commit message
  • CMD <-- env vars from PS are lost, because the process has terminated

solution, kind of hackish:

setting env var in CMD from output of PS:

for /F "tokens=1 usebackq" %%i in (`powershell .\parse-commit-message.ps1`) DO SET PUBLISH=%%i

AppVeyor:

Build status

About

experimenting with commit message parsing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published