--- hastr: true layout: project title: Report a Bug short: reportabug hasgui: false hasdocs: true developers: - Evgeniy Alekseev license: LGPLv3 links: ---
Qt application/library which allows users to create an issue for projects which are hosted on GitHub. It may work over GitHub or GitReport.
cmake
:
{% highlight cmake %}
add_subdirectory (reportabug)
{% endhighlight %}
-DBUILD_AS_LIBRARY:BOOL=0
- build the application but not a shared library.-DBUILD_DOCS:BOOL=1
- build developer documentation.-DENABLE_GITHUB=0
- disable GitHub module.-DENABLE_GITREPORT=0
- disable GitReport module.-DOWN_GITHUB_TOKEN=STRING
- use STRING as own GitHub token.-DUSE_QT5:BOOL=0
- use Qt4 instead of Qt5.I want note that all were tested on latest version of dependencies.
This module creates an issue over GitHub. GitHub API is used for creating issue. User should type own username and password. The typical POST request is:
{% highlight bash %} curl -X POST -u user:pass -d '{"title":"A new bug","body":"Some error occurs"}' \ https://api.github.com/repos/owner/repo/issues {% endhighlight %}To disable this module use -DENABLE_GITHUB=0
cmake flag.
This module may send request using developer's token too. Please visit this page and generate a new one. Needed scopes are public_repo
(or repo
if you will use it for a private repository).
Please keep in mind that passing the token in the clear, you may discredit your account.
The typical POST request is:
{% highlight bash %} curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"Some error occurs"}' \ https://api.github.com/repos/owner/repo/issues {% endhighlight %}To enable this module set up your token using -DOWN_GITHUB_TOKEN=0
cmake flag.
This module requires QtNetwork
module.
This module creates issue over GitReports. Please visit this page and set up it for your repository.
To disable this module use -DENABLE_GITREPORT=0
cmake flag. This module requires QtWebKit
module.
For the developer configuration please use config.h.in
header.
OWNER
- the owner of the source repository.PROJECT
- the project name.TAG_BODY
- default body of an issue. It may be used for both modules.TAG_TITLE
- default title of an issue. It may be used only for GitHub module.TAG_ASSIGNEE
- assign an issue to this account. It may be used only for GitHub module. This tag will work only if user has push access. If it will be empty, it will be ignored.TAG_LABELS
- set these labels to an issue. Labels should be comma separated. It may be used only for GitHub module. This tag will work only if user has push access. If it will be empty, it will be ignored.TAG_MILESTONE
- set this milestone to an issue. It may be used only for GitHub module. This tag will work only if user has push access. If it will be empty, it will be ignored.GITHUB_COMBOBOX
- text of this module into comboBox.ISSUES_URL
- issues url, in the most cases do not touch it. Default is https://api.github.com/repos/$OWNER/$PROJECT/issues
. Available tags here are $PROJECT
, $OWNER
.CAPTCHA_KEY
- captcha key. It may be found in the source of the PUBLIC_URL
page. Default is 7f6ef90bce7389088a52c5c9101aad206b21b56d
.CAPTCHA_TEXT
- captcha text. It may be found in the source of the PUBLIC_URL
page. Default is QJNZXY
.CAPTCHA_TIME
- captcha time. It may be found in the source of the PUBLIC_URL
page. Default is 1406531273
.GITREPORT_COMBOBOX
- text of this module into comboBox.PUBLIC_URL
- issues url, in the most cases do not touch it. Default is https://gitreports.com/issue/$OWNER/$PROJECT
. Available tags here are $PROJECT
, $OWNER
.