Skip to content

Script for copying milestones and issues

License

Notifications You must be signed in to change notification settings

AI-Assistant/copy_issues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Repository Management Tool

Overview

This Python tool is designed to manage GitHub repositories. It automates the process of copying milestones and issues from one repository to another.

Features

  • Get Organization Repositories: Fetches all repositories under a specific organization.
  • Get User Repository: Retrieves a specific repository's details.
  • Get Repository Issues and Milestones: Collects all issues and milestones associated with a specific repository.
  • Check for Existing Elements: Checks for the existence of milestones and issues to avoid duplication.
  • Post Requests: Ability to post new milestones and issues to a repository.

Installation

Before you begin, ensure you have Python installed on your machine. Then, follow these steps:

  1. Clone the repository:
git clone https://github.com/AI-Assistant/issue_copy.git)https://github.com/AI-Assistant/issue_copy.git
  1. Navigate to the project directory:
cd [PROJECT_DIRECTORY]
  1. Install required packages:
pip install virtualenv

Create virtual enviorment:

virtualenv venv

Activate virtual enviorment:

.\venv\Scripts\activate

Install requirements:

pip install -r requirements.txt

Usage

  1. Set up your GitHub API credentials in a creds.py file:
api_key = "YOUR_GITHUB_API_KEY"
  1. Edit the 'main' function in the script to specify the source and target repositories for copying milestones and issues.
#Get requests
organisation_name = "ORGANISATION" #Name of the organisation
org_repo_get = "RepoWithIssues" #Name of the repository to copy from

#Post requests
org_repo_post = "RepoWithoutIssues" #Name of the repository to copy to
  1. Run the script.

About

Script for copying milestones and issues

Topics

Resources

License

Stars

Watchers

Forks

Languages