Skip to content

Instantly share code, notes, and snippets.

View sushantnirphal's full-sized avatar

Sushant Nirphal sushantnirphal

  • Government College Of Engineering Yavatmal (GCOEY)
View GitHub Profile
@sushantnirphal
sushantnirphal / hacktoberfest-label.py
Created October 20, 2022 16:16 — forked from andrewsomething/hacktoberfest-label.py
This script will add the "hacktoberfest" label to any issue that also has one of the following labels applied: 'help wanted', 'first-timers-only', 'up-for-grabs'
#!/usr/bin/env python3
import os
import sys
import requests
import json
LABELS = ['help wanted', 'help-wanted', 'first-timers-only', 'up-for-grabs',
'good first issue']
API_BASE = 'https://api.github.com/'
//login
//setting up parameters for login method
User_auth auth = new User_auth();
auth.setUser_name(USER_NAME);
auth.setPassword(PASSWORD);
//sending an empty name_value_list
Name_value nameValueListLogin[] = null;
//trying to login