skapral / puzzlerbot

PDD manager which manages puzzles in issue/PR comments
MIT License
21 stars 3 forks source link
github gitlab grizzly java jax-rs jersey oo-atom pdd-puzzles

Puzzler bot

Build Status (Travis) Build status (AppVeyor) Codecov

Notice:

Puzzle Driven Development concept, pdd and 0pdd tools belong to Yegor Bugayenko. Links:

Introduction:

@puzzlerbot is a bot which provides new ways of managing the puzzles - trackable TODO stub-like tasks which make possible to cut corners in fast and smooth way. Initial concept supposes that the puzzles are defined as specially-formatted TODO items in the project's source code, but practically this approach has some drawbacks:

@puzzlerbot's approach is to scan for puzzles in issues or pull requests comments after the issue or pull request is closed. Comments tend to be more stable than the code base, they may exist when even no code is written yet, and they are rarely changed.

Principles:

Quick setup:

Puzzlerbot supports GitHub and GitLab integration.

GitHub

Just add new GitHub webhook to your project's "Settings" -> "Webhooks" tab:

GitLab

In your GitLab project's "Settings" -> "Integration" view, add new webhook:

Misc

Note that you can also deploy your own private and personal @puzzlerbot instance using this guide.

How to create a puzzle

Puzzles are placed in issue or pull request comments. Once the issue or pull request is closed, @puzzlerbot scans its comments for puzzles and creates one issue per puzzle. One comment may have at most one puzzle. To make @puzzlebot properly recognize your puzzles, follow conventions described in this section.

Consider comment with this text:

@puzzlebot FYI

Something weird happened with the system, needs to be fixed.

Steps to reproduce:
0. Preconditions
1. Step one
2. Step two
3. Step three

Expected result: Everything is okay.
Actual result Exception is thrown.

This comment will be parsed by @puzzlerbot as a puzzle with title "Something weird happened with the system, heeds to be fixed." and description "Steps to reproduce..." etc.

In details

When parsing comments and seeking for puzzles, @puzzlerbot splits each comment to paragraphs and classifies each paragraph to one of the types below:

License

MIT License

Copyright (c) 2018 Kapralov Sergey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.