{"id":28883350,"url":"https://github.com/svanboxel/gh-linear-project-template-sync","last_synced_at":"2025-08-17T11:06:55.637Z","repository":{"id":283159079,"uuid":"950877840","full_name":"SvanBoxel/gh-linear-project-template-sync","owner":"SvanBoxel","description":"Version control a Linear Project Template from GitHub by syncing it with data from a specified folder in your repository","archived":false,"fork":false,"pushed_at":"2025-05-15T16:38:23.000Z","size":1701,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T21:52:07.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/SvanBoxel.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":"2025-03-18T20:23:37.000Z","updated_at":"2025-03-18T20:37:18.000Z","dependencies_parsed_at":"2025-03-18T21:42:32.536Z","dependency_job_id":null,"html_url":"https://github.com/SvanBoxel/gh-linear-project-template-sync","commit_stats":null,"previous_names":["svanboxel/gh-linear-project-template-sync"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SvanBoxel/gh-linear-project-template-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvanBoxel%2Fgh-linear-project-template-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvanBoxel%2Fgh-linear-project-template-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvanBoxel%2Fgh-linear-project-template-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvanBoxel%2Fgh-linear-project-template-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SvanBoxel","download_url":"https://codeload.github.com/SvanBoxel/gh-linear-project-template-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SvanBoxel%2Fgh-linear-project-template-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837583,"owners_count":24654391,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-06-20T21:41:19.498Z","updated_at":"2025-08-17T11:06:55.628Z","avatar_url":"https://github.com/SvanBoxel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Linear Sync\n\nThis action allows you to version control a Linear Project Template from GitHub. It will sync the project template with the data from a specified folder in your GitHub repository.\n\n## Inputs \n### `project_folder` (Required)\nThe folder path where the Linear project template is stored. \n\n#### Project folder structure\nThis folder should contain `project-template.md` and optionally an `./issues` directory with issue templates. Issue templates are ordered by filename in the template.\n\n```\n.\n├── project-template.md\n└── issues\n    ├── 01-feature-request.md\n    └── 02-bug-report.md\n```\n\n#### File structure example\n`project-template.md` and related issue templates support a header for metadata. Example\n\n`./project-template.md` supported metadata: `name`, `title`.\n\nExample:\n\n```\n---\nname: Onboarding template\ntitle: Onboarding project for new team members\n---\n\nWelcome to the team! 🎉 This project outlines all the tasks you need to complete in the first 90 days. \n```\n\n`./issues/01-first-day.md` supported metadata: `title`, `labels`.\n\nExample:\n```\n---\nname: Your first day\nlabels: onboarding, week 1\n---\n\nIt's your first day! Make sure to complete the following tasks:\n\n- Complete your profile\n- Set up your laptop with IT\n```\n\n\u003e [!IMPORTANT]  \n\u003e Labels need to exist in your linear team before use\n\n### `LINEAR_TOKEN` (Required)\nThe [Linear API key](https://linear.app/docs/api-and-webhooks#api) used for authentication.\n\n### `LINEAR_TEAM_ID` (Required)\nThe Linear team ID to which the project template belongs.\n\n\u003e [!TIP]  \n\u003e To get the team ID select the team in linear and hit CMD+k or CTRL+k it will open the dialogue and type Copy model UUID and select.\n\n### `LINEAR_TEMPLATE_ID` (Required)\nThe Linear template ID of the project template.\n\n\u003e [!TIP]  \n\u003e To get the Template ID select the project template in linear and hit CMD+k or CTRL+k it will open the dialogue and type Copy model UUID and select your template.\n\n\u003e [!IMPORTANT]  \n\u003e Project needs to be created in Linear before running this action. This action will populate the project template with the data from the project folder.\n\n## Example GitHub Actions Workflow\n\nHere is an example GitHub Actions workflow that you can use to run the GitHub Linear Sync action:\n\n```yaml\nname: Sync GitHub to Linear Project template\n\non:\n  push:\n    branches:\n      - main\n  schedule:\n    - cron: '0 0 * * *'  # Run every day at midnight\n\njobs:\n  sync:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v3\n      - name: Set up Node.js\n        uses: actions/setup-node@v3\n        with:\n          node-version: '16'\n      - name: Run the sync action\n        input:\n          linear_token: ${{ secrets.LINEAR_TOKEN }}\n          linear_team_id: 12345678-1234-1234-1234-123456789abc\n          linear_template_id: 12345678-1234-1234-1234-123456789abc\n          project_folder: \"./linear-template\"\n        run: npm run dev\n```\n\nThis workflow will run the sync action on every push to the `main` branch and also on a daily schedule at midnight. Make sure to set the required environment variables in your GitHub repository secrets.\n\n## Running Locally\n\nTo run the project locally, follow these steps:\n\n1. **Set Environment Variables**: You can set the environment variables in a `.env` file at the root of the project. Create a `.env` file and add the following lines:\n\n   ```plaintext\n   LINEAR_TOKEN=your_linear_token\n   LINEAR_TEAM_ID=your_linear_team_id\n   LINEAR_TEMPLATE_ID=your_linear_template_id\n   GITHUB_TOKEN=your_github_token\n   ```\n\nMake sure to replace `your_linear_token`, `your_linear_team_id`, and `your_linear_template_id` with your actual Linear API key, team ID, and template ID.\n\n2. **Install Dependencies**: Ensure you have Node.js installed on your machine. Run the following command to install the project dependencies:\n\n```sh\nnpm install\n```\n\n3. **Run the app**: You can run the it using the following command:\n\n```sh\nnpm run dev\n```\n\nThis command will execute the `index.js` file, which should handle the synchronization process with the Linear project template.\n\n4. **Linting**: To lint the code and fix any issues, use the following command:\n\n```sh\nnpm run lint\n```\n\nThis command will run the linter and automatically fix any fixable issues.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvanboxel%2Fgh-linear-project-template-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvanboxel%2Fgh-linear-project-template-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvanboxel%2Fgh-linear-project-template-sync/lists"}