Releases: Wtyd/githooks
Releases · Wtyd/githooks
2.6.0
Changed
Features
- Explicit php 8.3 support. Although previous versions of GitHooks already supported php 8.3, tests are now launched in this version of php and are taken into account when creating the different builds.
- Delete timeout for tool execution. Heavy tools (Phpstan and Phpmd) can cause timeout in large projects when launched without cache. The timeout must be controlled in the CI/CD system. Previously the timeout of GitHooks was 300 seconds (5 minutes).
Full Changelog: v2.5.0...v2.6.0
2.5.0
2.4.0
Changed
Features
- Added support for php 8.2.
- Replaced method for install the app for old php from
php72orMinorUpdate
tophpOldVersions
.php72orMinorUpdate
is deprecated and will be removed in 3.0.0. - Old php is 8.0 or minor.
Internal Refactorings
- Updated core to Laravel 9.
- Refactored CI/CD for create the new builds and commit it automatically.
- Refactored CI/CD for manage cache dependencies and artifacts.
2.3.0
Changed
- Overrides common tool options by Cli.:
executablePath
,paths
,exclude
,ignoreErrorsOnExit
, andotherArguments
. - Created
processes
in the Options tag to run multiple tools in multiple processes (tool all
command). It can also be overridden by Cli. The default number of processes is 1.
Fixed
- Warnings are displayed correctly when the Options tag is not an associative array.
2.2.0
Changed
- Improved configuration file checking when
githooks tool all
command is runned. - Added the option
ignoreErrorsOnExit
for each tool. This option avoid exit error even if the tool finds some problem. More info in the wiki. - Significantly reduced the weight of the binary by removing development dependencies from the build.
2.1.1
2.1.0
Changed
-
Fast Mode: it shows warning when a tool is skipped.
-
otherArguments
is a new option in the configuration file for all tools. This option allows you to set options or arguments that are not supported by GitHooks. That is, it allows a more accurated configuration of the tools. -
Improved configuration file checking.
Fixed
ComposerUpdater::php72orMinorUpdate
- Added execution permissions to binary after copy it to
vendor/bin
. - Now shows message (and doesn’t copy the binary) if the script is runned in php 7.3 or higher.
- Added execution permissions to binary after copy it to
githooks hook
command first checks if the hook exists in the final path for avoid the error for copy a file that already exists.
2.0.1
Changed
- Improve the Release Flow for automatic build and test the builds.
Fixed
- Namespace collision with Laravel applications.
App
namespace has been renamed toWtyd\GitHooks\App
. - Crash when some tool runs in fast execution mode and a file is deleted from repository. Now the deleted file is ignored properly.
2.0.0
Changed
- Standalone app! You will have no more conflicts with other libraries. After installation with Composer the binary will be downloaded to
/vendor/bin/
. - Tool command signature. After:
githooks tool:phpcs
Before:githoos tool phpcs
- Override execution mode of githooks.yml in tool cli:
githooks tool phpcs fast
- All commands finish with exit code 0 (sucessfully) or 1 (wrong).
check-security
now issecurity-checker
- Changed the way the app looks for executables. All tools, even
security-checker
, now hasexecutablePath
variable in githooks.yml. This means no matter where the executable (binary or phar) is.
Fixed
- Fast execution mode. Fixed the way to take the files with changes.
- The tool command now finish with exit code 1 when something is wrong or the tool/s detects errors.