Skip to content

Commit

Permalink
Feat: Stop syncing linked issues (#251)
Browse files Browse the repository at this point in the history
* Feat: workflow create and update

* Fix: server is broken when there are multiple replication slots

* Fix: discord

* Feat: option to stop linked issues
Fix: get docker token from server in cli
Fix: add markdown body in issue and issue comments

* Fix: update issue description in markdown

* Fix: Move issue custom status

* Docs: update actions

* Fix: lint webapp

---------

Co-authored-by: Harshith Mullapudi <[email protected]>
  • Loading branch information
saimanoj and harshithmullapudi authored Sep 17, 2024
1 parent 5f94e7d commit a67e0e0
Show file tree
Hide file tree
Showing 55 changed files with 881 additions and 755 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ OPENAI_API_KEY=
LOCAL_MODEL=gemma2:2b
OLLAMA_HOST=http://localhost:11434

# GITHUB_APP_PEM=
# Used in CLI to push the image to hub
DOCKER_TOKEN=

############# Frontend ###############
# Sync server url used by the frontend to connect to the websocket and server
Expand Down
8 changes: 4 additions & 4 deletions actions/github/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"triggers": [
{
"type": "on_create",
"entities": [ "Issue", "IssueComment", "LinkedIssue" ]
"entities": ["Issue", "IssueComment", "LinkedIssue"]
},
{
"type": "on_update",
"entities": [ "Issue", "IssueComment" ]
"entities": ["Issue", "IssueComment", "LinkedIssue"]
},
{
"type": "source_webhook",
"entities": [ "github" ]
"entities": ["github"]
}
],
"integrations": [ "github" ]
"integrations": ["github"]
}
3 changes: 2 additions & 1 deletion actions/github/handlers/on-update-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { onLabelHandler } from './on-label-handler';
import axios from 'axios';
import { issueSync } from 'triggers/issue-sync';
import { linkIssueSync } from 'triggers/link-issue-sync';

export const onUpdateHandler = async (actionPayload: ActionEventPayload) => {
// Handle different event types
Expand Down Expand Up @@ -48,7 +49,7 @@ export const onUpdateHandler = async (actionPayload: ActionEventPayload) => {
return undefined;

case ModelNameEnum.LinkedIssue:
return undefined;
return linkIssueSync(actionPayload);

default:
logger.debug('Unhandled Github event type:', actionPayload.type);
Expand Down
Loading

0 comments on commit a67e0e0

Please sign in to comment.