mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
Add ASSURANCE_CASE.md covering threat model, secure design principles (Saltzer & Schroeder), OWASP/CWE countermeasures, and automated verification. Switch tag command from annotated (-a) to signed (-s) to match the assurance case's integrity claims.
949 B
949 B
/tag
Create an annotated git tag with an auto-generated summary of changes since the last tag.
Arguments
$ARGUMENTS: Optional version number (e.g.,v1.2.0). If omitted, auto-increment the patch version from the latest tag.
Workflow
Step 1: Determine version
- Get the latest tag:
git describe --tags --abbrev=0 - If
$ARGUMENTSis provided and non-empty, use it as the new version. - Otherwise, auto-increment the patch number (e.g.,
v1.1.5→v1.1.6).
Step 2: Generate summary
- Get the commit range: from the latest tag to HEAD.
- Run
git log <latest-tag>..HEAD --onelineto list all commits in this range. - Summarize the changes into a brief tag message (1-3 lines, similar to a commit message style). Focus on what was implemented/fixed, not individual commits.
Step 3: Create tag
Run:
git tag -s <new-version> -m "<summary>"
Report the created tag and its message to the user.