Skip to content

Commit

Permalink
Merge pull request #7 from akretion/test-debug
Browse files Browse the repository at this point in the history
Test debug
  • Loading branch information
sebastienbeau authored Sep 19, 2024
2 parents 3de39a7 + d6c1762 commit ca5443a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ akretion:
forgeflow:
- stock-rma
oca:
- OpenUpgrade
- account-analytic
- account-budgeting
- account-closing
Expand Down
14 changes: 3 additions & 11 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def get_repo(org, repo, version):
run(path, "git", "pull")
else:
print(f"Cloning {org}/{repo}@{version}")
path = CLONE_DIRECTORY / org
path.mkdir(exist_ok=True)
run(path, "git", "clone", f"https://github.com/{org}/{repo}", "-b", version)
org_path = CLONE_DIRECTORY / org
path.mkdir(exist_ok=True, parents=True)
run(org_path, "git", "clone", "-n", f"https://github.com/{org}/{repo}", "-b", version)
return path


Expand Down Expand Up @@ -359,14 +359,6 @@ def main():
print("Fail to fetch repo skip it", e)
continue

# Ensure we are in the right repo
remote = run_read(path, "git", "remote", "get-url", "origin").strip()
if not remote.endswith(f"{org}/{repo}"):
print(
f"Skipping {org}/{repo} as it is not the right repo: {remote}"
)
continue

result[org][repo] = analyse_repo(path)
analyse_commits(db, upsert_repo(db, org, repo), path, result[org][repo])

Expand Down
2 changes: 1 addition & 1 deletion update_oca_repo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import requests
import yaml
import os

SKIP_REPO = ["OCB"]
SKIP_REPO = ["OCB", "OpenUpgrade"]

github_token = os.environ.get("GITHUB_TOKEN")

Expand Down

0 comments on commit ca5443a

Please sign in to comment.