Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ jobs:
run: uv sync --all-extras --dev

- name: Build docs
env:
PR_NUMBER: ${{ github.event.number }}
run: uv run make docs

- name: Check docs links
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ jobs:
with:
script: |
const issue_number = process.env.PR_NUMBER
const body = "Documentation preview will be available shortly at https://litestar-org.github.io/advanced-alchemy-docs-preview/" + issue_number
const previewUrl = `https://litestar-org.github.io/advanced-alchemy-docs-preview/${issue_number}`
const body = `## 📚 Documentation Preview

The documentation preview for this PR is available at:

**${previewUrl}**

> [!NOTE]
> The preview is updated automatically when changes are pushed to this PR.`

const opts = github.rest.issues.listComments.endpoint.merge({
owner: context.repo.owner,
Expand All @@ -55,7 +63,7 @@ jobs:
const comments = await github.paginate(opts)

for (const comment of comments) {
if (comment.user.id === 41898282 && comment.body === body) {
if (comment.user.id === 41898282 && comment.body.includes('Documentation Preview')) {
await github.rest.issues.deleteComment({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
2 changes: 1 addition & 1 deletion advanced_alchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ class IdentityAuditBase(CommonTableAttributes, IdentityPrimaryKey, AuditColumns,


class DefaultBase(CommonTableAttributes, AdvancedDeclarativeBase, AsyncAttrs):
"""Base for all SQLAlchemy declarative models. No primary key is added.
"""Base for all SQLAlchemy declarative models. No primary key is added.

.. seealso::
:class:`CommonTableAttributes`
Expand Down
Loading