Skip to content

Commit 7fe63ff

Browse files
committed
feat: added ascii art
1 parent 02c7b3a commit 7fe63ff

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

Github-Automation/main.py

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
import repoInfo,filechange
2-
import gitcommands as git
1+
import repoInfo
2+
from filechange import ischanged
3+
from colors import logcolors
4+
import pyfiglet
5+
import logger
6+
from utils import initCommands
37
def init():
48
info = repoInfo.checkinfoInDir()
9+
url, branch = info
10+
logger.checkdata(url , branch)
511
if('n' in info):
6-
info.remove('n')
7-
git.init()
8-
git.createReadme()
9-
git.add(['.'])
10-
git.commit(['README.md'])
11-
git.setBranch(info[1])
12-
git.setremote(info[0])
13-
git.push(info[0] , info[1])
14-
print('initial setup done :)')
15-
filechange.ischanged(info[0] , info[1])
12+
initCommands(info)
1613
else:
17-
print('Retrieving info from git directory')
18-
filechange.ischanged(info[0] , info[1])
14+
print(f'{logcolors.BOLD}Retrieving info from git directory{logcolors.ENDC}')
15+
print(f'{logcolors.CYAN}URL:{logcolors.ENDC} {url} , {logcolors.CYAN}Branch:{logcolors.ENDC} {branch}')
16+
ischanged(url,branch)
17+
1918

2019
if __name__ == '__main__':
21-
init()
20+
f = pyfiglet.figlet_format('G - AUTO', font='5lineoblique')
21+
print(f"{logcolors.BOLD}{f}{logcolors.ENDC}")
22+
init()

0 commit comments

Comments
 (0)