CROP

Configuration

Environment variables and settings for CROP Linear Archive

All configuration is done via the .env file.

Environment Variables

VariableRequiredDefaultDescription
LINEAR_API_KEYYes-Your Linear API key (starts with lin_api_)
ARCHIVE_DAYS_OLDNo7Archive issues not updated for N days
ARCHIVE_STATUSESNoArchive,CanceledComma-separated status names

Getting Linear API Key

  1. Go to https://linear.app/settings/api
  2. Click "Create new API key"
  3. Give it a name (e.g., "Archive Tool")
  4. Copy the key (starts with lin_api_)

Status Names

Common Linear status names:

StatusDescription
BacklogUnstarted items
TodoReady to start
In ProgressCurrently being worked on
DoneCompleted
CanceledCanceled items
ArchiveArchived items

Example Configurations

ARCHIVE_DAYS_OLD=14
ARCHIVE_STATUSES=Archive,Canceled

Archive all closed issues after 30 days

ARCHIVE_DAYS_OLD=30
ARCHIVE_STATUSES=Done,Archive,Canceled

Quick cleanup (7 days)

ARCHIVE_DAYS_OLD=7
ARCHIVE_STATUSES=Archive

On this page