autoforce 0.1.21 → 0.1.22
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/.autoforce.json
CHANGED
@@ -82,7 +82,7 @@ export class GitHubApi {
|
|
82
82
|
if (dueOn) {
|
83
83
|
milestone.due_on = dueOn;
|
84
84
|
}
|
85
|
-
const result = await this.octokit.request(`PATCH /repos/${this.repoVar.owner}/${this.repoVar.repo}/milestones
|
85
|
+
const result = await this.octokit.request(`PATCH /repos/${this.repoVar.owner}/${this.repoVar.repo}/milestones/${toUpdate.number}`, { ...milestone, ...{ headers: { 'X-GitHub-Api-Version': '2022-11-28' } } });
|
86
86
|
return { id: result.data.node_id, title: result.data.title, description: result.data.description, dueOn: result.data.due_on, url: result.data.url };
|
87
87
|
}
|
88
88
|
async createMilestone(title, state = 'open', description, dueOn) {
|
@@ -316,6 +316,7 @@ export const taskFunctions = {
|
|
316
316
|
if (context.projectApi === undefined || context.gitApi === undefined) {
|
317
317
|
return false;
|
318
318
|
}
|
319
|
+
console.log(title, state, description, dueOn);
|
319
320
|
const result = await context.gitApi.updateMilestone(title, state, description, dueOn);
|
320
321
|
return result?.id ? true : false;
|
321
322
|
},
|
@@ -10,6 +10,6 @@
|
|
10
10
|
{ "name": "Paquetiza", "subtask": "pack" },
|
11
11
|
{ "name": "Publica", "command": "yarn publish ", "arguments": {"--new-version": "${newVersion}"} },
|
12
12
|
{ "name": "Salida para el Changelog.md", "task": "list", "arguments": {"filter": "milestone", "template": "changelog", "milestone": "${newVersion}"} },
|
13
|
-
{ "name": "Actualiza el milestone", "function": "updateMilestone", "arguments": ["${newVersion}", "closed"] }
|
13
|
+
{ "name": "Actualiza el milestone", "function": "updateMilestone", "arguments": ["v${newVersion}", "closed"] }
|
14
14
|
]
|
15
15
|
}
|