Skip to content

Commit

Permalink
release branch from preview ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Aug 7, 2024
1 parent 94a4200 commit 8b40142
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,36 @@ jobs:
repository: continuedev/continue
prerelease: true

release-branch:
runs-on: ubuntu-latest
needs:
- build
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create release branch
run: |
# Set up Git
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
# Get the current version
current_version=$(grep -o '"version": "[^"]*' extensions/vscode/package.json | cut -d'"' -f4)
# Create a new branch name
new_branch="release-${current_version}"
# Create and checkout the new branch
git checkout -b $new_branch
# Push the new branch to the remote repository
git push origin $new_branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish:
runs-on: ubuntu-latest
needs:
Expand Down
3 changes: 3 additions & 0 deletions core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ export class Core {

this.messenger.onError((err) => {
console.error(err);
Telemetry.capture("core_messenger_error", {
message: err.message,
});
this.messenger.request("errorPopup", { message: err.message });
});

Expand Down
9 changes: 9 additions & 0 deletions extensions/vscode/src/webviewProtocol.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { FromWebviewProtocol, ToWebviewProtocol } from "core/protocol";
import { Message } from "core/util/messenger";
import { Telemetry } from "core/util/posthog";
import fs from "node:fs";
import path from "path";
import { v4 as uuidv4 } from "uuid";
Expand Down Expand Up @@ -153,6 +154,14 @@ export class VsCodeWebviewProtocol
}
});
} else {
Telemetry.capture(
"webview_protocol_error",
{
messageType: msg.messageType,
errorMsg: message.split("\n\n")[0],
},
false,
);
vscode.window
.showErrorMessage(
message.split("\n\n")[0],
Expand Down
2 changes: 1 addition & 1 deletion gui/src/components/loaders/IndexingProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const IndexingProgressBar = ({
<StatusDot color={STATUS_COLORS.FAILED}></StatusDot>
<div>
<StatusHeading>Indexing error - click to retry</StatusHeading>
<StatusInfo>{getIndexingErrMsg(indexingState.desc)}</StatusInfo>
{/* <StatusInfo>{getIndexingErrMsg(indexingState.desc)}</StatusInfo> */}
</div>
{tooltipPortalDiv &&
ReactDOM.createPortal(
Expand Down

0 comments on commit 8b40142

Please sign in to comment.