Skip to content

Commit

Permalink
Merge pull request #77 from homebysix/1.15.0
Browse files Browse the repository at this point in the history
1.15.0 merge to main
  • Loading branch information
homebysix authored Feb 11, 2024
2 parents 1ebede1 + ac89be2 commit f39601b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ repos:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/python/black
rev: 23.11.0
rev: 24.1.1
hooks:
- id: black
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ All notable changes to this project will be documented in this file. This projec

Nothing yet.

## [1.15.0] - 2024-02-11

### Added

- Now validates that all XML `<result>` tags are closed in Jamf extension attributes (#76, thanks to @WardsParadox).

### Fixed

- Fixed a bug in the `munki-makecatalogs` hook (#72, thanks to @kbrewersq).
- Added optional `--munki-repo` parameter to `check-munki-pkgsinfo` and `munki-makecatalogs` hooks, in order to specify a path to your Munki repo. Useful for situations where the Munki repo is a subdirectory of the Git repo itself. (#73 and #74, thanks to @kbrewersq).

## [1.14.1] - 2023-11-20

### Fixed
Expand Down Expand Up @@ -324,7 +335,8 @@ Nothing yet.

- Initial release

[Unreleased]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.14.1...HEAD
[Unreleased]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.15.0...HEAD
[1.15.0]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.14.1...v1.15.0
[1.14.1]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.14.0...v1.14.1
[1.14.0]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.13.0...v1.14.0
[1.13.0]: https://github.com/homebysix/pre-commit-macadmin/compare/v1.12.4...v1.13.0
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ For any hook in this repo you wish to use, add the following to your pre-commit

```yaml
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.14.0
rev: v1.15.0
hooks:
- id: check-plists
# - id: ...
Expand Down Expand Up @@ -132,7 +132,7 @@ When combining arguments that take lists (for example: `--required-keys`, `--cat

```yaml
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.14.0
rev: v1.15.0
hooks:
- id: check-munki-pkgsinfo
args: ['--catalogs', 'testing', 'stable', '--']
Expand All @@ -142,7 +142,7 @@ But if you also use the `--categories` argument, you would move the trailing `--

```yaml
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.14.0
rev: v1.15.0
hooks:
- id: check-munki-pkgsinfo
args: ['--catalogs', 'testing', 'stable', '--categories', 'Design', 'Engineering', 'Web Browsers', '--']
Expand All @@ -154,7 +154,7 @@ If it looks better to your eye, feel free to use a multi-line list for long argu

```yaml
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.14.0
rev: v1.15.0
hooks:
- id: check-munki-pkgsinfo
args: [
Expand Down
8 changes: 4 additions & 4 deletions pre_commit_hooks/check_munki_pkgsinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def build_argument_parser():
)
parser.add_argument("filenames", nargs="*", help="Filenames to check.")
parser.add_argument(
"--munki-repo",
default=".",
help="path to local munki repo defaults to '.'"
"--munki-repo", default=".", help="path to local munki repo defaults to '.'"
)
parser.add_argument(
"--warn-on-missing-icons",
Expand Down Expand Up @@ -146,7 +144,9 @@ def main(argv=None):

# Check for missing or case-conflicted installer items
if not _check_case_sensitive_path(
os.path.join(args.munki_repo, "pkgs", pkginfo.get("installer_item_location", ""))
os.path.join(
args.munki_repo, "pkgs", pkginfo.get("installer_item_location", "")
)
):
print(
"{}: installer item does not exist or path is not case sensitive".format(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name="pre-commit-macadmin",
description="Pre-commit hooks for Mac admins, client engineers, and IT consultants.",
url="https://github.com/homebysix/pre-commit-macadmin",
version="1.14.0",
version="1.15.0",
author="Elliot Jordan",
author_email="[email protected]",
packages=["pre_commit_hooks"],
Expand Down

0 comments on commit f39601b

Please sign in to comment.