{"id":45906510,"url":"https://github.com/davidizzy/issue-milestoner","last_synced_at":"2026-02-28T03:09:58.788Z","repository":{"id":323755727,"uuid":"1094522810","full_name":"davidizzy/issue-milestoner","owner":"davidizzy","description":"Issue Milestoner is a lightweight composite GitHub Action (bash) that automatically assigns issues to milestones with optional GitHub issue-type and label filters.","archived":false,"fork":false,"pushed_at":"2026-01-26T02:57:11.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-26T17:55:43.128Z","etag":null,"topics":["actions","automation","issues","labels","milestones","project-management","types"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidizzy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-11T20:26:43.000Z","updated_at":"2026-01-26T02:57:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/davidizzy/issue-milestoner","commit_stats":null,"previous_names":["davidizzy/issue-milestoner"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/davidizzy/issue-milestoner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidizzy%2Fissue-milestoner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidizzy%2Fissue-milestoner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidizzy%2Fissue-milestoner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidizzy%2Fissue-milestoner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidizzy","download_url":"https://codeload.github.com/davidizzy/issue-milestoner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidizzy%2Fissue-milestoner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29923460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"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":["actions","automation","issues","labels","milestones","project-management","types"],"created_at":"2026-02-28T03:09:58.268Z","updated_at":"2026-02-28T03:09:58.782Z","avatar_url":"https://github.com/davidizzy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![issue-milestoner](https://socialify.git.ci/davidizzy/issue-milestoner/image?description=1\u0026language=1\u0026name=1\u0026owner=1\u0026pattern=Formal+Invitation\u0026theme=Auto)\n\n# Issue Milestoner\n\nA GitHub Action that automatically assigns issues to milestones based on specified criteria.\n\n## Features\n\n- ✅ Assigns issues to target milestones\n- ✅ Prevents reassignment if issue already has a milestone\n- ✅ Optional issue type filtering using GitHub issue types ([only available for org-based repos](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/managing-issue-types-in-an-organization))\n- ✅ Optional label filtering using issue labels\n- ✅ Comprehensive logging and error handling\n- ✅ Configurable for any repository\n\n## Usage\n\n### Basic Usage\n\n```yaml\n- name: Assign Issue to Milestone\n  uses: davidizzy/issue-milestoner@v1.1.3 # x-release-please-version\n  with:\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n    issue-number: ${{ github.event.issue.number }}\n    target-milestone: \"my-important-milestone\"\n```\n\n### Advanced Usage with Issue Type Filter\n\n```yaml\n- name: Assign Bug Issues to Milestone\n  uses: davidizzy/issue-milestoner@v1.1.3 # x-release-please-version\n  with:\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n    issue-number: ${{ github.event.issue.number }}\n    target-milestone: \"my-important-milestone\"\n    issue-type: \"bug\"  # GitHub issue type\n```\n\n### Advanced Usage with Label Filter\n\n```yaml\n- name: Assign Enhancement Issues to Milestone  \n  uses: davidizzy/issue-milestoner@v1.1.3 # x-release-please-version\n  with:\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n    issue-number: ${{ github.event.issue.number }}\n    target-milestone: \"my-important-milestone\"\n    issue-label: \"enhancement\"  # Issue label\n```\n\n### Workflow Example\n\n```yaml\nname: Auto Milestone Assignment\n\non:\n  issues:\n    types: [opened, typed]\n\npermissions:\n  issues: write\n  contents: read\n\njobs:\n  assign-milestone:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Assign to Current Sprint\n        uses: davidizzy/issue-milestoner@v1.1.3 # x-release-please-version\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          issue-number: ${{ github.event.issue.number }}\n          target-milestone: \"Unscheduled Features\"\n          issue-type: \"feature\"  # Only assign feature type issues\n```\n\n## Inputs\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `github-token` | GitHub token with repository access | Yes | - |\n| `issue-number` | Issue number to process | Yes | - |\n| `target-milestone` | Target milestone to assign to the issue | Yes | - |\n| `issue-type` | Optional GitHub issue type filter (e.g., bug, feature, task) | No | - |\n| `issue-label` | Optional issue label filter (e.g., enhancement, documentation, ui) | No | - |\n| `repository` | Repository in the format owner/repo | No | Current repository |\n\n## Outputs\n\n| Output | Description |\n|--------|-------------|\n| `assigned` | Whether the issue was assigned to the milestone (true/false) |\n| `milestone` | The milestone that was assigned |\n| `reason` | Reason for the action taken or not taken |\n\n## Behavior\n\n1. **Milestone Check**: If the issue already has a milestone assigned, the action will not reassign it\n2. **Issue Type Filtering**: If `issue-type` is provided, the action checks if the issue's GitHub issue type matches (case-insensitive)  \n3. **Label Filtering**: If `issue-label` is provided, the action checks if any issue label matches the specified filter (case-insensitive)\n4. **Milestone Matching**: The action finds the target milestone by name (case-insensitive)\n5. **Assignment**: Only assigns the milestone if all conditions are met\n\n## Permissions\n\nThe GitHub token needs the following permissions:\n\n- `issues: write` - to update issue milestones\n- `metadata: read` - to read repository information\n\n## Limitations \u0026 Considerations\n\n- **Rate Limits**: Subject to GitHub API rate limits (5000/hour for authenticated requests)\n- **Permissions**: Requires `issues: write` and `contents: read`\n- **Performance**: Optimized for issues with up to 100 labels\n- **Dependencies**: Requires GitHub CLI (gh) v2.0.0+ and jq v1.6+\n\n## Troubleshooting\n\n### Common Issues\n\n#### \"Milestone not found\"\n\n- Verify milestone exists: `gh api repos/{owner}/{repo}/milestones`\n- Check spelling (matching is case-insensitive)\n- Ensure milestone is open\n\n#### \"Permission denied\"\n\n- Verify workflow has `issues: write` permission\n- Check token has repository access\n- Ensure you're not in a fork without secrets\n\n## Reference Implementation\n\nThis repository includes a working example of the action in [`.github/workflows/auto-milestone-wishlist.yaml`](.github/workflows/auto-milestone-wishlist.yaml).\nThis workflow automatically assigns issues labeled with \"enhancement\" to a \"Wishlist\" milestone, demonstrating real-world usage of the `issue-label` filtering feature.\n\nYou can use this as a template for creating your own milestone automation workflows.\n\n## Development\n\nThis is a **composite action** using shell scripts for simplicity and maintainability.\n\n### Quick Start\n\n```bash\n# Clone and test\ngit clone https://github.com/davidizzy/issue-milestoner.git\ncd issue-milestoner\n./tests/test-composite.sh\n\n# Local testing (requires GitHub CLI and token)\nexport GH_TOKEN=your_token\n./test-local.sh\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for detailed development guidelines.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## Contributing \u0026 Support\n\n- **Contributing**: See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines\n- **Issues**: [Create an issue](https://github.com/davidizzy/issue-milestoner/issues/new) for bugs or feature requests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidizzy%2Fissue-milestoner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidizzy%2Fissue-milestoner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidizzy%2Fissue-milestoner/lists"}