Skip to content
Open
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
10 changes: 9 additions & 1 deletion .github/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@ steps:
- git config --global core.compression 0
- git config --global http.postBuffer 524288000
- git clone --no-single-branch https://github.com/dataelement/Clawith.git .
# For forked pull requests, the head commit may not exist in the normal
# branch refs of dataelement/Clawith. Fetch the GitHub PR ref explicitly.
- |
if [ "$DRONE_BUILD_EVENT" = "pull_request" ] && [ -n "$DRONE_PULL_REQUEST" ]; then
git fetch origin "refs/pull/${DRONE_PULL_REQUEST}/head:refs/remotes/origin/pr/${DRONE_PULL_REQUEST}"
git checkout "refs/remotes/origin/pr/${DRONE_PULL_REQUEST}"
else
git checkout "$DRONE_COMMIT"
fi
# 将 shallow clone 转换为完整克隆,获取完整 commit 历史
- git fetch --unshallow --tags || git fetch --tags
- git checkout $DRONE_COMMIT
- echo "当前 commit $(git log --oneline -1)"
- echo "上一个 tag $(git describe --tags --abbrev=0 2>/dev/null || echo '无 tag')"

Expand Down
25 changes: 25 additions & 0 deletions backend/alembic/versions/060_add_external_http_channel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Add external_http channel type.

Revision ID: add_external_http_channel
Revises: add_title_to_agent_focus_items
Create Date: 2026-06-08
"""

from typing import Sequence, Union

from alembic import op


revision: str = "add_external_http_channel"
down_revision: Union[str, Sequence[str], None] = "add_title_to_agent_focus_items"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
op.execute("ALTER TYPE channel_type_enum ADD VALUE IF NOT EXISTS 'external_http'")


def downgrade() -> None:
# PostgreSQL cannot safely remove enum values in place.
pass
Loading