{"id":16486500,"url":"https://github.com/lucasbento/auto-close-issues","last_synced_at":"2025-03-16T18:31:48.198Z","repository":{"id":41888099,"uuid":"232534538","full_name":"lucasbento/auto-close-issues","owner":"lucasbento","description":"Automatically close issues that don't follow the issue template.","archived":false,"fork":false,"pushed_at":"2022-08-18T19:20:07.000Z","size":179,"stargazers_count":54,"open_issues_count":9,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T16:09:54.570Z","etag":null,"topics":["actions","github","issue-templates","issues"],"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/lucasbento.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}},"created_at":"2020-01-08T10:08:57.000Z","updated_at":"2025-02-20T23:09:51.000Z","dependencies_parsed_at":"2023-01-04T12:46:52.289Z","dependency_job_id":null,"html_url":"https://github.com/lucasbento/auto-close-issues","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"28e2d2bff4035cd60111c3e1fa4d0145875fabd9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Fauto-close-issues","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Fauto-close-issues/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Fauto-close-issues/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasbento%2Fauto-close-issues/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasbento","download_url":"https://codeload.github.com/lucasbento/auto-close-issues/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826783,"owners_count":20354220,"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","github","issue-templates","issues"],"created_at":"2024-10-11T13:29:29.700Z","updated_at":"2025-03-16T18:31:47.316Z","avatar_url":"https://github.com/lucasbento.png","language":"JavaScript","readme":"# Close issues that don't follow the issue template\n\n## How it works\n\nThis GitHub action will fetch all the files inside of `.github/ISSUE_TEMPLATE`, parse the titles and compare those titles with the content of the opened/edited issue, if they don't match, it will:\n\n1. Add a label to the issue (configurable with the input property `closed-issues-label`);\n   \u003e This step won't run if no label is provided.\n1. Add a message to the issue;\n1. Close it.\n\nIf the user happens to edit the issue to match the template, the action will run again and, if it matches, it will remove the label and reopen the issue automatically.\n\n\u003e This will only work if you have the input property `closed-issues-label` provided.\n\n## Installation\n\nPut the following content in the file `.github/workflows/main.yml`:\n\n```yml\non:\n  issues:\n    types: [opened, edited]\n\njobs:\n  auto_close_issues:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v1\n      - name: Automatically close issues that don't follow the issue template\n        uses: lucasbento/auto-close-issues@v1.0.2\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          issue-close-message: \"@${issue.user.login}: hello! :wave:\\n\\nThis issue is being automatically closed because it does not follow the issue template.\" # optional property\n          closed-issues-label: \"🙁 Not following issue template\" # optional property\n```\n\n## Configuration\n\nYou can configure `issue-close-message` and `closed-issues-label`, which are, respectively, the message that is shown when closing the issue and the label added to the issue when it being closed.\n\nFor `issue-close-message` the example configuration uses `issue.user.login` to mention the user's username, you can check what you can specify on the message on [GitHub webhook documentation](https://developer.github.com/v3/activity/events/types/#webhook-payload-example-15).\n\n## License\n\nThis project is released under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasbento%2Fauto-close-issues","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasbento%2Fauto-close-issues","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasbento%2Fauto-close-issues/lists"}