Skip to content

Commit

Permalink
feat: improve specify github issue and fix create issue notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr committed Feb 15, 2024
1 parent a3d3175 commit 0f4ebf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 54 deletions.
32 changes: 3 additions & 29 deletions models/operations-engine/core/tools/GitHub_Create_Issue.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@
"**Author:** [Florent Ravenel](https://www.linkedin.com/in/florent-ravenel)"
]
},
{
"cell_type": "markdown",
"id": "d26ad1f3-818a-4967-bb68-d433d8921d17",
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Last update:** 2024-02-07 (Created: 2024-02-07)"
]
},
{
"cell_type": "markdown",
"id": "214749fe-7f0b-4755-b7ea-1d200c234cc6",
Expand All @@ -66,19 +55,6 @@
"**Description:** This notebook creates an issue on a GitHub repository."
]
},
{
"cell_type": "markdown",
"id": "a1329bea-ad80-4981-874c-8776b11f89a8",
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**References:**\n",
"- [Generate a personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)\n",
"- [Go to personal access token](https://github.com/settings/tokens)"
]
},
{
"cell_type": "markdown",
"id": "cff349c8-2816-4ae4-9229-027c068eeb51",
Expand Down Expand Up @@ -127,10 +103,8 @@
"### Setup variables\n",
"- `title`: My New Issue\n",
"- `description`: My Description\n",
"- `assignee`: \"Abi\"\n",
"- `label`: \"good first issue\", \"enhancement\"\n",
"- `repo_url`: https://github.com/jupyter-naas/awesome-notebooks\n",
"- `token`: \"gitwxxxxxxxxxxxxxxx\"\n",
"- `token`: gitwxxxxxxxxxxxxxxx\n",
"- `body`: This variable stores the body to be send by the webhook."
]
},
Expand Down Expand Up @@ -191,9 +165,9 @@
"source": [
"# Parameters\n",
"if len(body) > 0:\n",
" repo_url = body.get(\"repo_url\")\n",
" title = body.get(\"title\")\n",
" title = body.get(\"title\").replace(\"\\n\", \"\")\n",
" description = body.get(\"description\")\n",
" repo_url = body.get(\"repo_url\")\n",
" token = body.get(\"token\")"
]
},
Expand Down
27 changes: 2 additions & 25 deletions models/operations-engine/core/tools/GitHub_Specify_Issue.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@
"**Author:** [Florent Ravenel](https://www.linkedin.com/in/florent-ravenel)"
]
},
{
"cell_type": "markdown",
"id": "d26ad1f3-818a-4967-bb68-d433d8921d17",
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Last update:** 2024-02-13 (Created: 2024-02-13)"
]
},
{
"cell_type": "markdown",
"id": "214749fe-7f0b-4755-b7ea-1d200c234cc6",
Expand All @@ -66,19 +55,6 @@
"**Description:** This notebook helps you specify a GitHub issue using a prompt with a description as variable."
]
},
{
"cell_type": "markdown",
"id": "a1329bea-ad80-4981-874c-8776b11f89a8",
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**References:**\n",
"- [Generate a personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)\n",
"- [Go to personal access token](https://github.com/settings/tokens)"
]
},
{
"cell_type": "markdown",
"id": "cff349c8-2816-4ae4-9229-027c068eeb51",
Expand Down Expand Up @@ -219,7 +195,8 @@
"Generate a GitHub issue using the description: \"{description}\".\n",
"The response should be divided into two code blocks. The first block should contain the title of the issue, written as plain text. The second block should include two sections derived from the description: ### Issue and ### Solution.\n",
"The issue should be deduced from the description.\n",
"The solution should outline potential technical approaches that could be used to resolve the issue, such as step 1... and so on.\""
"The solution should outline potential technical approaches that could be used to resolve the issue, such as step 1... and so on.\n",
"\"\"\""
]
},
{
Expand Down

0 comments on commit 0f4ebf2

Please sign in to comment.