diff --git a/connectors/src/connectors/github/temporal/activities.ts b/connectors/src/connectors/github/temporal/activities.ts index 6fc6295f3c2c..e6f1ad8a6f92 100644 --- a/connectors/src/connectors/github/temporal/activities.ts +++ b/connectors/src/connectors/github/temporal/activities.ts @@ -154,7 +154,7 @@ export async function githubUpsertIssueActivity( documentUrl: issue.url, timestampMs: lastUpdateTimestamp, tags: tags, - parents: [], + parents: [issueNumber.toString(), repoId.toString()], retries: 3, delayBetweenRetriesMs: 500, loggerArgs: { ...loggerArgs, provider: "github" }, @@ -281,7 +281,7 @@ export async function githubUpsertDiscussionActivity( documentUrl: discussion.url, timestampMs: new Date(discussion.createdAt).getTime(), tags, - parents: [], + parents: [discussionNumber.toString(), repoId.toString()], retries: 3, delayBetweenRetriesMs: 500, loggerArgs: { ...loggerArgs, provider: "github" }, diff --git a/core/src/data_sources/data_source.rs b/core/src/data_sources/data_source.rs index 06fbf68aa7de..c76b44e20c39 100644 --- a/core/src/data_sources/data_source.rs +++ b/core/src/data_sources/data_source.rs @@ -114,6 +114,9 @@ pub struct Chunk { /// parent in the array, their channel (since a channel does not have any /// parent). /// +/// For github, we store the github issue / discussion's number (as string), and +/// the repo name (its "parent" in the hierarchy). +/// /// Parents are at the time of writing only relevant for managed datasources /// since standard datasources do not allow specifying a hierarchy. A parent is /// represented by a string of characters which correspond to the parent's