imdone-cli 0.1.1 → 0.1.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.
package/dist/index.cjs CHANGED
@@ -103858,17 +103858,6 @@ ${e2.stack}
103858
103858
  ${description}`, "Error updating card from Jira. Copied to clipboard.");
103859
103859
  }
103860
103860
  }
103861
- async function isTaskStale({ task, adapter }) {
103862
- const key2 = task.meta.jira;
103863
- const imdoneJiraUpdated = task.meta.jiraUpdated;
103864
- if (!key2) return false;
103865
- const { updated } = await adapter.getTask(key2);
103866
- const isStale = imdoneJiraUpdated && updated > imdoneJiraUpdated;
103867
- if (isStale) {
103868
- console.log("Task is stale", { key: key2, imdoneJiraUpdated, updated });
103869
- }
103870
- return isStale;
103871
- }
103872
103861
  async function publishJiraTask({ project: project2, task, adapter }) {
103873
103862
  logger2.debug("Publishing task to Jira", { task });
103874
103863
  if (noTaskSelected(task)) return;
@@ -103879,10 +103868,6 @@ async function publishJiraTask({ project: project2, task, adapter }) {
103879
103868
  const { createTask, updateTask } = adapter;
103880
103869
  const publishTask = key2 ? updateTask : createTask;
103881
103870
  const taskText = key2 ? `${key2} - "${task.text}"` : task.text;
103882
- if (await isTaskStale({ task, adapter })) {
103883
- snackBar(project2, `${key2} is stale. Please stash or commit your changes and update the task from Jira first.`);
103884
- throw new Error(`${key2} is stale. Please stash or commit your changes and update the task from Jira first.`);
103885
- }
103886
103871
  toast(project2, `Publishing ${taskText} in Jira`);
103887
103872
  try {
103888
103873
  const description = convertTaskToJiraMarkup(task);