vtasks-automate-cli 0.6.1 → 0.6.2

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.
Files changed (2) hide show
  1. package/content/index.js +13 -14
  2. package/package.json +1 -1
package/content/index.js CHANGED
@@ -103,19 +103,19 @@ async function main() {
103
103
  if (branch != "qa" && branch != "dev" && branch != "master") {
104
104
  issueNumber = Number(branch.split("_")[0]);
105
105
  console.log(LOG_COLORS.GREEN, `Currently working on issue: ${issueNumber}`);
106
- // const response = await fetch(`${config.vTasksUrl}`, {
107
- // method: "POST",
108
- // body: JSON.stringify({
109
- // projectName,
110
- // branch,
111
- // userEmail,
112
- // issueNumber,
113
- // }),
114
- // headers: {
115
- // "Content-Type": "application/json",
116
- // },
117
- // });
118
- // const parsed = await response.json();
106
+ const response = await fetch(`${config.vTasksUrl}`, {
107
+ method: "POST",
108
+ body: JSON.stringify({
109
+ projectName,
110
+ branch,
111
+ userEmail,
112
+ issueNumber,
113
+ }),
114
+ headers: {
115
+ "Content-Type": "application/json",
116
+ },
117
+ });
118
+ const parsed = await response.json();
119
119
  console.log(LOG_COLORS.GREEN, "vTasks status changed successfully!");
120
120
  } else {
121
121
  console.log(
@@ -123,7 +123,6 @@ async function main() {
123
123
  "Warning: you are working in a not issue branch"
124
124
  );
125
125
  }
126
- console.log(userEmail, VTASKS_URL, branch, projectName);
127
126
  }
128
127
 
129
128
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtasks-automate-cli",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Automate your vTasks workflow with ease — move tasks between states without opening the app",
5
5
  "bin": {
6
6
  "vtasks-automate": "init.js"