This is a sample script to create GitHub issues with CSV using GitHub CLI.
- Python 3.9
- GitHub CLI
No PyPI package is required.
Edit create_github_issues_with_csv.py
and change REPO
, PROJECT
and DATA
.
REPO = "[owner]/[repo]"
PROJECT = "[projectname]"
DATA = """
Milestone 1,Task 1
Milestone 1,Task 2
Milestone 1,Task 3
Milestone 2,Task 4
Milestone 2,Task 5
"""
Run the script.
python create_github_issues_with_csv.py
There are some other options to create many issues easily.
Create issue | Issues β PyGithub 1 documentation
from github import Github
issues = ...
g = Github("access_token")
repo = g.get_repo("[owner]/[repo]")
for issue in issues:
repo.create_issue(title=issue.title)
https://github.com/gavinr/github-csv-tools
githubCsvTools myFile.csv