Code Monkey home page Code Monkey logo

Comments (2)

helloqiu avatar helloqiu commented on June 3, 2024

With ISSUE_TEMPLATE.md where titles are defined, sometimes, users will not put enough information for a given section.

Aggree. This is a problem indeed.
I thought there should be a min length of characters between each sections and it should be configurable when I created this app. But I realised that if users do not want to write more, these rules are all easy to bypass. And it is hard to filter those issues without human. So I make this app aim to filter those issues which ignore the issue template in the repo at all.

Support regex operation under the "content" setup.

I am a little confused about how regex can solve this problem. It would be great if you can show some examples. If there are good solutions to this problem, I am willing to contribute to make this app better. 😄
@iddocohen

from close-issue-app.

iddocohen avatar iddocohen commented on June 3, 2024

Thank you for the quick feedback @helloqiu

You are right, users can always bypass rules, especially as the config is public available and one can look and see on "how to avoid it" but I would believe the likelihood that people do that is slim and if those still do it the human can always then come back and close it.

It would be more flexible though to have a "min length between section" then having none.

I suggested the regex route to give you less headache but I am just realising it could give you more headache :-)

The idea was the following under content to have:

content:
   - value_of_regex_outcome: "(?<=Description )(.*?)(?=Use-Cases)"

check:
    - length: value_of_regex_outcome > 10

(sorry for the dirty yaml and regex syntax, just between meetings)

Hopefully it explains it.

from close-issue-app.

Related Issues (12)

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.