Skip to content

Commit ab21851

Browse files
authored
Merge branch 'main' into dependabot/cargo/scraper-0.26
2 parents b6abcd0 + f55da9b commit ab21851

15 files changed

Lines changed: 338 additions & 12 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Bug report
2+
description: Report a bug or unexpected behavior in paperjam
3+
labels: ["bug"]
4+
body:
5+
- type: textarea
6+
id: what-happened
7+
attributes:
8+
label: What happened?
9+
description: A clear description of the bug.
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
id: reproduction
15+
attributes:
16+
label: Minimal reproduction
17+
description: The smallest possible snippet or steps that reproduces the issue.
18+
render: python
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
id: expected
24+
attributes:
25+
label: Expected behavior
26+
description: What you expected to happen instead.
27+
28+
- type: input
29+
id: version
30+
attributes:
31+
label: paperjam version
32+
description: Output of `pip show paperjam` or the crate version from `Cargo.toml`.
33+
placeholder: e.g. 0.1.2
34+
validations:
35+
required: true
36+
37+
- type: dropdown
38+
id: platform
39+
attributes:
40+
label: Platform
41+
options:
42+
- Linux
43+
- macOS
44+
- Windows
45+
validations:
46+
required: true
47+
48+
- type: input
49+
id: python-version
50+
attributes:
51+
label: Python version
52+
description: Output of `python --version`. Leave blank if not using Python bindings.
53+
placeholder: e.g. 3.12.1
54+
55+
- type: textarea
56+
id: context
57+
attributes:
58+
label: Additional context
59+
description: Logs, screenshots, related issues, anything else.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Feature request
2+
description: Suggest a new feature or enhancement for paperjam
3+
labels: ["enhancement"]
4+
body:
5+
- type: textarea
6+
id: problem
7+
attributes:
8+
label: Problem you're trying to solve
9+
description: What's the use case or pain point driving this request?
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
id: solution
15+
attributes:
16+
label: Proposed solution
17+
description: How would you like this to work?
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: alternatives
23+
attributes:
24+
label: Alternatives considered
25+
description: Other approaches you've thought about or tried.
26+
27+
- type: textarea
28+
id: context
29+
attributes:
30+
label: Additional context
31+
description: Links, examples, anything else that helps explain the request.

.github/dependabot.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
1-
version: 2
1+
version: 2
22
updates:
3-
- package-ecosystem: "cargo"
4-
directory: "/"
3+
- package-ecosystem: "cargo"
4+
directory: "/"
55
schedule:
66
interval: "weekly"
7-
7+
groups:
8+
rust-minor-patch:
9+
update-types:
10+
- "minor"
11+
- "patch"
12+
813
- package-ecosystem: "pip"
9-
directory: "/"
10-
schedule:
14+
directory: "/"
15+
schedule:
1116
interval: "weekly"
17+
groups:
18+
python-minor-patch:
19+
update-types:
20+
- "minor"
21+
- "patch"
1222

1323
- package-ecosystem: "npm"
1424
directory: "/docs-site"
1525
schedule:
1626
interval: "weekly"
27+
groups:
28+
js-minor-patch:
29+
update-types:
30+
- "minor"
31+
- "patch"
1732

1833
- package-ecosystem: "github-actions"
1934
directory: "/"
2035
schedule:
2136
interval: "weekly"
37+
groups:
38+
actions-all:
39+
patterns:
40+
- "*"

.github/labeler.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
rust:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- 'crates/**'
5+
- '**/*.rs'
6+
- 'Cargo.toml'
7+
- 'Cargo.lock'
8+
9+
python:
10+
- changed-files:
11+
- any-glob-to-any-file:
12+
- 'py_src/**'
13+
- 'mcp-server/**'
14+
- '**/*.py'
15+
- 'pyproject.toml'
16+
17+
javascript:
18+
- changed-files:
19+
- any-glob-to-any-file:
20+
- 'docs-site/**/*.js'
21+
- 'docs-site/**/*.jsx'
22+
- 'docs-site/**/*.ts'
23+
- 'docs-site/**/*.tsx'
24+
- 'docs-site/**/*.mjs'
25+
- 'docs-site/**/*.cjs'
26+
27+
documentation:
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- 'docs-site/**'
31+
- 'docs/**'
32+
- '**/*.md'
33+
- 'README*'
34+
35+
github_actions:
36+
- changed-files:
37+
- any-glob-to-any-file:
38+
- '.github/workflows/**'
39+
- '.github/actions/**'
40+
41+
mcp:
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- 'crates/paperjam-mcp/**'
45+
- 'mcp-server/**'
46+
47+
wasm:
48+
- changed-files:
49+
- any-glob-to-any-file:
50+
- 'crates/paperjam-wasm/**'

.github/pull_request_template.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Summary
2+
3+
<!-- 1-3 bullets: what changed and why -->
4+
-
5+
6+
## Test plan
7+
8+
<!-- How this was verified. Delete items that don't apply. -->
9+
- [ ] `cargo test` passes locally
10+
- [ ] `pytest` passes locally
11+
- [ ] `cargo fmt --all -- --check` and `cargo clippy` clean
12+
- [ ] Manual check:
13+
14+
## Related issue
15+
16+
<!-- e.g. Fixes #123, or N/A -->
17+
N/A

.github/workflows/ci-mcp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v6
2828

29-
- uses: astral-sh/setup-uv@v6
29+
- uses: astral-sh/setup-uv@v7
3030

3131
- name: Install Rust toolchain
3232
uses: dtolnay/rust-toolchain@stable
@@ -58,7 +58,7 @@ jobs:
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060

61-
- uses: astral-sh/setup-uv@v6
61+
- uses: astral-sh/setup-uv@v7
6262

6363
- name: Build wheel
6464
run: uv build
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Dependabot Auto-Merge
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
auto-merge:
13+
runs-on: ubuntu-latest
14+
if: github.actor == 'dependabot[bot]'
15+
steps:
16+
- name: Fetch Dependabot metadata
17+
id: metadata
18+
uses: dependabot/fetch-metadata@v3
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Auto-approve and enable auto-merge
23+
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
PR_URL: ${{ github.event.pull_request.html_url }}
27+
run: |
28+
echo "Approving and enabling auto-merge for $PR_URL"
29+
echo " Dependency: ${{ steps.metadata.outputs.dependency-names }}"
30+
echo " Update type: ${{ steps.metadata.outputs.update-type }}"
31+
gh pr review "$PR_URL" --approve
32+
gh pr merge "$PR_URL" --auto --squash

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: cd docs-site && npm run build
5353

5454
- name: Upload Pages artifact
55-
uses: actions/upload-pages-artifact@v3
55+
uses: actions/upload-pages-artifact@v5
5656
with:
5757
path: docs-site/build
5858

.github/workflows/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PR Labeler
2+
3+
on:
4+
pull_request_target:
5+
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
10+
jobs:
11+
label:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/labeler@v6
15+
with:
16+
sync-labels: true

0 commit comments

Comments
 (0)