fontsource-downloader 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. fontsource_downloader-0.1.0/.config/cliff.toml +133 -0
  2. fontsource_downloader-0.1.0/.config/committed.toml +18 -0
  3. fontsource_downloader-0.1.0/.config/nextest.toml +22 -0
  4. fontsource_downloader-0.1.0/.gitattributes +27 -0
  5. fontsource_downloader-0.1.0/.github/FUNDING.yml +4 -0
  6. fontsource_downloader-0.1.0/.github/dependabot.yml +57 -0
  7. fontsource_downloader-0.1.0/.github/requirements.txt +1 -0
  8. fontsource_downloader-0.1.0/.github/workflows/bump-n-release.nu +125 -0
  9. fontsource_downloader-0.1.0/.github/workflows/bump-n-release.yml +79 -0
  10. fontsource_downloader-0.1.0/.github/workflows/pre-commit.yml +95 -0
  11. fontsource_downloader-0.1.0/.github/workflows/python.yml +220 -0
  12. fontsource_downloader-0.1.0/.github/workflows/rust.yml +105 -0
  13. fontsource_downloader-0.1.0/.github/zizmor.yml +7 -0
  14. fontsource_downloader-0.1.0/.gitignore +198 -0
  15. fontsource_downloader-0.1.0/.pre-commit-config.yaml +25 -0
  16. fontsource_downloader-0.1.0/.vscode/extensions.json +7 -0
  17. fontsource_downloader-0.1.0/.vscode/settings.json +5 -0
  18. fontsource_downloader-0.1.0/CHANGELOG.md +37 -0
  19. fontsource_downloader-0.1.0/CONTRIBUTING.md +134 -0
  20. fontsource_downloader-0.1.0/Cargo.lock +2322 -0
  21. fontsource_downloader-0.1.0/Cargo.toml +38 -0
  22. fontsource_downloader-0.1.0/LICENSE +21 -0
  23. fontsource_downloader-0.1.0/PKG-INFO +76 -0
  24. fontsource_downloader-0.1.0/README.md +62 -0
  25. fontsource_downloader-0.1.0/pyproject.toml +34 -0
  26. fontsource_downloader-0.1.0/src/caching.rs +319 -0
  27. fontsource_downloader-0.1.0/src/client.rs +784 -0
  28. fontsource_downloader-0.1.0/src/error.rs +124 -0
  29. fontsource_downloader-0.1.0/src/lib.rs +26 -0
  30. fontsource_downloader-0.1.0/src/query.rs +218 -0
  31. fontsource_downloader-0.1.0/src/responses.rs +66 -0
  32. fontsource_downloader-0.1.0/tests/assets/family_metadata.json +19 -0
  33. fontsource_downloader-0.1.0/tests/assets/font_list.json +3 -0
  34. fontsource_downloader-0.1.0/uv.lock +625 -0
@@ -0,0 +1,133 @@
1
+ # git-cliff ~ configuration file
2
+ # https://git-cliff.org/docs/configuration
3
+
4
+ [changelog]
5
+ # template for the changelog header
6
+ header = """
7
+ # Changelog\n
8
+ All notable changes to this project will be documented in this file.
9
+
10
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
11
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
12
+ <!-- markdownlint-disable MD024 -->\n
13
+ """
14
+ # template for the changelog body
15
+ # https://keats.github.io/tera/docs/#introduction
16
+ body = """
17
+ {%- macro remote_url() -%}
18
+ https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
19
+ {%- endmacro -%}
20
+ {%- set UNRELEASED = "Unreleased" -%}
21
+ {%- set init_commit = "188040029d21b91576697d4015904a92f85f0e78" -%}
22
+ {%- set this_version = UNRELEASED -%}
23
+
24
+ {% if version -%}
25
+ {%- set this_version = version | trim_start_matches(pat="v") -%}
26
+ ## [{{ this_version }}] - {{ timestamp | date(format="%Y-%m-%d") }}
27
+ {%- if message %}
28
+
29
+ > {{ message }}
30
+ {%- endif %}
31
+ {% else -%}
32
+ ## [{{ UNRELEASED }}]{% if previous and previous.timestamp %} - {{ previous.timestamp | date(format="%Y-%m-%d") }} to present{% endif %}
33
+ {% endif -%}
34
+
35
+ {% for group, commits in commits | group_by(attribute="group") %}
36
+ ### {{ group | upper_first }}
37
+ {% for commit in commits %}
38
+ - {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
39
+ {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
40
+ {% if commit.remote.pr_number %} in \
41
+ [#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }})
42
+ {%- else %} in \
43
+ [`{{ commit.id | truncate(length=7, end="") }}`]({{ self::remote_url() }}/commit/{{commit.id }})
44
+ {%- endif -%}
45
+ {% endfor %}
46
+ {% endfor -%}
47
+
48
+ {% set last_commit = "HEAD" -%}
49
+ {%- set first_commit = init_commit -%}
50
+ {% if version -%}
51
+ {%- set last_commit = version -%}
52
+ {%- if previous and previous.version -%}
53
+ {%- set first_commit = previous.version -%}
54
+ {%- endif -%}
55
+ {%- endif %}
56
+ [{{ this_version }}]: {{ self::remote_url() }}/compare/{{ first_commit }}...{{ last_commit }}
57
+
58
+ Full commit diff: [`{% if previous.version -%}
59
+ {{ first_commit }}
60
+ {%- else -%}
61
+ {{ init_commit | truncate(length=7, end="") }}
62
+ {%- endif %}...{{ last_commit }}`][{{ this_version }}]
63
+ {% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
64
+ ## New Contributors
65
+ {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
66
+ - @{{ contributor.username }} made their first contribution
67
+ {%- if contributor.pr_number %} in \
68
+ [#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
69
+ {%- endif %}
70
+ {%- endfor %}
71
+ {% endif %}
72
+
73
+ """
74
+ # template for the changelog footer
75
+ footer = """
76
+
77
+ <!-- generated by git-cliff -->
78
+ """
79
+ # remove the leading and trailing whitespace from the templates
80
+ trim = true
81
+ # The file path for output. This can be overridden with `--output` CLI arg
82
+ # output = "CHANGELOG.md"
83
+
84
+ [git]
85
+ # parse the commits based on https://www.conventionalcommits.org
86
+ conventional_commits = true
87
+ # filter out the commits that are not conventional
88
+ filter_unconventional = true
89
+ # don not skip commits with breaking changes
90
+ protect_breaking_commits = true
91
+ # regex for preprocessing the commit messages
92
+ commit_preprocessors = [
93
+ # remove issue numbers from commits
94
+ { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
95
+ # re-title vague version bump commits (for older bump commits)
96
+ { pattern = 'chore\(([a-z0-9-]+)\): bump version to ', replace = 'build: bump $1 to v' },
97
+ # reassign bump commits to deps category (for older bump commits)
98
+ { pattern = 'chore: bump rf24', replace = 'build: bump rf24' },
99
+ # wrap package names in backticks
100
+ { pattern = '(rf24[a-z]*\-[a-z]+)', replace = '`$1`' },
101
+ ]
102
+ # regex for parsing and grouping commits
103
+ commit_parsers = [
104
+ # The order of parsers matters.
105
+ { field = "group", pattern = "add", group = "<!-- 1 --> 🚀 Added" },
106
+ { field = "group", pattern = "feat", group = "<!-- 1 --> 🚀 Added" },
107
+ { field = "group", pattern = "fix", group = "<!-- 4 --> 🛠️ Fixed" },
108
+ { field = "group", pattern = "perf", group = "<!-- 4 --> 🛠️ Fixed" },
109
+ { field = "group", pattern = "build", group = "<!-- 6 --> 📦 Dependency updates" },
110
+ { field = "group", pattern = "test", group = "<!-- 7 -->🚦 Tests" },
111
+ { field = "group", pattern = "docs", group = "<!-- 8 --> 📝 Documentation" },
112
+ { field = "group", pattern = "chore", group = "<!-- 9 --> 🗨️ Changed" },
113
+ { field = "group", pattern = "style", group = "<!-- 9 --> 🗨️ Changed" },
114
+ { field = "breaking", pattern = true, group = "<!-- 10 --> 💥 Breaking Changes" },
115
+ { field = "group", pattern = "remove", group = "<!-- 3 --> 🗑️ Removed" },
116
+ { field = "group", pattern = "deprecate", group = "<!-- 2 --> 🚫 Deprecated" },
117
+ { field = "group", pattern = "delete", group = "<!-- 3 --> 🗑️ Removed" },
118
+ { field = "group", pattern = "security", group = "<!-- 5 --> 🔐 Security" },
119
+ { field = "group", pattern = "refactor", group = "<!-- 9 --> 🗨️ Changed" },
120
+ ]
121
+ # filter out the commits that are not matched by commit parsers
122
+ filter_commits = true
123
+ # sort the tags topologically
124
+ topo_order = false # spell-checker: disable-line
125
+ # sort the commits inside sections by oldest/newest order
126
+ sort_commits = "oldest"
127
+ # Ignore rolling tags for major and minor versions.
128
+ # Only use tags with full version.
129
+ tag_pattern = "v[0-9]+.[0-9]+.[0-9]+"
130
+
131
+ [remote.github]
132
+ owner = "2bndy5"
133
+ repo = "fontsource-downloader"
@@ -0,0 +1,18 @@
1
+ style = "conventional"
2
+ subject_capitalized = false
3
+ allowed_types = [
4
+ "fix",
5
+ "feat",
6
+ "build",
7
+ "chore",
8
+ "docs",
9
+ "style",
10
+ "refactor",
11
+ "remove",
12
+ "deprecate",
13
+ "security",
14
+ "add",
15
+ "perf",
16
+ "test",
17
+ ]
18
+ subject_length = 0 # unlimited
@@ -0,0 +1,22 @@
1
+ # required minimum nextest version
2
+ nextest-version = "0.9.77"
3
+
4
+ [profile.default]
5
+ # A profile to run most tests, except tests that run longer than 10 seconds
6
+ default-filter = "all()"
7
+
8
+ # This will flag any test that runs longer than 10 seconds. Useful when writing new tests.
9
+ slow-timeout = "10s"
10
+
11
+ [profile.ci]
12
+ # A profile to run only tests that use clang-tidy and/or clang-format
13
+ # NOTE: This profile is intended to keep CI runtime low. Locally, use default or all profiles
14
+
15
+ # This is all tests in tests/ folder + unit test for --extra-args.
16
+ default-filter = "all()"
17
+
18
+ # show which tests were skipped
19
+ status-level = "skip"
20
+
21
+ # show log output from each test
22
+ failure-output = "final"
@@ -0,0 +1,27 @@
1
+ # Set the default behavior, in case people don't have core.autocrlf set.
2
+ * text=auto
3
+
4
+ # Explicitly declare text files you want to always be normalized and converted
5
+ # to native line endings on checkout.
6
+ *.py text eol=lf
7
+ *.pyi text eol=lf
8
+ *.rst text eol=lf
9
+ *.css text eol=lf
10
+ *.md text eol=lf
11
+ *.rs text eol=lf
12
+ *.mjs text eol=lf
13
+ *.js text eol=lf
14
+ *.ts text eol=lf
15
+ *.yaml text eol=lf
16
+ *.toml text eol=lf
17
+ *.lock text eol=lf
18
+ *.yml text eol=lf
19
+ *.yaml text eol=lf
20
+ *.sh text eol=lf
21
+ *.nu text eol=lf
22
+ nurfile text eol=lf
23
+ .gitattributes text eol=lf
24
+ .gitignore text eol=lf
25
+ *.txt text eol=lf
26
+ *.json text eol=lf
27
+ LICENSE text eol=lf
@@ -0,0 +1,4 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: 2bndy5
4
+ custom: ["https://www.paypal.me/Brendan884"] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,57 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: github-actions
9
+ directory: /
10
+ schedule:
11
+ interval: "monthly"
12
+ cooldown:
13
+ default-days: 7
14
+ groups:
15
+ actions:
16
+ patterns:
17
+ - "*"
18
+ - package-ecosystem: uv
19
+ directory: /
20
+ schedule:
21
+ interval: "monthly"
22
+ cooldown:
23
+ default-days: 7
24
+ groups:
25
+ uv:
26
+ patterns:
27
+ - "*"
28
+ - package-ecosystem: pip
29
+ directory: .github/
30
+ schedule:
31
+ interval: "monthly"
32
+ cooldown:
33
+ default-days: 7
34
+ groups:
35
+ pip:
36
+ patterns:
37
+ - "*"
38
+ - package-ecosystem: cargo
39
+ directory: /
40
+ schedule:
41
+ interval: "monthly"
42
+ cooldown:
43
+ default-days: 7
44
+ groups:
45
+ cargo:
46
+ patterns:
47
+ - "*"
48
+ # - package-ecosystem: npm
49
+ # directory: /
50
+ # schedule:
51
+ # interval: "monthly"
52
+ # cooldown:
53
+ # default-days: 7
54
+ # groups:
55
+ # yarn:
56
+ # patterns:
57
+ # - "*"
@@ -0,0 +1 @@
1
+ git-cliff==2.13.1
@@ -0,0 +1,125 @@
1
+ # This script automates the release process for all of the packages in this repository.
2
+ # In order, this script does the following:
3
+ #
4
+ # 1. Bump version number in Cargo.toml manifest.
5
+ #
6
+ # This step requires `cargo-edit` installed.
7
+ #
8
+ # 2. Updates the CHANGELOG.md
9
+ #
10
+ # Requires `git-cliff` (see https://git-cliff.org) to be installed
11
+ # to regenerate the change logs from git history.
12
+ #
13
+ # NOTE: `git cliff` uses GITHUB_TOKEN env var to access GitHub's REST API for
14
+ # fetching certain data (like PR labels and commit author's username).
15
+ #
16
+ # 3. Pushes the changes from (steps 1 and 2) to remote
17
+ #
18
+ # 4. Creates a GitHub Release and uses the section from the CHANGELOG about the new tag
19
+ # as a release description.
20
+ #
21
+ # Requires `gh-cli` (see https://cli.github.com) to be installed to create the release
22
+ # and push the tag.
23
+ #
24
+ # NOTE: This step also tags the commit from step 3.
25
+ # When a tag is pushed to the remote, the CI builds are triggered and
26
+ # a package are published to crates.io
27
+ #
28
+ # NOTE: In a CI run, the GITHUB_TOKEN env var to authenticate access.
29
+ # Locally, you can use `gh login` to interactively authenticate the user account.
30
+
31
+
32
+ let IN_CI = $env | get --optional CI | default "false" | ($in == "true") or ($in == true)
33
+
34
+ # Bump the version per the given component name (major, minor, patch)
35
+ #
36
+ # This function also updates known occurrences of the old version spec to
37
+ # the new version spec in various places (like README.md and action.yml).
38
+ def bump-version [
39
+ component: string # the version component to bump
40
+ ] {
41
+ mut args = [--bump $component]
42
+ if (not $IN_CI) {
43
+ $args = $args | append "--dry-run"
44
+ }
45
+ let result = (
46
+ cargo set-version ...$args e>| lines
47
+ | first
48
+ | str trim
49
+ | parse "Upgrading {pkg} from {old} to {new}"
50
+ | first
51
+ )
52
+ print $"bumped ($result | get old) to ($result | get new)"
53
+ print "Updating Cargo.lock file"
54
+ if (not $IN_CI) {
55
+ ^cargo update --workspace
56
+ }
57
+ $result | get new
58
+ }
59
+
60
+ # Use `git-cliff` tp generate changes.
61
+ #
62
+ # If `--unreleased` is asserted, then the `git-cliff` output will be saved to .config/ReleaseNotes.md.
63
+ # Otherwise, the generated changes will span the entire git history and be saved to CHANGELOG.md.
64
+ def gen-changes [
65
+ tag: string, # the new version tag to use for unreleased changes.
66
+ --unreleased, # only generate changes from unreleased version.
67
+ ] {
68
+ mut args = [--tag, $tag, --config, .config/cliff.toml]
69
+ let prompt = if $unreleased {
70
+ let out_path = ".config/ReleaseNotes.md"
71
+ $args = $args | append [--strip, header, --unreleased, --output, $out_path]
72
+ {out_path: $out_path, log_prefix: "Generated"}
73
+ } else {
74
+ let out_path = "CHANGELOG.md"
75
+ $args = $args | append [--output, $out_path]
76
+ {out_path: $out_path, log_prefix: "Updated"}
77
+ }
78
+ ^git-cliff ...$args
79
+ print ($prompt | format pattern "{log_prefix} {out_path}")
80
+ }
81
+
82
+ # Is the the default branch currently checked out?
83
+ def is-on-main [] {
84
+ let branch = (
85
+ ^git branch
86
+ | lines
87
+ | where {$in | str starts-with '*'}
88
+ | first
89
+ | str trim --left --char '*'
90
+ | str trim
91
+ ) == "main"
92
+ $branch
93
+ }
94
+
95
+ # The main function of this script.
96
+ #
97
+ # The `component` parameter is a required CLI option:
98
+ # nu .github/workflows/bump-n-release.nu patch
99
+ #
100
+ # The acceptable `component` values are what `cargo set-version` accepts:
101
+ #
102
+ # - manor
103
+ # - minor
104
+ # - patch
105
+ def main [component: string] {
106
+ let ver = bump-version $component
107
+ let tag = $"v($ver)"
108
+ gen-changes $tag
109
+ gen-changes $tag --unreleased
110
+ let is_main = is-on-main
111
+ if not $is_main {
112
+ print $"(ansi yellow)Not checked out on default branch!(ansi reset)"
113
+ }
114
+ if $IN_CI and $is_main {
115
+ git config --global user.name $"($env.GITHUB_ACTOR)"
116
+ git config --global user.email $"($env.GITHUB_ACTOR_ID)+($env.GITHUB_ACTOR)@users.noreply.github.com"
117
+ git add --all
118
+ git commit -m $"build: bump version to ($tag)"
119
+ git push
120
+ print $"Deploying ($tag)"
121
+ ^gh release create $tag --notes-file ".config/ReleaseNotes.md"
122
+ } else if $is_main {
123
+ print $"(ansi yellow)Not deploying from local clone.(ansi reset)"
124
+ }
125
+ }
@@ -0,0 +1,79 @@
1
+ name: Bump-n-Release
2
+
3
+ # NOTE: The change log is only updated in the remote upon release (in `bump-release` job)
4
+
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ pull_request:
9
+ branches: [main]
10
+ workflow_dispatch:
11
+ inputs:
12
+ component:
13
+ description: The version component to increase
14
+ type: choice
15
+ required: true
16
+ default: patch
17
+ options:
18
+ - major
19
+ - minor
20
+ - patch
21
+
22
+ permissions: {}
23
+
24
+ jobs:
25
+ bump-release:
26
+ if: github.event_name == 'workflow_dispatch'
27
+ runs-on: ubuntu-latest
28
+ environment:
29
+ name: deployment-staging
30
+ steps:
31
+ - uses: actions/checkout@v6
32
+ with:
33
+ token: ${{ secrets.BUMP_N_RELEASE }}
34
+ fetch-depth: 0
35
+ fetch-tags: true
36
+ persist-credentials: true # allow `git push`
37
+
38
+ - uses: cargo-bins/cargo-binstall@aaa84a43aec4955a42c5ffc65d258961e39f276e # v1.19.1
39
+ - run: cargo binstall -y git-cliff nu
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
+ - run: >-
43
+ cargo install --locked
44
+ cargo-edit
45
+ --no-default-features
46
+ --features set-version
47
+
48
+ - name: Bump ${{ inputs.component }} version
49
+ env:
50
+ GITHUB_TOKEN: ${{ secrets.BUMP_N_RELEASE }}
51
+ run: nu .github/workflows/bump-n-release.nu ${{ inputs.component }}
52
+
53
+ unreleased-notes:
54
+ if: github.event_name != 'workflow_dispatch'
55
+ permissions:
56
+ contents: read
57
+ pull-requests: read
58
+ runs-on: ubuntu-latest
59
+ steps:
60
+ - uses: actions/checkout@v6
61
+ with:
62
+ fetch-depth: 0
63
+ fetch-tags: true
64
+ persist-credentials: false
65
+ - uses: actions/setup-python@v6
66
+ with:
67
+ python-version: '3.x'
68
+ - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
69
+ - name: Generate a changelog
70
+ run: >-
71
+ uvx --constraints .github/requirements.txt
72
+ git-cliff
73
+ --config .config/cliff.toml
74
+ --unreleased
75
+ --output "${GITHUB_STEP_SUMMARY}"
76
+ # --bump
77
+ env:
78
+ GITHUB_TOKEN: ${{ github.token }}
79
+ GITHUB_REPO: ${{ github.repository }}
@@ -0,0 +1,95 @@
1
+ name: pre-commit
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions: {}
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tag/v') && github.ref != 'refs/head/main' }}
14
+
15
+ jobs:
16
+ all-files:
17
+ # also lints python files
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v6
21
+ with:
22
+ persist-credentials: false
23
+ - name: Install the latest version of uv
24
+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
25
+ id: setup-uv
26
+ with:
27
+ enable-cache: true
28
+ - name: Setup node
29
+ uses: actions/setup-node@v6
30
+ with:
31
+ node-version: 24
32
+ package-manager-cache: false
33
+ - name: Cache pre-commit environments
34
+ uses: actions/cache@v5
35
+ with:
36
+ path: '~/.cache/pre-commit'
37
+ key: pre-commit-${{ steps.setup-uv.outputs.uv-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
38
+ - run: uvx pre-commit run --show-diff-on-failure --color=always --all-files
39
+
40
+ lint-rust:
41
+ runs-on: ubuntu-latest
42
+ steps:
43
+ - uses: actions/checkout@v6
44
+ with:
45
+ persist-credentials: false
46
+ - name: Cache deps
47
+ uses: actions/cache@v5
48
+ with:
49
+ path: ~/.cargo
50
+ key: cargo-lint-${{ hashFiles('Cargo.lock') }}
51
+ - name: Setup Rust
52
+ run: rustup update --no-self-update
53
+ - run: cargo clippy -- -D warnings
54
+ - run: cargo fmt --check
55
+
56
+ check-pr-title:
57
+ name: Check PR title
58
+ if: github.event_name == 'pull_request'
59
+ runs-on: ubuntu-latest
60
+ permissions:
61
+ contents: read
62
+ pull-requests: read
63
+ steps:
64
+ - name: Checkout ${{ github.repository }} repo
65
+ # needed for cspell.config.yml (project-specific)
66
+ uses: actions/checkout@v6
67
+ with:
68
+ persist-credentials: false
69
+ - name: Get PR title
70
+ id: get-title
71
+ env:
72
+ GH_REPO: ${{ github.repository }}
73
+ GH_TOKEN: ${{ github.token }}
74
+ PR_NUMBER: ${{ github.event.pull_request.number }}
75
+ run: |-
76
+ pr_title=$(gh pr view "${PR_NUMBER}" --repo "${GH_REPO}" --json "title" -q ".title")
77
+ echo "title=${pr_title}" >> "${GITHUB_OUTPUT}"
78
+ - run: rustup update --no-self-update
79
+ - name: Install cargo-binstall
80
+ uses: cargo-bins/cargo-binstall@aaa84a43aec4955a42c5ffc65d258961e39f276e # v1.19.1
81
+ - name: Install committed
82
+ run: cargo binstall -y committed
83
+ env:
84
+ GITHUB_TOKEN: ${{ github.token }}
85
+ - name: conventional-commit
86
+ env:
87
+ PR_TITLE: "${{ steps.get-title.outputs.title }}"
88
+ run: echo "${PR_TITLE}" | committed --config .config/committed.toml --commit-file -
89
+ - uses: actions/setup-node@v6
90
+ with:
91
+ node-version: latest
92
+ - name: spell check
93
+ env:
94
+ PR_TITLE: "${{ steps.get-title.outputs.title }}"
95
+ run: echo "${PR_TITLE}" | npx cspell-cli lint stdin