@fink-andreas/pi-linear-tools 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/package.json +1 -1
- package/src/handlers.js +5 -4
package/package.json
CHANGED
package/src/handlers.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* All handlers are pure functions that accept a LinearClient and parameters.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import path from 'path';
|
|
8
9
|
import {
|
|
9
10
|
prepareIssueStart,
|
|
10
11
|
setIssueState,
|
|
@@ -134,7 +135,7 @@ export async function executeIssueList(client, params) {
|
|
|
134
135
|
return withHandlerErrorHandling(async () => {
|
|
135
136
|
let projectRef = params.project;
|
|
136
137
|
if (!projectRef) {
|
|
137
|
-
projectRef = process.cwd()
|
|
138
|
+
projectRef = path.basename(process.cwd());
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
const resolved = await resolveProjectRef(client, projectRef);
|
|
@@ -218,7 +219,7 @@ export async function executeIssueCreate(client, params, options = {}) {
|
|
|
218
219
|
|
|
219
220
|
let projectRef = params.project;
|
|
220
221
|
if (!projectRef) {
|
|
221
|
-
projectRef = process.cwd()
|
|
222
|
+
projectRef = path.basename(process.cwd());
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
let projectId = null;
|
|
@@ -560,7 +561,7 @@ export async function executeTeamList(client) {
|
|
|
560
561
|
export async function executeMilestoneList(client, params) {
|
|
561
562
|
let projectRef = params.project;
|
|
562
563
|
if (!projectRef) {
|
|
563
|
-
projectRef = process.cwd()
|
|
564
|
+
projectRef = path.basename(process.cwd());
|
|
564
565
|
}
|
|
565
566
|
|
|
566
567
|
const resolved = await resolveProjectRef(client, projectRef);
|
|
@@ -688,7 +689,7 @@ export async function executeMilestoneCreate(client, params) {
|
|
|
688
689
|
|
|
689
690
|
let projectRef = params.project;
|
|
690
691
|
if (!projectRef) {
|
|
691
|
-
projectRef = process.cwd()
|
|
692
|
+
projectRef = path.basename(process.cwd());
|
|
692
693
|
}
|
|
693
694
|
|
|
694
695
|
const resolved = await resolveProjectRef(client, projectRef);
|