diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-23 12:38:46 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-23 12:38:46 -0700 |
commit | 5ffe03c3ee0dc160999a03d4efd50735cff5cdcf (patch) | |
tree | fe9c81ac462604b09056981af931ff0fa977a7af /docs | |
parent | 32f9cc3412270cd906b5270cce8ccefc76165421 (diff) | |
download | sncontinue-5ffe03c3ee0dc160999a03d4efd50735cff5cdcf.tar.gz sncontinue-5ffe03c3ee0dc160999a03d4efd50735cff5cdcf.tar.bz2 sncontinue-5ffe03c3ee0dc160999a03d4efd50735cff5cdcf.zip |
documentation
Diffstat (limited to 'docs')
-rw-r--r-- | docs/docs/customization.md | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/docs/customization.md b/docs/docs/customization.md index cd306cfe..9e04280d 100644 --- a/docs/docs/customization.md +++ b/docs/docs/customization.md @@ -79,7 +79,7 @@ When you type '@' in the Continue text box, it will display a dropdown of items ```python class GitHubIssuesContextProvider(ContextProvider): """ - The GitHubIssuesContextProvider is a ContextProvider that allows you to search GitHub Issues in a repo. + The GitHubIssuesContextProvider is a ContextProvider that allows you to search GitHub issues in a repo. """ title = "issues" @@ -93,7 +93,7 @@ class GitHubIssuesContextProvider(ContextProvider): repo = gh.get_repo(self.repo_name) issues = repo.get_issues().get_page(0) - items = [ContextItem( + return [ContextItem( content=issue.body, description=ContextItemDescription( name=f"Issue #{issue.number}", @@ -104,9 +104,6 @@ class GitHubIssuesContextProvider(ContextProvider): ) ) ) for issue in issues] - self.context_items = { - item.description.id.to_string(): item for item in items} - return items ``` It can then be set in the `ContinueConfig` like so: |