{"id":21364809,"url":"https://github.com/cdaprod/cdaprod-project-init","last_synced_at":"2026-05-20T15:15:43.259Z","repository":{"id":263457272,"uuid":"890469184","full_name":"Cdaprod/cdaprod-project-init","owner":"Cdaprod","description":" Consistent labels \u0026 milestones across your repos 🔄 Simple, JSON-based GitHub repo initialization 🎯 One action to standardize all your GitHub repositories","archived":false,"fork":false,"pushed_at":"2024-11-18T16:54:42.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T19:48:49.673Z","etag":null,"topics":["actions","central-operations-platform","ci","generative","labels","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Cdaprod.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":"2024-11-18T16:11:10.000Z","updated_at":"2024-11-18T17:10:06.000Z","dependencies_parsed_at":"2024-11-18T17:58:15.603Z","dependency_job_id":null,"html_url":"https://github.com/Cdaprod/cdaprod-project-init","commit_stats":null,"previous_names":["cdaprod/cdaprod-project-init"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cdaprod%2Fcdaprod-project-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cdaprod%2Fcdaprod-project-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cdaprod%2Fcdaprod-project-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cdaprod%2Fcdaprod-project-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cdaprod","download_url":"https://codeload.github.com/Cdaprod/cdaprod-project-init/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243839192,"owners_count":20356181,"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":["actions","central-operations-platform","ci","generative","labels","utility"],"created_at":"2024-11-22T07:07:45.818Z","updated_at":"2026-05-20T15:15:43.206Z","avatar_url":"https://github.com/Cdaprod.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003e📦 Cdaprod Project Initialization\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/Cdaprod/cdaprod-project-init/actions/workflows/self-init.yml\"\u003e\n  \u003cimg src=\"https://github.com/Cdaprod/cdaprod-project-init/actions/workflows/self-init.yml/badge.svg\" alt=\"Self Initialize Using Our Action\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/Cdaprod/cdaprod-project-init/actions/workflows/test.yml\"\u003e\n  \u003cimg src=\"https://github.com/Cdaprod/cdaprod-project-init/actions/workflows/test.yml/badge.svg\" alt=\"Test Action\"\u003e\n\u003c/a\u003e\n\n\u003ch2\u003e👋 Hey there! @Cdaprod here.\u003c/h2\u003e\n\n\u003cp\u003eI love component-based systems and keeping things organized!\u003c/p\u003e\n\u003cp\u003eThis action was born from a simple need - I wanted consistent labels and milestones across all my GitHub projects. Using just JSON templates and curl requests, this action makes it super easy to maintain your organization's project structure.\u003c/p\u003e\n\u003cp\u003eIt's simple by design and easily adaptable to your needs. Fork it, customize it, make it yours! 🚀\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## Structure\n\n```\ncdaprod-project-init/\n├── .github/\n│   └── workflows/\n│       ├── reusable-labels.yml      # Reusable workflow for labels\n│       ├── reusable-milestones.yml  # Reusable workflow for milestones\n│       ├── test.yml                 # Test workflow\n│       └── call-init.yml            # Workflow that calls both\n├── templates/\n│   ├── labels.json        # Label definitions\n│   └── milestones.json    # Milestone definitions\n├── scripts/\n│   └── init-repo.sh       # CLI tool for initialization\n└── action.yml             # Composite action definition\n```\n\n## Features\n\n- 🏷️ Standardized label creation with emojis\n- 🎯 Project milestone initialization\n- 🔄 Reusable GitHub Actions workflows\n- 🛠️ CLI tool for quick setup\n\n# Using Cdaprod Project Init Action\n\n## Prerequisites\n1. GitHub repository with Actions enabled\n2. Workflow permissions for issues and contents\n\n## Setup Steps\n\n1. Create a workflow file in your repository at `.github/workflows/init.yml`:\n\n```yaml\nname: Initialize Repository\non:\n  workflow_dispatch:  # Allows manual triggering\n\njobs:\n  init:\n    runs-on: ubuntu-latest\n    permissions:\n      issues: write    # Required for creating labels/milestones\n      contents: write  # Required for repo operations\n    steps:\n      - uses: actions/checkout@v4\n      \n      - name: Initialize Repository\n        uses: Cdaprod/project-init@v1  # Using @v1 for stability in other repos\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Optional: Custom Configurations\n\nIf you want to use custom configurations:\n\n1. Create your custom config files:\n   ```\n   your-repo/\n   ├── .github/\n   │   └── workflows/\n   │       └── init.yml\n   └── .config/\n       ├── labels.json\n       └── milestones.json\n   ```\n\n2. Update the workflow to use your custom configs:\n```yaml\n      - name: Initialize Repository\n        uses: Cdaprod/project-init@v1\n        with:\n          labels-config: '.config/labels.json'\n          milestones-config: '.config/milestones.json'\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Configuration\n\n### Custom Labels\n\nCreate a `labels.json` file:\n\n```json\n[\n  {\n    \"name\": \"🗺️ roadmap\",\n    \"color\": \"0366d6\",\n    \"description\": \"Strategic planning\"\n  }\n]\n```\n\n### Custom Milestones\n\nCreate a `milestones.json` file:\n\n```json\n[\n  {\n    \"title\": \"🛠️ Project Initialization\",\n    \"state\": \"open\",\n    \"description\": \"Initial setup\"\n  }\n]\n```\n\n## Usage\n\nThis action can be used to initialize any GitHub repository with standardized labels and milestones.\n\n### Basic Usage\n\n```yaml\n- uses: Cdaprod/cdaprod-project-init@v1\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Custom Configuration\n\n1. Create your own configuration files:\n```json\n// labels.json\n[\n  {\n    \"name\": \"priority/high\",\n    \"color\": \"b60205\",\n    \"description\": \"🚨 Urgent attention needed\"\n  }\n]\n```\n\n2. Use custom configs in the workflow:\n```yaml\n- uses: Cdaprod/cdaprod-project-init@v1\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n    labels-config: '.github/labels.json'\n    milestones-config: '.github/milestones.json'\n```\n\n### Permissions\n\nMake sure your workflow has the necessary permissions:\n```yaml\npermissions:\n  issues: write    # For labels and milestones\n  contents: write  # For repository operations\n```\n\n### Inputs\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `token` | GitHub token | Yes | N/A |\n| `labels-config` | Path to labels JSON | No | templates/labels.json |\n| `milestones-config` | Path to milestones JSON | No | templates/milestones.json |\n| `skip-existing` | Skip existing items | No | true |\n\n## Running the Action\n\n1. Go to your repository's \"Actions\" tab\n2. Select the \"Initialize Repository\" workflow\n3. Click \"Run workflow\"\n4. Select the branch and click \"Run workflow\"\n\n## Troubleshooting\n\n- Ensure your repository has Actions enabled (Settings \u003e Actions \u003e General)\n- Verify the workflow has proper permissions (Settings \u003e Actions \u003e General \u003e Workflow permissions)\n- Check that `GITHUB_TOKEN` has sufficient permissions\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## 👥 Connect with Cdaprod\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://youtube.com/@Cdaprod\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge\u0026logo=youtube\u0026logoColor=white\" alt=\"YouTube Channel\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/cdasmktcda\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\" alt=\"Twitter Follow\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.linkedin.com/in/cdasmkt\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\" alt=\"LinkedIn\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/Cdaprod\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\" alt=\"GitHub followers\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://sanity.cdaprod.dev\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Blog-FF5722?style=for-the-badge\u0026logo=blogger\u0026logoColor=white\" alt=\"Personal Blog\" /\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## 📜 License\n\nMIT\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003eBuilt with ❤️ by \u003ca href=\"https://github.com/Cdaprod\"\u003eCdaprod\u003c/a\u003e\u003c/p\u003e\n  \u003cp\u003e\u003cem\u003eMaking Enterprise Software Awesome!\u003c/em\u003e\u003c/p\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaprod%2Fcdaprod-project-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaprod%2Fcdaprod-project-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaprod%2Fcdaprod-project-init/lists"}