https://github.com/gh640/create-github-issues-with-csv
📂 A sample script to create GitHub issues with CSV using GitHub CLI.
https://github.com/gh640/create-github-issues-with-csv
csv github github-cli python3
Last synced: 10 months ago
JSON representation
📂 A sample script to create GitHub issues with CSV using GitHub CLI.
- Host: GitHub
- URL: https://github.com/gh640/create-github-issues-with-csv
- Owner: gh640
- Created: 2021-09-19T07:38:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T06:18:26.000Z (about 4 years ago)
- Last Synced: 2025-01-14T14:17:47.740Z (12 months ago)
- Topics: csv, github, github-cli, python3
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Creating GitHub issues with CSV using GitHub CLI
This is a sample script to create GitHub issues with CSV using GitHub CLI.
## Requirements
- Python 3.9
- [GitHub CLI](https://cli.github.com/)
No PyPI package is required.
## Usage
Edit `create_github_issues_with_csv.py` and change `REPO`, `PROJECT` and `DATA`.
```python
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.
```bash
python create_github_issues_with_csv.py
```
## Other options
There are some other options to create many issues easily.
### [PyGithub](https://github.com/PyGithub/PyGithub)
[Create issue | Issues — PyGithub 1 documentation](https://pygithub.readthedocs.io/en/latest/examples/Issue.html#create-issue)
```python
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)
```
### [GitHub CSV Tools](https://github.com/gavinr/github-csv-tools)
https://github.com/gavinr/github-csv-tools
```bash
githubCsvTools myFile.csv
```