You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Description:** This rule automates the process of creating a GitHub release based on commits since a previous reference point (tag or commit hash). It generates basic release notes, creates the release using the GitHub CLI, and verifies the post-release workflow status.
9
+
10
+
**Inputs:**
11
+
12
+
* `NEW_VERSION`: The version tag for the new release (e.g., `v1.3.1`).
13
+
* `PREVIOUS_REF`: The tag or commit hash representing the start point for the release notes (e.g., `v1.3.0` or `551551ff`).
14
+
* `RELEASE_TITLE`: The title for the GitHub release (e.g., `"v1.3.1 - Better Tool Errors & Docs"`).
15
+
16
+
**Steps:**
17
+
18
+
1. **Get Target Commit SHA:**
19
+
* Determine the commit hash for the release target (usually HEAD).
20
+
* *Successful Command:*
21
+
```bash
22
+
git rev-parse HEAD
23
+
```
24
+
* Store this SHA for the `--target` argument later. Let's call it `TARGET_SHA`.
25
+
26
+
2. **Generate Raw Commit Log:**
27
+
* Get a list of commit messages between the previous reference and HEAD.
0 commit comments