Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Personalized new repo #22

Open
wants to merge 34 commits into
base: nixon
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
223ef7c
Added Functionality: /repo to list all repo inside indocom
albertsutz Sep 14, 2021
3d6ae5b
Initial Bot
CommanderW324 Sep 19, 2021
ab21ce9
Merge pull request #6 from indocom/nixon
CommanderW324 Sep 25, 2021
817535a
Merge branch 'main' of https://github.com/indocom/pinus-telebot into …
CommanderW324 Sep 25, 2021
75d173d
Update telebot_main.py
CommanderW324 Sep 25, 2021
bd41b1a
Added Job queue to repeteadly give 1 person PR updates
albertsutz Sep 25, 2021
6c8ce1a
Added Job queue to repeteadly give 1 person PR updates
albertsutz Sep 25, 2021
21309ea
Deployment to heroku initialized
CommanderW324 Sep 25, 2021
2c5abc4
Try
CommanderW324 Sep 25, 2021
46cc240
requirements.txt bukan requirement.txt
CommanderW324 Sep 25, 2021
57519aa
environment fix
CommanderW324 Sep 25, 2021
769fd43
Fixes UTC to GMT+8 conversion
albertsutz Sep 25, 2021
95874e6
Removed typo
albertsutz Sep 25, 2021
1fa6df8
Merge branch 'main' into extract-repo
albertsutz Sep 25, 2021
61e5126
Merge pull request #8 from indocom/extract-repo
CommanderW324 Sep 25, 2021
e806382
Added Broadcasting ability
albertsutz Sep 26, 2021
10c0f88
Assumes that there will not be more than 5 PRs every 5 mins
albertsutz Sep 26, 2021
79d1513
Merged Code
CommanderW324 Sep 26, 2021
cb9bcaa
Try Deployment again with repo list
CommanderW324 Sep 26, 2021
ead735b
added requirements.txt
CommanderW324 Sep 26, 2021
06c1b70
Change port number
CommanderW324 Sep 26, 2021
ce0b06f
corrected webhook call
CommanderW324 Sep 26, 2021
6bede55
Merge pull request #9 from indocom/branch-deployment
CommanderW324 Sep 26, 2021
8cc9873
set-up CSV and Add Repo
CommanderW324 Oct 3, 2021
dbc9fff
Added subscribe and status functionality
albertsutz Oct 3, 2021
586895d
Merge pull request #16 from indocom/broadcast-PR
CommanderW324 Oct 10, 2021
70dde25
Merged succesfully
CommanderW324 Oct 10, 2021
508bdc5
Added list Commands
CommanderW324 Oct 10, 2021
31566d0
Merge pull request #18 from indocom/branch-save-data
CommanderW324 Oct 10, 2021
88cdc69
Merge pull request #17 from indocom/nixon
CommanderW324 Oct 10, 2021
4162da2
Add command
nixonwidjaja Oct 10, 2021
a1daac2
Add command
nixonwidjaja Oct 12, 2021
11454cc
Improved broadcast and new_pull_request to send personalized message
albertsutz Oct 17, 2021
340faa3
Fixes some typo
albertsutz Oct 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
*.pyc
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: python telebot_main.py
26 changes: 26 additions & 0 deletions csv_handler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import csv

def readCSVfromFile(csv_file_path) :
repo_data = dict()
with open(csv_file_path) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
line_count = 0
for row in csv_reader:
if line_count > 0 :
repo_data[line_count - 1] = row;
line_count += 1
print(f'Processed {line_count} lines.')
return repo_data

def writeToCSV(csv_file_path, repo_data) :
with open(csv_file_path, mode='w', newline='') as csv_file:
writer = csv.writer(csv_file, delimiter=',')
length = len(repo_data)
fieldname = ['chat_id', 'owner_name', 'repo_url']
writer.writerow(fieldname)
for i in range(length):
writer.writerow(repo_data[i]);




Empty file added keep_alive.py
Empty file.
5 changes: 5 additions & 0 deletions repo_list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chat_id,owner_name,repo_url
176037276,Albertsutz,https://github.com/indocom/gapura
176037276,Albertsutz,https://github.com/indocom/lumina
176037276,Albertsutz,https://github.com/indocom/pinus-telebot
176037276,Albertsutz,https://github.com/indocom/pinus-client
14 changes: 0 additions & 14 deletions requirement.txt

This file was deleted.

3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python-telegram-bot==12.7
requests

881 changes: 881 additions & 0 deletions sample.txt

Large diffs are not rendered by default.

Loading