Skip to content

Commit

Permalink
Merge pull request #185 from DSACMS/sachin/date-created-bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-panayil authored Oct 23, 2024
2 parents 2413012 + 1fb705d commit 47e956d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
7 changes: 4 additions & 3 deletions tier0/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
RECEIVE_UPDATES = '{{cookiecutter.receive_updates}}'

def createGithubRepo():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "first commit"])
gh_cli_command = [
"gh", "repo", "create",
f"{ORG_NAME}/{REPO_NAME}",
Expand All @@ -30,6 +27,10 @@ def addTopic():
]
subprocess.call(gh_cli_command)

subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "initial commit"])

if CREATE_REPO == "True":
createGithubRepo()

Expand Down
7 changes: 4 additions & 3 deletions tier1/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
RECEIVE_UPDATES = '{{cookiecutter.receive_updates}}'

def createGithubRepo():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "first commit"])
gh_cli_command = [
"gh", "repo", "create",
f"{ORG_NAME}/{REPO_NAME}",
Expand Down Expand Up @@ -43,6 +40,10 @@ def moveCookiecutterFile():
shutil.move(source_path, destination_path)

def main():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "initial commit"])

if CREATE_REPO == "True":
createGithubRepo()

Expand Down
7 changes: 4 additions & 3 deletions tier2/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
ADD_MAINTAINER = '{{cookiecutter.add_maintainer}}'

def createGithubRepo():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "first commit"])
gh_cli_command = [
"gh", "repo", "create",
f"{ORG_NAME}/{REPO_NAME}",
Expand Down Expand Up @@ -84,6 +81,10 @@ def moveCookiecutterFile():
shutil.move(source_path, destination_path)

def main():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "initial commit"])

if CREATE_REPO == "True":
createGithubRepo()

Expand Down
7 changes: 4 additions & 3 deletions tier3/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
ADD_MAINTAINER = '{{cookiecutter.add_maintainer}}'

def createGithubRepo():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "first commit"])
gh_cli_command = [
"gh", "repo", "create",
f"{ORG_NAME}/{REPO_NAME}",
Expand Down Expand Up @@ -77,6 +74,10 @@ def moveCookiecutterFile():
shutil.move(source_path, destination_path)

def main():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "initial commit"])

if CREATE_REPO == "True":
createGithubRepo()

Expand Down
7 changes: 4 additions & 3 deletions tier4/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
ADD_MAINTAINER = '{{cookiecutter.add_maintainer}}'

def createGithubRepo():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "first commit"])
gh_cli_command = [
"gh", "repo", "create",
f"{ORG_NAME}/{REPO_NAME}",
Expand Down Expand Up @@ -77,6 +74,10 @@ def moveCookiecutterFile():
shutil.move(source_path, destination_path)

def main():
subprocess.call(["git", "init", "-b", "main"])
subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "initial commit"])

if CREATE_REPO == "True":
createGithubRepo()

Expand Down

0 comments on commit 47e956d

Please sign in to comment.