Coder Social home page Coder Social logo

ehuelsmann / no-response Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lee-dohm/no-response

0.0 1.0 0.0 1.02 MB

A GitHub Action that closes Issues where the author hasn't responded to a request for more information

License: MIT License

JavaScript 2.11% TypeScript 97.89%

no-response's Introduction

No Response

A GitHub Action that closes Issues where the author hasn't responded to a request for more information.

Use

Recommended basic configuration:

name: No Response

# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
on:
  issue_comment:
    types: [created]
  schedule:
    # Schedule for five minutes after the hour, every hour
    - cron: '5 * * * *'

jobs:
  noResponse:
    runs-on: ubuntu-latest
    steps:
      - uses: ehuelsmann/[email protected]
        with:
          token: ${{ github.token }}

Inputs

See action.yml for defaults.

  • closeComment — Markdown text to post as a comment when an issue is going to be closed. Set to false to disable commenting when closing an issue.
  • daysUntilClose — Number of days to wait for a response from the original author before closing.
  • responseRequiredColor — Color for the responseRequiredLabel. Only used when creating the label if it does not already exist.
  • responseRequiredLabel — Text of the label used to indicate that a response from the original author is required.
  • token — Token used to access repo information. The default GitHub Actions token is sufficient.

Outputs

None.

Action flow

The intent of this Action is to close issues that have not received a response to a maintainer's request for more information. Many times issues will be filed without enough information to be properly investigated. This Action allows maintainers to label an issue as requiring more information from the original author. If the information is not received in a timely manner, the issue will be closed. If the original author comes back and gives more information, the label is removed and the issue is reopened, if necessary.

Scheduled

At the scheduled times, it searches for issues that are:

  • Open
  • Have a label named the same as the responseRequiredLabel value in the configuration
  • The responseRequiredLabel was applied more than daysUntilClose ago

For each issue found, it:

  1. If closeComment is not false, posts the contents of closeComment
  2. Closes the issue

issue_comment Event

When an issue_comment event is received, if all of the following are true:

  • The author of the comment is the original author of the issue
  • The issue has a label named the same as the responseRequiredLabel value in the configuration

It will:

  1. Remove the responseRequiredLabel
  2. Reopen the issue if it was closed by someone other than the original author of the issue

License

MIT

no-response's People

Contributors

lee-dohm avatar dependabot[bot] avatar github-actions[bot] avatar ehuelsmann avatar stuartmorgan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.