Skip to content
Compare
Choose a tag to compare
@mszostok mszostok released this 26 Oct 10:31

🚨GitHub Codeowners Validator 0.5.0 is now available!

In this release, we’ve focused more on bug fixing and updating the project from the developer’s perspective.

Highlights

  • ✨ New CODEOWNERS syntax checker. Reports if CODEOWNERS file contains invalid syntax definition. It is imported as:

    "If any line in your CODEOWNERS file contains invalid syntax, the file will not be detected
    and will not be used to request reviews. Invalid syntax includes inline comments
    and user or team names that do not exist on GitHub."

    source: https://help.github.com/articles/about-code-owners/#codeowners-syntax

  • ✨ New documentation about the GitHub personal access token which should be generated for Valid Owners Checker. The documentation describes why and which scopes have to be granted. Read more here.

  • 🐛 Fix bug in File Exists Checker.

    Background
    A CODEOWNERS file uses a pattern that follows the same rules used in gitignore files.
    The gitignore files support two consecutive asterisks ("**") in patterns that match against the full pathname. Unfortunately the core Go library filepath.Glob does not support ** at all. You can read investigation document for more info.

Installation

To install the codeowners-validator, run:

# Install codeowners-validator in /usr/local/bin in version 0.5.0
curl -sfL https://raw.githubusercontent.com/mszostok/codeowners-validator/master/install.sh| sh -s -- -b /usr/local/bin v0.5.0

See the Installation section for more installation options.

Docker images

  • docker pull mszostok/codeowners-validator:latest
  • docker pull mszostok/codeowners-validator:v0.5.0
  • docker pull mszostok/codeowners-validator:v0.5

Changelog 🚀

282d053 Adjust docs and GitHub action for v0.5.0 release
659e84d Add test coverage for checks (#48)
89d9a5f Extract logic to dedicated valid_syntax checker
7da6dd0 Check for syntax errors in CODEOWNERS file
2c26fdb Fix report badge link (#47)
3c8cc7f Add dockerfile and shellcheck linters, refactor golangci-lint and hack dir (#45)
32b0e86 Fix file exists checker (#44)
cbda10c Add unit-tests coverage for dup_pattern checker (#43)
c915fc0 Update run-test-unit.sh (#41)
8db939c fix: add spacing around pipe operator (#39)
1951ba8 Add codecov support (#38)
a07509e Add integration tests (#30)
41e4231 Add documentation about the GitHub token (#36)

Contributors

Thanks again to everyone who contributed to this release! ✨

Users whose commits are in this release: