Skip to content

Commit acdf954

Browse files
Pigbibicodex
andauthored
fix(ci): configure downstream pin sync identity (#217)
Co-authored-by: Codex <noreply@openai.com>
1 parent 7fb3e1c commit acdf954

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/open_downstream_qpk_pin_prs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ def create_branch_commit_and_pr(
7474
branch = f"auto/qpk-pin-sync-{qpk_sha[:12]}"
7575
remote_url = f"https://x-access-token:{token}@github.com/QuantStrategyLab/{repo.name}.git"
7676
run(["git", "checkout", "-B", branch], cwd=repo_dir)
77+
run(
78+
["git", "config", "user.name", os.environ.get("QSL_PIN_SYNC_GIT_NAME", "QuantStrategyLab QPK Sync")],
79+
cwd=repo_dir,
80+
)
81+
run(
82+
["git", "config", "user.email", os.environ.get("QSL_PIN_SYNC_GIT_EMAIL", "qpk-sync@users.noreply.github.com")],
83+
cwd=repo_dir,
84+
)
7785
run(["git", "add", "-A"], cwd=repo_dir)
7886
run(
7987
[

0 commit comments

Comments
 (0)