@afoures/auto-release 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Release management should be simple. `auto-release` lets you focus on building f
|
|
|
19
19
|
```bash
|
|
20
20
|
npx @afoures/auto-release@latest init
|
|
21
21
|
# or
|
|
22
|
-
|
|
22
|
+
pnpm dlx @afoures/auto-release@latest init
|
|
23
23
|
# or
|
|
24
24
|
yarn dlx @afoures/auto-release@latest init
|
|
25
25
|
# or
|
|
@@ -105,16 +105,16 @@ async function release_group(group, { config, root, dry_run, logger }) {
|
|
|
105
105
|
if (project_releases.length === 0) return "skipped";
|
|
106
106
|
if (dry_run) return "processed";
|
|
107
107
|
const all_file_operations = project_releases.flatMap((release) => release.file_operations);
|
|
108
|
+
const pr_title = generate_pr_title(project_releases);
|
|
108
109
|
const platform = config.git.platform;
|
|
109
110
|
const release_branch_name = `${config.git.default_release_branch_prefix}/${group.name}`;
|
|
110
111
|
await platform.create_or_update_branch({
|
|
111
112
|
branch_name: release_branch_name,
|
|
112
113
|
base_branch_name: config.git.target_branch,
|
|
113
114
|
file_operations: all_file_operations,
|
|
114
|
-
commit_message:
|
|
115
|
+
commit_message: pr_title
|
|
115
116
|
});
|
|
116
117
|
const pr_body = generate_pr_body(project_releases);
|
|
117
|
-
const pr_title = generate_pr_title(project_releases);
|
|
118
118
|
await platform.create_or_update_pull_request({
|
|
119
119
|
head_branch_name: release_branch_name,
|
|
120
120
|
base_branch_name: config.git.target_branch,
|
|
@@ -37,8 +37,15 @@ function github(options) {
|
|
|
37
37
|
files_to_delete.add(op.previous_path);
|
|
38
38
|
}
|
|
39
39
|
const tree_entries = [];
|
|
40
|
-
for (const entry of base_tree.tree || [])
|
|
41
|
-
if (
|
|
40
|
+
for (const entry of base_tree.tree || []) {
|
|
41
|
+
if (entry.type !== "blob") continue;
|
|
42
|
+
if (files_to_delete.has(entry.path)) tree_entries.push({
|
|
43
|
+
path: entry.path,
|
|
44
|
+
mode: "100644",
|
|
45
|
+
type: "blob",
|
|
46
|
+
sha: null
|
|
47
|
+
});
|
|
48
|
+
else if (!files_to_modify.has(entry.path)) tree_entries.push({
|
|
42
49
|
path: entry.path,
|
|
43
50
|
mode: "100644",
|
|
44
51
|
type: "blob",
|