@afoures/auto-release 0.2.9 → 0.2.10

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.
@@ -71,7 +71,8 @@ ${error_text}`);
71
71
  })).id;
72
72
  },
73
73
  async create_or_update_pull_request(args) {
74
- const { head_branch_name, base_branch_name, title, body, draft = false } = args;
74
+ const { head_branch_name, base_branch_name, title: initial_title, body, draft = false } = args;
75
+ const title = draft ? `Draft: ${initial_title}` : initial_title;
75
76
  const mrs = await api_request(`/merge_requests?state=opened&source_branch=${encodeURIComponent(head_branch_name)}`);
76
77
  if (mrs.length > 0) {
77
78
  const mr = mrs[0];
@@ -79,8 +80,7 @@ ${error_text}`);
79
80
  method: "PUT",
80
81
  body: JSON.stringify({
81
82
  title,
82
- description: body,
83
- draft
83
+ description: body
84
84
  })
85
85
  });
86
86
  return {
@@ -96,8 +96,7 @@ ${error_text}`);
96
96
  source_branch: head_branch_name,
97
97
  target_branch: base_branch_name,
98
98
  title,
99
- description: body,
100
- draft
99
+ description: body
101
100
  })
102
101
  });
103
102
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afoures/auto-release",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "A file based release management tool for monorepos",
5
5
  "homepage": "https://github.com/afoures/auto-release#readme",
6
6
  "bugs": {