GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - GaganpreetKaurKalsi/Github-APIs-Python: This repository contains scripts for using Github API to create repo, delete repo, create an issue, close an issue, etc.

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
Close-an-issue .ipynb
Close-an-issue .ipynb
 
 
Comment-on-an-Issue.ipynb
Comment-on-an-Issue.ipynb
 
 
Create-Reaction-for-an-Issue.ipynb
Create-Reaction-for-an-Issue.ipynb
 
 
Create-a-Repo .ipynb
Create-a-Repo .ipynb
 
 
Create-an-Issue.ipynb
Create-an-Issue.ipynb
 
 
Create-pull-request.ipynb
Create-pull-request.ipynb
 
 
Delete-a-Repo.ipynb
Delete-a-Repo.ipynb
 
 
Delete-reaction-for-an-issue .ipynb
Delete-reaction-for-an-issue .ipynb
 
 
Get-Repo-Topics.ipynb
Get-Repo-Topics.ipynb
 
 
List-Reactions-for-an-issue.ipynb
List-Reactions-for-an-issue.ipynb
 
 
List-Repo-Languages.ipynb
List-Repo-Languages.ipynb
 
 
List-Repos-For-Authenticated-User.ipynb
List-Repos-For-Authenticated-User.ipynb
 
 
List-Repos-of-a-User.ipynb
List-Repos-of-a-User.ipynb
 
 
README.md
README.md
 
 

Repository files navigation

Calling Github API using Python 🐍😎❤

Documentation - https://developer.github.com/v3/

Scripts are written in Python3 🐍

  • Create a repository
  • Delete a repository
  • Create an issue
  • Comment on an issue
  • Close an issue
  • Create a pull request
  • Create reaction for an issue
  • Delete reaction for an issue - You will get the reaction id from the json response file obtained when making a request for reaction list for an issue.
  • List reactions for an issue
  • Get repository topics
  • List repository languages
  • List repos for an Authenticated User
  • List repos of a User - Any user across Github

Note : Tokens are like passwords, they cannot be shared. Replace the Token with your own generated token to make the code work. Also run output.json() to get the json response file from which you can extract data using for loop.

How to generate a token ❓❔❓❔

  1. Go to Settings (Top rightmost dropdown near profile pic)
  2. Go to Developer settings
  3. Go to Personal access tokens
  4. Click Generate new token
  5. Confirm password to continue
  6. Fill the Note field with anything
  7. Select scopes (what you want the Github api to access and control in your Github account)
  8. Click Generate token
Note : The token will only be visible to you for once. Afterwards it won't be visible. If you forget the token then you have to Regenerate it and update the token everywhere it is in use.

About

This repository contains scripts for using Github API to create repo, delete repo, create an issue, close an issue, etc.

Topics

close-issuecomment-on-issuecreate-pull-requestcreate-reactioncreateissuecreaterepodeleterepogithubapijupyter-notebooklist-reactions-issueslist-repositorypythonrest-api

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.