Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages/otdf-python-proto/src/otdf_python_proto/** linguist-generated=true
packages/otdf-python-proto/proto-files/** linguist-generated=true
35 changes: 35 additions & 0 deletions .github/workflows/lint-pr-title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint PR Title

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Types must match changelog-sections in .release-please-config.json
types: |
feat
fix
perf
revert
docs
refactor
build
style
chore
test
ci
requireScope: false
10 changes: 6 additions & 4 deletions packages/otdf-python-proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ See [CONNECT_RPC.md](../docs/CONNECT_RPC.md) for additional information.
To generate Connect RPC clients and protobuf files:

```bash
cd otdf-python-proto
cd packages/otdf-python-proto
uv run python scripts/generate_connect_proto.py
```

Or use the convenience script:

```bash
cd packages/otdf-python-proto
./scripts/build_connect_proto.sh
```

Expand All @@ -50,13 +51,14 @@ This generates:
To generate traditional gRPC clients (backward compatibility):

```bash
cd otdf-python-proto
cd packages/otdf-python-proto
uv run python scripts/generate_proto.py
```

Or use the legacy script:

```bash
cd packages/otdf-python-proto
./scripts/build_proto.sh
```

Expand All @@ -65,7 +67,7 @@ Or use the legacy script:
To download the latest proto files from OpenTDF platform:

```bash
cd otdf-python-proto
cd packages/otdf-python-proto
uv run python scripts/generate_connect_proto.py --download
```

Expand Down Expand Up @@ -159,7 +161,7 @@ response = client.GetPolicy(request)
If you're migrating from traditional gRPC clients to Connect RPC:

1. Read the [Connect RPC Migration Guide](../docs/CONNECT_RPC.md)
2. Run the Connect RPC generation: `./scripts/build_connect_proto.sh` (or from the submodule: `cd otdf-python-proto && uv run python scripts/generate_connect_proto.py`)
2. Run the Connect RPC generation: `cd packages/otdf-python-proto && ./scripts/build_connect_proto.sh` (or: `cd packages/otdf-python-proto && uv run python scripts/generate_connect_proto.py`)
3. Update your client code to use `*_connect.py` modules
4. Test with your authentication and deployment setup
5. Optionally remove legacy gRPC dependencies
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 15 additions & 12 deletions packages/otdf-python-proto/proto-files/policy/objects.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading