Skip to content

Commit 075e7cc

Browse files
committed
Merge branch 'main' into ovhcloud/add-ai-endpoints-llms
2 parents 0e4f172 + 0b97686 commit 075e7cc

File tree

648 files changed

+32913
-10630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

648 files changed

+32913
-10630
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## Checklist
66

7+
- [] I've read the [contributing guide](https://github.com/continuedev/continue/blob/main/CONTRIBUTING.md)
78
- [] The relevant docs, if any, have been updated or created
89
- [] The relevant tests, if any, have been updated or created
910

.github/workflows/auto-release.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Create Automatic Release
2+
3+
on:
4+
push:
5+
branches:
6+
- nate/auto-main-release-draft
7+
schedule:
8+
- cron: "0 17 * * 1,3,5" # Run at 9am PST (17:00 UTC) on Monday, Wednesday, Friday
9+
workflow_dispatch: # Keep manual trigger option
10+
11+
jobs:
12+
create-vscode-release:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write # Needed for creating releases
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Get version from package.json
21+
id: get_version
22+
run: |
23+
# Read version from package.json and add -vscode suffix
24+
version=$(node -p "require('./extensions/vscode/package.json').version")
25+
new_version="v${version}-vscode"
26+
echo "New version will be: $new_version"
27+
echo "NEW_VERSION=$new_version" >> $GITHUB_ENV
28+
29+
- name: Create Release
30+
env:
31+
GH_TOKEN: ${{ github.token }}
32+
run: |
33+
# Create a new draft release with auto-generated release notes
34+
gh release create "$NEW_VERSION" \
35+
--generate-notes \
36+
--title "$NEW_VERSION" \
37+
--draft \
38+
--latest \
39+
--prerelease
40+
41+
create-jetbrains-release:
42+
runs-on: ubuntu-latest
43+
permissions:
44+
contents: write # Needed for creating releases
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
51+
- name: Get version from gradle.properties
52+
id: get_version
53+
run: |
54+
# Read version from gradle.properties and add -jetbrains suffix
55+
version=$(grep '^pluginVersion=' extensions/intellij/gradle.properties | cut -d'=' -f2)
56+
new_version="v${version}-jetbrains"
57+
echo "New version will be: $new_version"
58+
echo "NEW_VERSION=$new_version" >> $GITHUB_ENV
59+
60+
- name: Create Release
61+
env:
62+
GH_TOKEN: ${{ github.token }}
63+
run: |
64+
# Create a new draft release with auto-generated release notes
65+
gh release create "$NEW_VERSION" \
66+
--generate-notes \
67+
--title "$NEW_VERSION" \
68+
--draft \
69+
--latest \
70+
--prerelease

.github/workflows/jetbrains-release.yaml

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,52 @@ jobs:
3737
echo "should_run=false" >> $GITHUB_OUTPUT
3838
fi
3939
40+
bump-version:
41+
runs-on: ubuntu-latest
42+
needs:
43+
- check_release_name
44+
if: github.event_name != 'workflow_dispatch' || github.event.inputs.publish_build == 'true'
45+
permissions:
46+
contents: write
47+
pull-requests: write
48+
steps:
49+
# 0. Setup git
50+
- name: Checkout
51+
uses: actions/checkout@v4
52+
53+
- name: Set up Git
54+
run: |
55+
git config --local user.email "action@github.com"
56+
git config --local user.name "GitHub Action"
57+
58+
- name: Create PR branch
59+
run: |
60+
BRANCH_NAME="chore/bump-jetbrains-version-$(date +%Y%m%d-%H%M%S)"
61+
git checkout -b $BRANCH_NAME
62+
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
63+
64+
- name: Bump version in gradle.properties
65+
run: |
66+
cd extensions/intelllij
67+
awk '/pluginVersion=/{split($0,a,"="); split(a[2],b,"."); b[3]+=1; printf "%s=%s.%s.%s\n",a[1],b[1],b[2],b[3];next}1' gradle.properties > tmp && mv tmp gradle.properties
68+
rm -rf tmp
69+
NEW_VERSION=$(grep 'pluginVersion=' gradle.properties | cut -d'=' -f2)
70+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
71+
72+
- name: Create Pull Request
73+
uses: peter-evans/create-pull-request@v7
74+
with:
75+
token: ${{ secrets.CI_GITHUB_TOKEN }}
76+
commit-message: "chore: bump jetbrains extension version to ${{ env.NEW_VERSION }}"
77+
title: "chore: bump jetbrains extension version to ${{ env.NEW_VERSION }}"
78+
body: |
79+
Automated PR to bump the JetBrains extension version after successful pre-release publication.
80+
81+
- Bumped version in extensions/intellij/gradle.properties to ${{ env.NEW_VERSION }}
82+
branch: ${{ env.BRANCH_NAME }}
83+
base: main
84+
delete-branch: true
85+
4086
# Prepare and publish the plugin to JetBrains Marketplace repository
4187
build:
4288
needs: check_release_name
@@ -121,6 +167,21 @@ jobs:
121167
path: gui/node_modules
122168
key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }}
123169

170+
- uses: actions/cache@v4
171+
id: config-yaml-cache
172+
with:
173+
path: packages/config-yaml/node_modules
174+
key: ${{ runner.os }}-config-yaml-node-modules-${{ hashFiles('packages/config-yaml/package-lock.json') }}
175+
176+
- name: Build and check config-yaml
177+
run: |
178+
cd ../../packages/config-yaml
179+
npm i
180+
npx tsc --noEmit
181+
# Tests are currently failing, commenting out for now
182+
# npm test
183+
npm run build
184+
124185
# npm install core
125186
- name: Install core node_modules
126187
run: |
@@ -420,7 +481,7 @@ jobs:
420481

421482
# Run Qodana inspections
422483
- name: Qodana - Code Inspection
423-
uses: JetBrains/qodana-action@v2024.3.2
484+
uses: JetBrains/qodana-action@v2025.1.0
424485
with:
425486
cache-default-branch-only: true
426487

0 commit comments

Comments
 (0)