All Projects → lucasbento → Auto Close Issues

lucasbento / Auto Close Issues

Automatically close issues that don't follow the issue template.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Auto Close Issues

ghissue
🙌 Bulk-upload GitHub Issues
Stars: ✭ 22 (-15.38%)
Mutual labels:  issues
Powershelltraps
Collection of PowerShell traps and oddities
Stars: ✭ 296 (+1038.46%)
Mutual labels:  issues
Trudesk
☕️ 🌱 Trudesk is an open source help desk/ticketing solution.
Stars: ✭ 549 (+2011.54%)
Mutual labels:  issues
dependent-issues
📦 A GitHub Action for marking issues as dependent on another
Stars: ✭ 83 (+219.23%)
Mutual labels:  issues
labman-cli
👨🏼‍🔬 github label manager cli
Stars: ✭ 15 (-42.31%)
Mutual labels:  issues
Issues
有志で既知のバグや要望を検討・管理し、オフィシャルへの還元をしていきます。
Stars: ✭ 313 (+1103.85%)
Mutual labels:  issues
marketplace-feedback
This repository is for feedback regarding NativeScript Marketplace. Use the issues system here to submit feature requests, vote for existing ones or report bugs.
Stars: ✭ 16 (-38.46%)
Mutual labels:  issues
Todo
🤖✅ GitHub App that creates new issues from actionable comments in your code.
Stars: ✭ 685 (+2534.62%)
Mutual labels:  issues
blog
技术博客:知其然,知其所以然
Stars: ✭ 51 (+96.15%)
Mutual labels:  issues
Github Bot
GitHub 自动处理 issue、PR、releases 机器人
Stars: ✭ 434 (+1569.23%)
Mutual labels:  issues
label-actions
🤖 GitHub Action that performs certain tasks when issues, pull requests or discussions are labeled or unlabeled
Stars: ✭ 60 (+130.77%)
Mutual labels:  issues
backup-github-repo
Backup all the issues and pull requests of a Github repo, including the comments, events, and labels, as JSON and as HTML
Stars: ✭ 31 (+19.23%)
Mutual labels:  issues
Contributors On Github
🌵 Show stats about contributors on github
Stars: ✭ 391 (+1403.85%)
Mutual labels:  issues
blog
用issues写博客,记录点滴
Stars: ✭ 28 (+7.69%)
Mutual labels:  issues
Mirror
A blogging tool powered by GitHub API. Write your blog on GitHub issue.
Stars: ✭ 590 (+2169.23%)
Mutual labels:  issues
blog
42
Stars: ✭ 67 (+157.69%)
Mutual labels:  issues
Galliumos Distro
Docs, issues, and artwork sources for GalliumOS
Stars: ✭ 305 (+1073.08%)
Mutual labels:  issues
Contribute A Thon
Month-long Open Source contributing event ✨
Stars: ✭ 26 (+0%)
Mutual labels:  issues
Blog
blog of sivagao,每天一篇好文章~
Stars: ✭ 616 (+2269.23%)
Mutual labels:  issues
Gh Board
"Serverless" Kanban for GitHub Issues using gh-pages
Stars: ✭ 420 (+1515.38%)
Mutual labels:  issues

Close issues that don't follow the issue template

How it works

This 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:

  1. Add a label to the issue (configurable with the input property closed-issues-label);

    This step won't run if no label is provided.

  2. Add a message to the issue;
  3. Close it.

If 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.

This will only work if you have the input property closed-issues-label provided.

Installation

Put the following content in the file .github/workflows/main.yml:

on:
  issues:
    types: [opened, edited]

jobs:
  auto_close_issues:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/[email protected]
      - name: Automatically close issues that don't follow the issue template
        uses: lucasbento/[email protected]
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          issue-close-message: "@${issue.user.login}: hello! 👋\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property
          closed-issues-label: "🙁 Not following issue template" # optional property

Configuration

You 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.

For 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.

License

This project is released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].