Skip to content

Commit

Permalink
chore(community): jira doc loader example: host and projectKey as env…
Browse files Browse the repository at this point in the history
… var
  • Loading branch information
mgiorgino-iobeya committed Nov 29, 2024
1 parent bc1f3b9 commit e98b141
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/src/document_loaders/jira.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { JiraProjectLoader } from "@langchain/community/document_loaders/web/jira";

const host = process.env.JIRA_HOST;
const username = process.env.JIRA_USERNAME;
const accessToken = process.env.JIRA_ACCESS_TOKEN;
const projectKey = process.env.JIRA_PROJECT_KEY;

if (username && accessToken) {
const loader = new JiraProjectLoader({
host: "https://example.atlassian.net/wiki",
projectKey: "PI",
host,
projectKey,
username,
accessToken,
});
Expand Down

0 comments on commit e98b141

Please sign in to comment.