Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

441 B
Raw Blame
import { issueLabelNames } from "./rules";

export const isFieldLabel = (name: string) =>
  name.startsWith("status:") || name.startsWith("priority:");

/**
 * Link metadata recording the status and priority labels Kaneo has accounted
 * for on the issue. Inbound label sync applies only labels added since.
 */
export const confirmedFieldLabels = (labels: unknown) => ({
  syncFieldLabels: issueLabelNames(labels).filter(isFieldLabel),
});