{"id":14986091,"url":"https://github.com/benelan/milestone-action","last_synced_at":"2025-08-16T18:08:48.753Z","repository":{"id":37073877,"uuid":"402245019","full_name":"benelan/milestone-action","owner":"benelan","description":"A GitHub Action that automatically adds the current or farthest due milestone to pull requests and issues.","archived":false,"fork":false,"pushed_at":"2024-08-01T20:24:54.000Z","size":2299,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T14:48:53.633Z","etag":null,"topics":["automation","github-action","project-management","published","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/benelan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-02T00:52:04.000Z","updated_at":"2024-07-09T10:25:01.000Z","dependencies_parsed_at":"2024-02-10T11:22:01.071Z","dependency_job_id":"0fabe622-ad69-41d0-9872-efaae9c626fe","html_url":"https://github.com/benelan/milestone-action","commit_stats":{"total_commits":110,"total_committers":5,"mean_commits":22.0,"dds":0.5818181818181818,"last_synced_commit":"030d68f1cb1fa90b46d9efd6f2e22e2e032f4268"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/benelan/milestone-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fmilestone-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fmilestone-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fmilestone-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fmilestone-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benelan","download_url":"https://codeload.github.com/benelan/milestone-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fmilestone-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270749215,"owners_count":24638682,"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-16T02:00:11.002Z","response_time":91,"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":["automation","github-action","project-management","published","typescript"],"created_at":"2024-09-24T14:12:18.751Z","updated_at":"2025-08-16T18:08:48.729Z","avatar_url":"https://github.com/benelan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/benelan/milestone-action/actions\"\u003e\n    \u003cimg\n      alt=\"milestone-action status\"\n      src=\"https://github.com/benelan/milestone-action/actions/workflows/add-milestone-open.yml/badge.svg\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Add Milestone By Due Date\n\nThis action adds the current milestone by due date, or the milestone with the\nfarthest due date to issues and pull requests. By default, the action ignores\nclosed milestones, milestones with no due date, and milestones that are past\ndue. This suits repos that have multiple open milestones with different due\ndates, and a few milestones with no due dates (e.g. \"backburner\" and \"stalled\").\n\nAlternatively, enable the `single` option if your repo only has one milestone\nopen at a time. When enabled, the only open milestone will be added to issues\nand pull requests, even if it doesn't have a due date.\n\nHere are successful test runs for [current](https://github.com/benelan/milestone-action/issues/8)\nand [farthest](https://github.com/benelan/milestone-action/issues/16) due\nmilestones.\n\n## Usage\n\n```yaml\n# .github/workflows/add-milestone.yml\nname: Add Milestone\non:\n  issues:\n    types: [opened]\n  pull_request:\n    types: [closed]\n    branches: [main]\njobs:\n  add:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: benelan/milestone-action@v3\n        with:\n          # If true, add the milestone with the farthest due date. By default,\n          # the action adds the current milestone (closest due date).\n          farthest: false\n\n          # If true, overwrite existing milestones on issues and pull requests.\n          # By default, the action exits if a milestone has already been added.\n          overwrite: false\n\n          # If true, add the only open milestone in a repo, even if there is no\n          # due date. By default, milestones with no due date are ignored.\n          single: false\n```\n\n## Changelog\n\n### [3.1.0](https://github.com/benelan/milestone-action/compare/v3.0.0...v3.1.0) (2024-02-10)\n\n#### Features\n\n- Add `single` option for repos that have one open milestone at a time with no\n  due date. ([47e7b58](https://github.com/benelan/milestone-action/commit/47e7b5865d40009a9466515a96e621c049ca9fa2))\n\n### [3.0.0](https://github.com/benelan/milestone-action/compare/v2.0.0...v3.0.0) (2024-01-24)\n\n#### Breaking Changes\n\n- Upgrade the Node runner to `v20`, which is the current LTS version. Node `v16`\n  reached [end of life](https://nodejs.org/en/blog/announcements/nodejs16-eol)\n  on `2023-09-11` and the GitHub runner will be deprecated this year. See this\n  [GitHub blog post](https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/)\n  for more info.\n  ([e845696](https://github.com/benelan/milestone-action/commit/e845696b034a067c487b98502782a9c1a900edaf))\n\n#### Features\n\n- Use [GitHub Action annotations](https://github.com/actions/toolkit/tree/main/packages/core#annotations)\n  instead of `console.log`\n  ([4a7383b](https://github.com/benelan/milestone-action/commit/4a7383b3c7279110330e33a6a9762440556172e4))\n\n### [2.0.0](https://github.com/benelan/milestone-action/compare/v1.3.1...v2.0.0) (2022-12-24)\n\n#### Breaking Changes\n\n- Upgrade the Node runner from the deprecated `v12` to `v16`. See this\n  [GitHub blog post](https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/)\n  for more info\n  ([f5f6fcb](https://github.com/benelan/milestone-action/commit/f5f6fcb16cecaa3255d2a9922838b027a9422dbb))\n\n### [1.3.1](https://github.com/benelan/milestone-action/compare/v1.3.0...v1.3.1) (2022-04-26)\n\n#### Fixes\n\n- A milestone is considered current until the day after it is due date.\n  Previously, it was considering the time of day the milestone was created when\n  comparing the current date to the due date\n  ([c68adeb](https://github.com/benelan/milestone-action/commit/c68adeb50cd9b0da6549310a7d8287aa70e2ac5f))\n\n### [1.3.0](https://github.com/benelan/milestone-action/compare/v1.2.0...v1.3.0) (2022-04-26)\n\n#### Features\n\n- Add `overwrite` option to add the milestone even if one already exists on the\n  issue or pull request\n  ([7ad020e](https://github.com/benelan/milestone-action/commit/7ad020e55e306992345b0f58631515081a21d9e4))\n\n### [1.2.0](https://github.com/benelan/milestone-action/compare/v1.1.1...v1.2.0) (2022-04-25)\n\n#### Features\n\n- Allow the workflow to run on any event action\n  ([9bce688](https://github.com/benelan/milestone-action/commit/9bce688a0d578a791df9741db589a347e9a2b3a7))\n\n### [1.1.1](https://github.com/benelan/milestone-action/compare/v1.1.0...v1.1.1) (2021-09-21)\n\n#### Fixes\n\n- Skip action when the sender is dependabot. See this\n  [GitHub blog post](https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/)\n  for more info\n  ([e0a0717](https://github.com/benelan/milestone-action/commit/e0a0717993fa5615919e93f8ed5d2214eb742ac5))\n\n### [1.1.0](https://github.com/benelan/milestone-action/compare/v1.0.0...v1.1.0) (2021-09-13)\n\n#### Features\n\n- Add `farthest` option to add the milestone with the farthest due date\n  ([9ac638a](https://github.com/benelan/milestone-action/commit/9ac638af1d1e0642897aa740caf4435a6df5eebc))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenelan%2Fmilestone-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenelan%2Fmilestone-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenelan%2Fmilestone-action/lists"}