Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jupyter-naas
GitHub Repository: jupyter-naas/awesome-notebooks
Path: blob/master/GitHub/GitHub_Get_issues_from_repo.ipynb
2973 views
Kernel: Python 3

GitHub.png

GitHub - Get issues from repo

Give Feedback | Bug report

Tags: #github #repos #issues #operations #analytics #dataframe #html #plotly

Last update: 2023-04-12 (Created: 2022-03-18)

Description: This notebook allows users to retrieve issues from a GitHub repository.

Input

Imports

from naas_drivers import github

Variables

# Github repository url REPO_URL = "https://github.com/jupyter-naas/awesome-notebooks" # Github token GITHUB_TOKEN = "ghp_COJiJEU4cQR4rjslUxxxxxxxxxxxxxxxx"

Model

Get issues from repo

df_issues = github.connect(GITHUB_TOKEN).repos.get_issues(REPO_URL)

Output

Display result

print("Nb issues:", len(df_issues)) df_issues.head(15)