-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from justcoded/develop
Renamed config/gitflow commands
- Loading branch information
Showing
6 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,32 @@ | ||
.PHONY: default install | ||
.PHONY: default install uninstall chl chl-first | ||
|
||
default: | ||
@echo 'Git extras installation helper from JustCoded' | ||
|
||
install: | ||
sudo cp -f ./bin/* /usr/local/bin/ | ||
sudo chmod +x /usr/local/bin/git-* | ||
|
||
uninstall: | ||
sudo rm /usr/local/bin/git-* | ||
|
||
## | ||
# CHANGELOG vars and targets | ||
## | ||
CONV_CHL_IMAGE := justcoded/php-conventional-changelog:latest | ||
CONV_CHL_DR := docker run -it --rm --volume "$$PWD":/codebase ${CONV_CHL_IMAGE} bash | ||
CONV_CHL_CMD := conventional-changelog --config changelog-config.php | ||
|
||
## | ||
# @command chl Generate changelog based on conventional commits | ||
## | ||
chl: | ||
${CONV_CHL_DR} \ | ||
-c "${CONV_CHL_CMD}" | ||
|
||
## | ||
# @command chl-first Generate changelog based on conventional commits, first version | ||
## | ||
chl-first: | ||
${CONV_CHL_DR} \ | ||
-c "${CONV_CHL_CMD} --first-release" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* @see: https://github.com/marcocesarato/php-conventional-changelog/blob/main/docs/config.md | ||
*/ | ||
|
||
return [ | ||
'path' => 'CHANGELOG.md', | ||
'headerTitle' => 'Changelog', | ||
'headerDescription' => 'All notable changes to this project will be documented in this file. | ||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
---', | ||
'ignoreTypes' => ['build', 'chore', 'ci', 'docs', 'perf', 'refactor', 'revert', 'style', 'test', 'bug'], | ||
|
||
'hiddenHash' => true, | ||
]; |