imdone-cli 0.1.0 → 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,13 +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
- return imdoneJiraUpdated && updated > imdoneJiraUpdated;
103867
- }
103868
103861
  async function publishJiraTask({ project: project2, task, adapter }) {
103869
103862
  logger2.debug("Publishing task to Jira", { task });
103870
103863
  if (noTaskSelected(task)) return;
@@ -103875,10 +103868,6 @@ async function publishJiraTask({ project: project2, task, adapter }) {
103875
103868
  const { createTask, updateTask } = adapter;
103876
103869
  const publishTask = key2 ? updateTask : createTask;
103877
103870
  const taskText = key2 ? `${key2} - "${task.text}"` : task.text;
103878
- if (await isTaskStale({ task, adapter })) {
103879
- snackBar(project2, `${key2} is stale. Please stash or commit your changes and update the task from Jira first.`);
103880
- throw new Error(`${key2} is stale. Please stash or commit your changes and update the task from Jira first.`);
103881
- }
103882
103871
  toast(project2, `Publishing ${taskText} in Jira`);
103883
103872
  try {
103884
103873
  const description = convertTaskToJiraMarkup(task);