Skip to main content

docassemble.GithubFeedbackForm

PyPI version

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:

  1. Work is stored on a public GitHub repository, or at least, you setup a repository to collect feedback.
  2. There is one package per "interview"/"app".
  3. Each question block has a unique question ID.
  4. Preferably--questions are triggered in an interview order block. If you use a series of mandatory blocks instead of a single mandatory block, the variable listed in the bug report may not be as useful.

Getting started

  1. 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.

  2. Edit your config, and create a block like this:

    github issues:
      username: "YOUR_NEW_DEDICATED_ISSUE_CREATION_ACCOUNT"
      send to github: True # Make this false if you want to store feedback on the server
      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
      # If user agrees, will save the session ID of their current interview on the server and link it to their
      # feedback issue on github. You can browser the linked sessions in `browse_feedback_sessions.yml`
      feedback session linking: True
      # Will ask users filling in feedback if they want to be in a panel, and get their email if they want to
      ask panel: True
      # (optional) If you need better protection from spam feedback, 
      # adding the below, and installing the `google.generativeai` package
      # will use Gemini AI as an additional filter.
      google gemini api key: ...
      spam model: "gemini-2.0-flash-exp" # the default
    

    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.

  3. Add a link on each page, in the footer or under area.
    You can use the feedback_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.yml
    • github_repo: repo name, like: docassemble-AssemblyLine
    • github_user: owner of the repo, like: suffolklitlab
    • variable: variable being sought, like: intro
    • question_id: id of the current question, like: intro
    • package_version: version number of the current package
    • filename: 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
    
  4. 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"
    ---
    code: |
      # Will be the name of the Github label added to new issues
      al_github_label = 'user feedback'
    ---
    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.

  5. If you enabled feedback session linking in the configuration, you can visit the https://myserverurl.com/start/GithubFeedbackForm/browse_feedback_sessions to view

    sessions that users agreed to link to their description of a bug, so you can reproduce the issue. This interview also will show you the list of emails of users who agreed to join a qualitative research panel.

  6. If the issue label "user feedback" is present on the repo, it will be used by default to label incoming issues.

Author

Quinten Steenhuis, qsteenhuis@suffolk.edu

Metadata

Release files for docassemble.GithubFeedbackForm 0.5.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docassemble.GithubFeedbackForm 0.5.7
File Size Uploaded Provenance Actions
docassemble_githubfeedbackform-0.5.7.tar.gz 41.1 kB With provenance Details for docassemble_githubfeedbackform-0.5.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docassemble.GithubFeedbackForm 0.5.7
File Interpreter ABI Platform Actions
docassemble_githubfeedbackform-0.5.7-py3-none-any.whl Python 3 none any Details for docassemble_githubfeedbackform-0.5.7-py3-none-any.whl

Total release size: 84.5 kB

Release files / docassemble_githubfeedbackform-0.5.7.tar.gz

Download URL docassemble_githubfeedbackform-0.5.7.tar.gz
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
32d10b9ea668f6827f2c7da5b562e256d9a9dc99b4087f8ac7827bc7fc3059f9
BLAKE2b-256 checksum
How to use checksums
d3ae868c529c60e25f29bcc1c9b8000e049e966ae5a905349cb80a6a794e8e8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / docassemble_githubfeedbackform-0.5.7-py3-none-any.whl

Download URL docassemble_githubfeedbackform-0.5.7-py3-none-any.whl
Size 43.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe4776bbdef066e7d39cf5f879aadf884299fcd7ddb70cd68d0a46c420ff7237
BLAKE2b-256 checksum
How to use checksums
60b242ecc9b99febd393c7aad81e307126535d970388784a2fa503ab8f28fd4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for docassemble.GithubFeedbackForm 0.5.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for docassemble_githubfeedbackform-0.5.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page