INNER CODE UNIT · Python

git_commit_and_tag

jpush/jpush-react-native · .claude/skills/update-sdk/scripts/publisher.py:53

def git_commit_and_tag(version: str, plugin_name: str) -> bool:
    print(f"\n[Git] Committing {plugin_name} v{version} ...")

    ok, out = run(["git", "add", "-A"])
    if not ok:
        print(f"  ERROR: git add failed:\n{out}")
        return False

    ok, out = run(["git", "commit", "-m", f"chore: release {plugin_name} v{version}"])
    if not ok:
        print(f"  ERROR: git commit failed:\n{out}")
        return False
    print(f"  ✅ Committed")

    ok, out = run(["git", "tag", f"v{version}"])
    if not ok:
        print(f"  ERROR: git tag failed:\n{out}")
        return False

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…