community: adds support for getting github releases for the configured repository (#29318)

**Description:** adds support for github tool to query github releases
on the configure respository
**Issue:** N/A
**Dependencies:** N/A
**Twitter handle:** @macsdickinson

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
Macs Dickinson
2025-01-22 15:45:52 +00:00
committed by GitHub
parent ef1610e24a
commit 7378c955db
6 changed files with 192 additions and 2 deletions

View File

@@ -200,6 +200,37 @@
"8. **Delete File**- deletes a file from the repository."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Include release tools\n",
"\n",
"By default, the toolkit does not include release-related tools. You can include them by setting `include_release_tools=True` when initializing the toolkit:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"toolkit = GitHubToolkit.from_github_api_wrapper(github, include_release_tools=True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Settings `include_release_tools=True` will include the following tools:\n",
"\n",
"* **Get Latest Release**- fetches the latest release from the repository.\n",
"\n",
"* **Get Releases**- fetches the latest 5 releases from the repository.\n",
"\n",
"* **Get Release**- fetches a specific release from the repository by tag name, e.g. `v1.0.0`.\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
@@ -321,7 +352,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.13.1"
}
},
"nbformat": 4,