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
16 changes: 14 additions & 2 deletions .github/workflows/sync-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,27 @@ jobs:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout develop
# Check out main, not develop: under the workflow_run trigger the
# checkout action's wildcard fetch (+refs/heads/*) intermittently
# advertises only `main`, so `ref: develop` fails with "a branch or tag
# with the name 'develop' could not be found" (broke every release through
# v0.8.4). main is always advertised; we fetch develop by explicit name
# in the next step, which requests the ref directly and is reliable.
- name: Checkout main
uses: actions/checkout@v4
with:
ref: develop
ref: main
fetch-depth: 0
# CI_ADMIN_TOKEN lets this push to develop without tripping
# branch protection (same pattern as ensure-stable-version.yml).
token: ${{ secrets.CI_ADMIN_TOKEN }}

- name: Check out develop by explicit ref
run: |
git fetch origin +refs/heads/develop:refs/remotes/origin/develop
git checkout -B develop refs/remotes/origin/develop
git log --oneline -1

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
6 changes: 6 additions & 0 deletions src/assistants/bids/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ enable_page_context: true
cors_origins:
- https://bids.neuroimaging.io
- https://bids-specification.readthedocs.io
# Temporary: ReadTheDocs PR preview builds, so reviewers can try the widget
# before merge. Remove once these PRs are merged:
# bids-standard/bids-specification#2442 (spec site)
# bids-standard/bids-website#847 (website)
- https://bids-specification--2442.org.readthedocs.build
- https://bids-website--847.org.readthedocs.build

# Per-community OpenRouter API key (optional)
openrouter_api_key_env_var: "OPENROUTER_API_KEY_BIDS"
Expand Down
4 changes: 2 additions & 2 deletions src/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Version information for OSA."""

__version__ = "0.8.4"
__version_info__ = (0, 8, 4)
__version__ = "0.8.5.dev2"
__version_info__ = (0, 8, 5, "dev2")


def get_version() -> str:
Expand Down
3 changes: 3 additions & 0 deletions workers/osa-worker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ function isAllowedOrigin(origin) {
const allowedPatterns = [
'https://osc.earth',
'https://*.mne.tools',
'https://bids-specification--2442.org.readthedocs.build',
'https://bids-specification.readthedocs.io',
'https://bids-website--847.org.readthedocs.build',
'https://bids.neuroimaging.io',
'https://eeglab.org',
'https://fieldtriptoolbox.org',
Expand Down Expand Up @@ -188,6 +190,7 @@ function isAllowedOrigin(origin) {
if (origin.startsWith('https://') && origin.endsWith('.mne.tools')) return true;
if (origin.startsWith('https://') && origin.endsWith('.nemar.org')) return true;
if (origin.startsWith('https://') && origin.endsWith('.neuroimaging.io')) return true;
if (origin.startsWith('https://') && origin.endsWith('.readthedocs.build')) return true;
if (origin.startsWith('https://') && origin.endsWith('.readthedocs.io')) return true;

// Allow demo.osc.earth and single-level subdomains (develop-demo, PR previews)
Expand Down