Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2812610

Browse files
Merge pull request avinashkranjan#415 from Ayush7614/master
Github_Bomb_Issues
2 parents ca74796 + 8cff78a commit 2812610

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

‎Github_Bomb_Issues/Output.jpeg‎

33.9 KB
Loading[フレーム]

‎Github_Bomb_Issues/README.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Bomb Issues on a Github Repository
2+
3+
This python script bombs specified number of issues on a Github Repository.
4+
5+
### Libraries used:
6+
7+
1. PyGithub
8+
9+
2. os
10+
11+
3. getpass
12+
13+
### How to use the script?
14+
15+
1. Open terminal or command prompt.
16+
17+
2. Go to the directory.
18+
19+
3. Run ``` python bomb-issues.py ```.
20+
21+
***A demo:***
22+
23+
<img align="center" alt="GIF" src="https://github.com/Ayush7614/Amazing-Python-Scripts/blob/master/Github_Bomb_Issues/Output.jpeg" />

‎Github_Bomb_Issues/bomb-issues.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from github import Github
2+
import os
3+
import getpass
4+
5+
username = input("Enter your username: ")
6+
password = getpass.getpass("Enter your Github password: ")
7+
g = Github(username, password)
8+
9+
repository = input("Give the GitHub repository name that you want to bomb issues on (Example: Ayush7614/Hello-World-): ")
10+
number = int(input("Give the number of issues that you want to bomb: "))
11+
repo = g.get_repo(repository)
12+
13+
for x in range(number):
14+
repo.create_issue(title="Lorem ipsum", body="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")

‎Github_Bomb_Issues/requirements.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PyGithub
2+
requests
3+
os
4+
getpass

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /