Skip to content

Commit

Permalink
📝
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Dec 20, 2024
1 parent ef1ea36 commit 5f58c23
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions connectors/src/connectors/github/temporal/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ export async function githubFullSyncWorkflow(
await githubSaveSuccessSyncActivity(dataSourceConfig);
}

/**
* This workflow is used to fetch and sync all the repositories of a GitHub connector.
* It's called v2 because we had to add it when there was already a workflow without the v2 to avoid non-deterministic errors.
*/
export async function githubFullSyncWorkflowV2(
dataSourceConfig: DataSourceConfig,
connectorId: ModelId,
Expand Down Expand Up @@ -230,6 +234,10 @@ export async function githubReposSyncWorkflow(
await githubSaveSuccessSyncActivity(dataSourceConfig);
}

/**
* This workflow is used to sync the given repositories of a GitHub connector.
* It's called v2 because we had to add it when there was already a workflow without the v2 to avoid non-deterministic errors.
*/
export async function githubReposSyncWorkflowV2(
dataSourceConfig: DataSourceConfig,
connectorId: ModelId,
Expand Down Expand Up @@ -329,6 +337,10 @@ export async function githubRepoIssuesSyncWorkflow({
return true;
}

/**
* This workflow is used to sync all the issues of a GitHub connector.
* It's called v2 because we had to add it when there was already a workflow without the v2 to avoid non-deterministic errors.
*/
export async function githubRepoIssuesSyncWorkflowV2({
dataSourceConfig,
connectorId,
Expand Down Expand Up @@ -441,6 +453,10 @@ export async function githubRepoDiscussionsSyncWorkflow({
return cursor;
}

/**
* This workflow is used to sync all the discussions of a GitHub connector.
* It's called v2 because we had to add it when there was already a workflow without the v2 to avoid non-deterministic errors.
*/
export async function githubRepoDiscussionsSyncWorkflowV2({
dataSourceConfig,
connectorId,
Expand Down Expand Up @@ -601,6 +617,10 @@ export async function githubRepoSyncWorkflow({
});
}

/**
* This workflow is used to sync all the issues, discussions and code of a GitHub connector.
* It's called v2 because we had to add it when there was already a workflow without the v2 to avoid non-deterministic errors.
*/
export async function githubRepoSyncWorkflowV2({
dataSourceConfig,
connectorId,
Expand Down

0 comments on commit 5f58c23

Please sign in to comment.