ovidiuch / github-issue-template

BDD Issue Template for Github (with Chrome Extension)
19 stars 23 forks source link

Implement validation so that issue is complete or marked as incomplete #8

Open adaschevici opened 10 years ago

adaschevici commented 10 years ago

Need

As a developer
I want to have relevant data inside the issue description template
So that I can understand the actual problem

Deliverables

Scenario: As a developer all sections inside the template are filled
Given I start a new issue
  And All sections of the template are present
When I submit the issue
Then  Sections content is validated
  And I am only allowed to create it if all are either filled or not present

Solution

ovidiuch commented 10 years ago

Hmm, so you're thinking the plugin shouldn't allow you to submit an issue if one or more sections are left untouched? It could be done, but currently a lot of us create issues with the default template and complete it afterwards. I don't like this practice either as it sends irrelevant emails.

adaschevici commented 10 years ago

I am thinking either not allow to submit or mark them as incomplete, so issues are no longer "forgotten" just with the boilerplate.

ovidiuch commented 10 years ago

The label could work at first. Do you think you can add this patch to the Chrome extension? What about when the incomplete label isn't created?

adaschevici commented 10 years ago

Ability to add a label to be usable depending on the settings of the repo. Settings for the plugin. Something like - label for incomplete: label .

ovidiuch commented 10 years ago

The MVP would be to use incomplete at first, but there already is an options page if you want to go for it. HTML: https://github.com/skidding/github-issue-template/blob/master/chrome/options.html JS: https://github.com/skidding/github-issue-template/blob/master/chrome/script/options.js