diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e735914..847a12c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Clone profilecreator-schemas repository + - name: Clone profilemanifests-schemas repository uses: actions/checkout@v2 with: ref: main @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v2 with: ref: master - repository: ProfileCreator/ProfileManifests + repository: ProfileManifests/ProfileManifests path: ProfileManifests - name: Regenerate manifests and commit changes @@ -37,5 +37,5 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com git add -A - git commit -anm "Regenerate manifests" -m "Upstream diff: https://github.com/ProfileCreator/ProfileManifests/compare/$PREV..$HASH" || true + git commit -anm "Regenerate manifests" -m "Upstream diff: https://github.com/ProfileManifests/ProfileManifests/compare/$PREV..$HASH" || true git push --set-upstream origin main || true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1191fd0..b3dbe2d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files args: [--maxkb=100] @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - repo: https://github.com/python/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-isort @@ -32,12 +32,12 @@ repos: hooks: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v3.17.0 + rev: v3.19.0 hooks: - id: pyupgrade args: ['--py36-plus'] - repo: https://github.com/asottile/blacken-docs - rev: 1.18.0 + rev: 1.19.1 hooks: - id: blacken-docs additional_dependencies: [black==24.4.2] diff --git a/README.md b/README.md index 042b25e..b6c3f54 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status Badge](https://github.com/Jamf-Custom-Profile-Schemas/ProfileManifestsMirror/actions/workflows/build.yml/badge.svg)](https://github.com/Jamf-Custom-Profile-Schemas/ProfileManifestsMirror/actions/workflows/build.yml) ![Manifest Count](https://img.shields.io/badge/manifests-253-blue) -This repository contains Jamf JSON schema manifests automatically generated from the repository of [ProfileCreator manifests](https://github.com/ProfileCreator/ProfileManifests). +This repository contains Jamf JSON schema manifests automatically generated from the repository of [ProfileManifests](https://github.com/ProfileManifests/ProfileManifests). To find a manifest on this repo's GitHub page, type `T` and then type part of the preference domain for the app you wish to manage. @@ -13,7 +13,7 @@ Because these manifests have been automatically generated by a relatively new bu ## Submit _manifest_ changes upstream -Any corrections, additions, or modifications to the manifests in this repository should be submitted upstream to the [ProfileManifests](https://github.com/ProfileCreator/ProfileManifests) repository. Once pull requests are merged there, subsequent builds of this repository will include the changes. +Any corrections, additions, or modifications to the manifests in this repository should be submitted upstream to the [ProfileManifests](https://github.com/ProfileManifests/ProfileManifests) repository. Once pull requests are merged there, subsequent builds of this repository will include the changes. ## Submit _build script_ changes here diff --git a/build.py b/build.py index a5514a6..003e16b 100755 --- a/build.py +++ b/build.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Given a path to a folder containing ProfileCreator manifests, this script aims to produce +"""Given a path to a folder containing profile manifests, this script aims to produce equivalent Jamf JSON schema manifests.""" @@ -39,7 +39,7 @@ def build_argument_parser(): parser.add_argument( "input_dir", action="store", - help="path to a directory containing ProfileCreator manifests to be converted", + help="path to a directory containing profile manifests to be converted", ) parser.add_argument( "-o", @@ -100,7 +100,7 @@ def validate_args(args): def read_manifest_plist(path): - """Given a path to a ProfileCreator manifest plist, return the contents of + """Given a path to a profile manifest plist, return the contents of the plist.""" with open(path, "rb") as openfile: try: @@ -220,7 +220,7 @@ def process_subkeys(subkeys): def convert_to_jamf_manifest(data, property_order_increment=5): - """Convert a ProfileCreator plist object to a Jamf JSON schema manifest. + """Convert a profile manifest plist object to a Jamf JSON schema manifest. Reference: https://docs.jamf.com/technical-papers/jamf-pro/json-schema/10.19.0/Understanding_the_Structure_of_a_JSON_Schema_Manifest.html """