Getting Started
How to install and set up CROP Linear Archive
Prerequisites
- Node.js 20+
- npm or bun
- Linear API key
Installation
# Clone the repository
git clone git@github.com:CT-CROP/CROP-linear-archive.git
cd CROP-linear-archive
# Install dependencies
npm installConfiguration
-
Get your Linear API key from https://linear.app/settings/api
-
Create
.envfile:
cp .env.example .env- Add your API key to
.env:
LINEAR_API_KEY=lin_api_your_key_here
ARCHIVE_DAYS_OLD=14
ARCHIVE_STATUSES=Archive,CanceledFirst Run
# Preview what will be archived (no changes)
npm run archive:dry-run
# Archive issues (no deletion)
npm run archive
# Archive and delete from Linear
npm run archive:delete