Skip to content

Releases: Wtyd/githooks

2.6.0

13 May 10:29
Compare
Choose a tag to compare

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

03 May 08:17
Compare
Choose a tag to compare

Changed

Features

Improved the conf:check command to display Options details and final configuration for each tool.

2.4.0

23 Mar 07:18
Compare
Choose a tag to compare

Changed

Features

  • Added support for php 8.2.
  • Replaced method for install the app for old php from php72orMinorUpdate to phpOldVersions. 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

06 Jul 16:29
Compare
Choose a tag to compare

Changed

  • Overrides common tool options by Cli.: executablePath, paths, exclude, ignoreErrorsOnExit, and otherArguments.
  • 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

15 Feb 14:15
Compare
Choose a tag to compare

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

22 Jan 19:56
Compare
Choose a tag to compare

Fixed

  • Updated githooks.dist.yml with lasts changes.
  • Added support to php 8.1 in Readme.md. The library has always been supported but the readme was not up to date.

2.1.0

13 Jan 17:52
Compare
Choose a tag to compare

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.
  • 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

27 Oct 08:20
Compare
Choose a tag to compare

Changed

  • Improve the Release Flow for automatic build and test the builds.

Fixed

  • Namespace collision with Laravel applications. App namespace has been renamed to Wtyd\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

19 Oct 14:34
Compare
Choose a tag to compare

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 is security-checker
  • Changed the way the app looks for executables. All tools, even security-checker, now has executablePath 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.

1.0.1

03 Apr 17:01
Compare
Choose a tag to compare
  • Confirmed support for php 8
  • Commands refactor
  • Added commands tests