Skip to content

Commit

Permalink
Bump version to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Dec 8, 2023
1 parent b8c7eb4 commit 8670da0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docassemble/GithubFeedbackForm/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.1'
__version__ = '0.3.0'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def find_package_data(where='.', package='', exclude=standard_exclude, exclude_d
return out

setup(name='docassemble.GithubFeedbackForm',
version='0.2.1',
version='0.3.0',
description=('Integration of GitHub issues with Docassemble interviews for collecting user feedback'),
long_description='# docassemble.GithubFeedbackForm\r\n\r\nA package that uses the GitHub API to gather feedback and then submit issues to Github that can be embedded\r\ninto a Docassemble interview. Makes it easy to collect per-page feedback.\r\n\r\nThis package is designed to support the following workflow:\r\n\r\n1. Work is stored on a public GitHub repository, or at least, you setup a repository to collect feedback.\r\n1. There is one package per "interview"/"app".\r\n2. Each question block has a unique question ID.\r\n3. Preferably--questions are triggered in an interview order block. If you use a series of `mandatory`\r\n blocks instead of a single mandatory block, the `variable` listed in the bug report may not be as useful.\r\n\r\n## Getting started\r\n\r\n1. Create a new GitHub user and create a personal access token on it. The personal access\r\n token needs minimal permissions. Specifically, it needs to be allowed to make pull requests.\r\n Pull request access is allowed for anyone by default when you create a new, public GitHub repository.\r\n3. Edit your config, and create a block like this:\r\n\r\n```yaml\r\ngithub issues:\r\n username: "YOUR_NEW_DEDICATED_ISSUE_CREATION_ACCOUNT"\r\n token: "..." # A valid GitHub personal access token associated with the username above\r\n default repository owner: YOUR_GITHUB_USER_OR_ORG_HERE\r\n allowed repository owners: # List the repo that your account will be allowed to create issues on\r\n - YOUR_GITHUB_USER_OR_ORG_HERE \r\n - SECOND_GITHUB_USER_OR_ORG\r\n```\r\n\r\n Note that it is important to provide a list of allowed repository owners.\r\n This is used to prevent your form from being used to spam GitHub \r\n repositories with feedback.\r\n \r\n3. Add a link on each page, in the footer or `under` area. \r\n You can use the `feedback_link()` function to add a link, like this:\r\n `[:comment-dots: Feedback](${ feedback_link(user_info()) } ){:target="_blank"}`\r\n \r\n Optional parameters:\r\n - `i`: the feedback form, like: docassemble.AssemblyLine:feedback.yml\r\n - `github_repo`: repo name, like: docassemble-AssemblyLine\r\n - `github_user`: owner of the repo, like: suffolklitlab\r\n - `variable`: variable being sought, like: intro\r\n - `question_id`: id of the current question, like: intro\r\n - `package_version`: version number of the current package\r\n - `filename`: filename of the interview the user is providing feedback on.\r\n \r\n Each has a sensible default. Most likely, you will limit your custom\r\n parameters to the `github_repo` if you want feedback links to work\r\n from the docassemble playground.\r\n \r\n You will also need to include the `github_issue.py` module in your parent interview,\r\n like this: \r\n ```yaml\r\n ---\r\n modules:\r\n - docassemble.GithubFeedbackForm.github_issue\r\n ```\r\n \r\n4. Optionally, create your own feedback.yml file. If you want a custom feedback.yml,\r\n it should look like this, with whatever customizations you choose:\r\n\r\n```yaml\r\ninclude:\r\n - docassemble.GithubFeedbackForm:feedback.yml\r\n---\r\ncode: |\r\n al_feedback_form_title = "Your title here" \r\n---\r\ncode: |\r\n # This email will be used ONLY if there is no valid GitHub config\r\n al_error_email = "your_email@yourdomain.com"\r\n---\r\ntemplate: al_how_to_get_legal_help\r\ncontent: |\r\n If you need more help, these are free resources:\r\n\r\n ... [INCLUDE STATE-SPECIFIC RESOURCES] \r\n```\r\n\r\nYou may also want to customize the metadata: title, exit url and override \r\nany specific questions, add a logo, etc. \r\n\r\n## Author\r\n\r\nQuinten Steenhuis, qsteenhuis@suffolk.edu\r\n',
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 8670da0

Please sign in to comment.