{"id":17142612,"url":"https://github.com/qjack001/linear-automations","last_synced_at":"2026-05-02T05:44:38.929Z","repository":{"id":96742983,"uuid":"408726339","full_name":"qjack001/Linear-Automations","owner":"qjack001","description":"Simple workflows for automating Linear workspaces.","archived":false,"fork":false,"pushed_at":"2021-09-29T03:52:02.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T14:36:42.900Z","etag":null,"topics":["automation","issue-tracking","linear","nodejs","project-management","scheduled-job"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qjack001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-21T07:27:50.000Z","updated_at":"2021-09-29T03:52:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f5abcb9-9607-4901-ad26-9ba1564dc9e0","html_url":"https://github.com/qjack001/Linear-Automations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qjack001%2FLinear-Automations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qjack001%2FLinear-Automations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qjack001%2FLinear-Automations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qjack001%2FLinear-Automations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qjack001","download_url":"https://codeload.github.com/qjack001/Linear-Automations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245240926,"owners_count":20583102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","issue-tracking","linear","nodejs","project-management","scheduled-job"],"created_at":"2024-10-14T20:31:59.425Z","updated_at":"2026-05-02T05:44:38.896Z","avatar_url":"https://github.com/qjack001.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear Automations\n\n[ [Automation](#automation) ] [ [Local development](#local-development) ] [ [Operational notes](#operational-notes) ]\n\nSimple workflows for automating [Linear](https://linear.app/) workspaces.\n\n### Automation\n\nCurrently, there are two automation options: \n\n1. **`moveIssues`**\n2. **`recurringIssue`**\n\n\nThe _moveIssues_ function (`moveIssues({from: string, to: string, after: Duration})`) updates the status of issues that have gone stale. If an issue in the given `from` status hasn't had any updates in the amount of time given in `after`, it is moved to the `to` status. For example, the following moves *In Progress* items back to *Todo* if they have not been updated in the last two weeks:\n\n```typescript\nlet auto = new LinearAutomation(env.API_KEY)\nauto.moveIssues({ from: 'In Progress', to: 'Todo', after: Time.ofWeeks(2) })\n```\n\nThe _recurringIssue_ function (`recurringIssue(issue: string, options: { to: string, schedule: Schedule })`) creates an issue on a set cadence. The issue title is set with `issue`, and it is given the status provided in `to`. The issue will be created on the `schedule` provided — which has granularity in days. The issue will be re-opened instead of re-created if one already exists. For example, the following creates (or reopens an existing) issue to update dependencies on the first Monday of the month:\n\n```typescript\nlet auto = new LinearAutomation(env.API_KEY)\nauto.recurringIssue('Update dependencies', { to: 'Todo', schedule: Time.FIRST_MONDAY_OF_THE_MONTH })\n```\n\n### Local development\n\nThis script automates Linear workflows, and by extension, requires that you have a [Linear](https://linear.app/) account set up. To get started:\n\n```bash\n# clone the repo\ngit clone https://github.com/qjack001/Linear-Automations.git\n\n# install its dependencies\nnpm install\n```\n\nAdd your Linear API key to your environment. For example:\n\n```env\n# .env file at the root of the repo\nAPI_KEY=lin_api_1234567890\n```\n\nIf you do not have an API key, you can generate a new one in **Settings \u003e Account \u003e API \u003e Personal API keys**, and click \u003ckbd\u003eCreate key\u003c/kbd\u003e.\n\nThen, run the main script:\n\n```bash\nnpm run automate\n```\n\n### Operational notes\n\nThis project is set up to run every day at 6 AM Pacific (13:00 UTC), via a [cron-scheduled Github action](.github/workflows/run_automation.yml). For this to work, your Linear API key must be set in the repository’s **Settings \u003e Secrets** as `API_KEY`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqjack001%2Flinear-automations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqjack001%2Flinear-automations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqjack001%2Flinear-automations/lists"}