Compare commits

..

4 Commits

Author SHA1 Message Date
1781a1dbf5 Merge pull request 'update repo manager to work of master not main' (#22) from git-creation-issue into master
All checks were successful
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Successful in 22m46s
Reviewed-on: #22
2026-04-29 21:58:43 +10:00
64acdb29b2
update repo manager to work of master not main 2026-04-29 21:58:16 +10:00
d148b95534 Merge pull request 'udpate to use bearer token correctly' (#21) from CREWAI-integration into master
Some checks failed
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 19m39s
Reviewed-on: #21
2026-04-29 09:40:08 +10:00
15359e2ae3 Merge pull request 'update to use crew' (#20) from CREWAI-integration into master
Some checks failed
Create Blog Article if new notes exist / prepare_blog_drafts_and_push (push) Failing after 18m34s
Reviewed-on: #20
2026-04-28 23:30:52 +10:00

View File

@ -42,7 +42,7 @@ class GitRepository:
print(f"Cloning failed: {e}")
return False
def fetch(self, remote_name="origin", ref_name="main"):
def fetch(self, remote_name="origin", ref_name="master"):
"""Fetch updates from a remote repository with authentication"""
try:
self.repo.remotes[remote_name].fetch(ref_name=ref_name)
@ -51,7 +51,7 @@ class GitRepository:
print(f"Fetching failed: {e}")
return False
def pull(self, remote_name="origin", ref_name="main"):
def pull(self, remote_name="origin", ref_name="master"):
"""Pull updates from a remote repository with authentication"""
print("Pulling Latest Updates (if any)")
try:
@ -93,8 +93,8 @@ class GitRepository:
self.repo.git.checkout(title)
self.pull(ref_name=title)
else:
# New branch, create from main
self.repo.git.checkout("-b", title, "origin/main")
# New branch, create from master
self.repo.git.checkout("-b", title, "origin/master")
# Ensure destination directory exists
dest_dir = f"{self.repo_path}src/content/"