Integration of GitHub issues with Docassemble interviews for collecting user feedback
Project description
docassemble.GithubFeedbackForm
A package that uses the GitHub API to gather feedback and then submit issues to Github that can be embedded into a Docassemble interview. Makes it easy to collect per-page feedback.
This package is designed to support the following workflow:
- Work is stored on a public GitHub repository, or at least, you setup a repository to collect feedback.
- There is one package per "interview"/"app".
- Each question block has a unique question ID.
- Preferably--questions are triggered in an interview order block. If you use a series of
mandatory
blocks instead of a single mandatory block, thevariable
listed in the bug report may not be as useful.
Getting started
- Create a new GitHub user and create a personal access token on it. The personal access token needs minimal permissions. Specifically, it needs to be allowed to make pull requests. Pull request access is allowed for anyone by default when you create a new, public GitHub repository.
- Edit your config, and create a block like this:
github issues:
username: "YOUR_NEW_DEDICATED_ISSUE_CREATION_ACCOUNT"
token: "..." # A valid GitHub personal access token associated with the username above
default repository owner: YOUR_GITHUB_USER_OR_ORG_HERE
allowed repository owners: # List the repo that your account will be allowed to create issues on
- YOUR_GITHUB_USER_OR_ORG_HERE
- SECOND_GITHUB_USER_OR_ORG
Note that it is important to provide a list of allowed repository owners. This is used to prevent your form from being used to spam GitHub repositories with feedback.
-
Add a link on each page, in the footer or
under
area.
You can use thefeedback_link()
function to add a link, like this:[:comment-dots: Feedback](${ feedback_link(user_info()) } ){:target="_blank"}
Optional parameters:
i
: the feedback form, like: docassemble.AssemblyLine:feedback.ymlgithub_repo
: repo name, like: docassemble-AssemblyLinegithub_user
: owner of the repo, like: suffolklitlabvariable
: variable being sought, like: introquestion_id
: id of the current question, like: intropackage_version
: version number of the current packagefilename
: filename of the interview the user is providing feedback on.
Each has a sensible default. Most likely, you will limit your custom parameters to the
github_repo
if you want feedback links to work from the docassemble playground.You will also need to include the
github_issue.py
module in your parent interview, like this:--- modules: - docassemble.GithubFeedbackForm.github_issue
-
Optionally, create your own feedback.yml file. If you want a custom feedback.yml, it should look like this, with whatever customizations you choose:
include:
- docassemble.GithubFeedbackForm:feedback.yml
---
code: |
al_feedback_form_title = "Your title here"
---
code: |
# This email will be used ONLY if there is no valid GitHub config
al_error_email = "your_email@yourdomain.com"
---
template: al_how_to_get_legal_help
content: |
If you need more help, these are free resources:
... [INCLUDE STATE-SPECIFIC RESOURCES]
You may also want to customize the metadata: title, exit url and override any specific questions, add a logo, etc.
Author
Quinten Steenhuis, qsteenhuis@suffolk.edu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file docassemble.GithubFeedbackForm-0.2.0b1.tar.gz
.
File metadata
- Download URL: docassemble.GithubFeedbackForm-0.2.0b1.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 742c8c6bc287159ae23085f611fbccdb5bc4e20309c8bb001669d9ce336061a2 |
|
MD5 | 2938aec0c74d7c78ff7cc454f38c8b8d |
|
BLAKE2b-256 | 8d704f2d3540b1fe68af4dff7b0d0399b2407c6cb24d948d3c10d6cd3c87e52a |
File details
Details for the file docassemble.GithubFeedbackForm-0.2.0b1-py3-none-any.whl
.
File metadata
- Download URL: docassemble.GithubFeedbackForm-0.2.0b1-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15a23d29bf773a6b058b43c12128930bfc021e0e87ca1cf3ca5cd8d9eebf721a |
|
MD5 | bafc681bf1c433f90a3695a5a15e9ff5 |
|
BLAKE2b-256 | 1d57e815efbfd89c4cb4e2796e7a341fbd827b58f1ed581bd99da3f5914eb086 |