Skip to content

Instantly share code, notes, and snippets.

View sagarjunnarkar's full-sized avatar
💭
Ruby on Rails & Golang Dev

Sagar Junnarkar sagarjunnarkar

💭
Ruby on Rails & Golang Dev
  • Pattern
  • Pune, India
View GitHub Profile
@sagarjunnarkar
sagarjunnarkar / make_github_repo_admin.py
Created June 18, 2023 19:15
python script to add user as a collaborator and then make user repo admin
import requests
# Set your GitHub personal access token with admin privileges
access_token = "<github token with previledge to add collaborator and set admin for repo>"
# Set the organization or user name
organization = "<orgnaization>"
# Set the team name
team = "<team name>"