Skip to content

Latest commit

ย 

History

History
623 lines (374 loc) ยท 20.9 KB

CHANGELOG.md

File metadata and controls

623 lines (374 loc) ยท 20.9 KB

Changelog

This file contains changelogs.

View all Releases

Removed

  • Removed Rule @mr-linter/has_all_labels
  • Removed unnecessary polyfills

Changed

  • Catch exception on non-exists notification messenger

๐Ÿ’พ Assets


Added

  • Added evaluator isNumber
  • Added evaluator containsNumber

๐Ÿ’พ Assets


Fixed

  • Fixed rule "@mr-linter/has_any_labels" on empty labels

๐Ÿ’พ Assets


Added

  • Added Rule @mr-linter/description_template for check description on defined template

Removed

  • Removed rule @mr-linter/has_any_labels_of

๐Ÿ’พ Assets


Added

  • Added an Evaluator notIntersect to check that the array does not intersect with the user array.

๐Ÿ’พ Assets


Added

  • Added Rule @mr-linter/changelog_has_new_release on contains new release

Removed

  • Removed Rule @mr-linter/update_changelog

๐Ÿ’พ Assets


Added

  • Resolve rule params with default value

๐Ÿ’พ Assets


Added

  • Added parameter projectCodes for rules @mr-linter/branch_starts_with_task_number, @mr-linter/jira/has_issue_link, @mr-linter/title_starts_with_task_number, @mr-linter/youtrack/has_issue_link for allow many specified project codes and any project code if parameter 'projectCodes' is empty

Breaking changes

  • Rule @mr-linter/branch_starts_with_task_number: removed parameter projectName
  • Rule @mr-linter/jira/has_issue_link: removed parameter projectCode
  • Rule @mr-linter/title_starts_with_task_number: removed parameter projectName
  • Rule @mr-linter/youtrack/has_issue_link: removed parameter projectCode

Internal

  • Removed ClassSummary

๐Ÿ’พ Assets


Added

  • Added param task to title_conventional rule for checking if title contains task number

๐Ÿ’พ Assets


Optimized

  • Updated PHP to 8.2
  • Deleted unless dependency "jetbrains/phpstorm-attributes"

๐Ÿ’พ Assets


Added

  • Throw exception when github actions token is empty
  • Throw exception when gitlab token is empty

Optimized

  • Reduced docker image size

Docs

  • Updated rules doc page

Internal

  • Bump guzzlehttp/psr7 from 2.4.3 to 2.4.5

๐Ÿ’พ Assets


Added

  • Added rule title_conventional

๐Ÿ’พ Assets


Optimized

  • Throw http exceptions and catch their in CI requests

๐Ÿ’พ Assets


Added

  • Support GitLab CI job token

Fixed

  • Fixed phar on "TwigTest not found"

๐Ÿ’พ Assets


Added

  • Added comments with lint result for merge requests

๐Ÿ’พ Assets


Added

  • Added "no ssh keys" rule to prevent ssh keys from being included in the merge request.
  • Added "disable file extensions" rule to disable adding files of certain extensions.

๐Ÿ’พ Assets


Optimization

  • Add diff fragments for fast search in changes

๐Ÿ’พ Assets


Added

  • Added Rule "diff limit"
  • Added examples for params of rules

๐Ÿ’พ Assets


Added

  • Added rule "Update changelog"

Internal

  • Resolving object config for rule
  • Refactored type resolvers

๐Ÿ’พ Assets


Added

  • Add Evaluator "Not starts any"
  • Turn on forgotten rule "@mr-linter/forbid_changes"

๐Ÿ’พ Assets


Added

  • Suppress error on non-critical rules via rule option critical: false
  • Added option stop_on_failure for stop linter on first failure
  • Added option stop_on_warning for stop linter on first warning

๐Ÿ’พ Assets


Added

  • [Logger] Print date and time in logs
  • Added array of notes in event rule_was_failed

Internal

  • [Docs] Added event descriptions into config JSON Schema

๐Ÿ’พ Assets


Added

  • Added option for disable notification sound by time period
  • Added environment variable MR_LINTER_TIMEZONE for set timezone

Changed

  • Moved shared contracts from common folder to self folders

๐Ÿ’พ Assets


Added

  • Add evaluator "not has any"

๐Ÿ’พ Assets


Added

  • Add logs for HTTP Client
  • Validate BitBucket PR data

Internal

  • Update PHPStan level to 9

๐Ÿ’พ Assets


Added

  • Added Rule "Branch starts with task number"
  • Added Rule "Forbid changes"
  • Added logs for events

Internal

  • Up test coverage

๐Ÿ’พ Assets


Added

  • Support Bitbucket Pipelines

Changed

  • Configuration structure for CI credentials

๐Ÿ’พ Assets


Added

  • Documentation for conditions
  • Rule @mr-linter/title_starts_with_task_number for checking task number in request title

๐Ÿ’พ Assets


Added

  • Notifications for telegram on events: lint_finished, lint_started

๐Ÿ’พ Assets


Added

  • Added markdown condition operator: containsHeading
  • Added condition operator: linesMax
  • Added condition operator: containsLine

Internal

  • Refactored condition evaluator resolving
  • ๐Ÿš€ Up test coverage to 40.21%
  • Added dependency psr/clock

๐Ÿ’พ Assets


Fixed

  • Fixed NativeJsonDecoder

Internal

  • Added some tests

๐Ÿ’พ Assets


Changed

  • MR-Linter is now not library, but project
  • Project structure

Added

  • Added IsSnakeCaseEvaluator
  • Added IsKebabCaseEvaluator
  • Added IsCamelCaseEvaluator
  • Added IsStudlyCaseEvaluator
  • Added IsLowerCaseEvaluator
  • Added IsUpperCaseEvaluator
  • Added $all evaluator
  • Added $any evaluator
  • Added IsEmptyEvaluator

Removed

  • PHP Config Loader

๐Ÿ’พ Assets


Added

  • Added Custom rule for user conditions

๐Ÿ’พ Assets


Added

  • Added dependency check

Fixed

  • Fixed direct dependencies

๐Ÿ’พ Assets


Added

  • Added condition match for chechking string on match regex.

๐Ÿ’พ Assets


Internal

  • Added coverage reporting
  • Added some tests

๐Ÿ’พ Assets


Added

  • Added notStarts Condition Operator
  • Added notEnds Condition Operator

๐Ÿ’พ Assets


Added

  • Added interface HasDebugInfo for better object printing.

๐Ÿ’พ Assets


Changed

  • Moved exception on building guzzle client to ClientFactory
  • Static class URI

Fixed

  • Command dump: print concrete rule class

๐Ÿ’พ Assets


Added

  • Added command mr-linter install: Copy config into yaml, json files

๐Ÿ’พ Assets


Changed

  • Configuration loading refactoring

๐Ÿ’พ Assets


Added

  • Support many configurations for Rule
  • Condition Operator 'countEqualsAny'

๐Ÿ’พ Assets


Internal

  • Deptrac
  • Contracts for YAML/JSON decoding.

๐Ÿ’พ Assets


Added

  • Metrics
  • Debug mode, command mr-linter lint --debug
  • Logging for HTTP Requests

๐Ÿ’พ Assets


Added

  • Added Rule HasChanges
  • Added ApplicationFactory
  • Added InfoCommand mr-linter info
  • Added conditions countEquals, countNotEquals

๐Ÿ’พ Assets


Fixed

  • [Bug] Credentials are required to be filled

๐Ÿ’พ Assets


Added

  • Added YAML Config Loader

๐Ÿ’พ Assets


Added

  • Added rule conditions

๐Ÿ’พ Assets


Added

  • Loading Config from JSON
  • Docker image

๐Ÿ’พ Assets


Added

  • Added method getName to Rule

๐Ÿ’พ Assets


Fixed

  • Fix finding composer autoload path in binary

๐Ÿ’พ Assets


Added

  • Added rule for check count changed files on a limit
  • Added property changedFilesCount to merge request objects

๐Ÿ’พ Assets


Changed

  • Update exception hierarchy. Parent: MergeRequestLinterException

Added

  • Added ServerUnexpectedResponseException

๐Ÿ’พ Assets


Added

  • [Feature] Added rule "Has link to YouTrack issue"
  • [Feature] Added rule "OnTargetBranchRule"
  • Added property "sourceBranch" to MergeRequest object
  • Added property "targetBranch" to MergeRequest object

๐Ÿ’พ Assets


Added

  • [Feature] Added rule "Has link to Jira task"

๐Ÿ’พ Assets


Added

  • ๐Ÿ”ฅ Init library

๐Ÿ’พ Assets