Skip to content

Commit

Permalink
feat: sync all PSA repos
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jan 10, 2025
1 parent ab16f94 commit a545c6b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion repo-sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,22 @@
REPOSITORIES = (
# Core has to be the first as it is used to update some of the files
"social-core",
"social-app-django",
"social-docs",
".github",
"social-app-django",
"social-app-cherrypy",
"social-storage-sqlalchemy",
"social-storage-peewee",
"social-storage-mongoengine",
"social-examples",
"social-app-flask-sqlalchemy",
"social-app-pyramid",
"social-app-tornado",
"social-app-webpy",
"social-app-django-mongoengine",
"social-app-flask-peewee",
"social-app-flask-mongoengine",
"social-app-flask",
)
ROOT = Path(__file__).parent
REPOS = ROOT / "repos"
Expand Down Expand Up @@ -160,6 +174,7 @@ def update_files(self) -> None:
def commit(self) -> None:
"""Commit and push pending changes."""
self.run(["git", "add", "."])
print(f"Comparing {highlight(self.name)}")
if self.run(["git", "diff", "--cached", "--exit-code"], check=False).returncode:
print(f"Committing {highlight(self.name)}...")
self.run(["git", "commit", "-m", COMMIT_MESSAGE])
Expand Down

0 comments on commit a545c6b

Please sign in to comment.