diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 0f76418a2..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,135 +0,0 @@ ---- -name: Bug report -about: Create a report to help improve OctoPrint - ---- - - - -#### What were you doing? - - - -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - - - -#### What did you expect to happen? - -#### What happened instead? - -#### Did the same happen when running OctoPrint in safe mode? - - - -#### Version of OctoPrint - - - -#### Operating System running OctoPrint - - - -#### Printer model & used firmware incl. version - - - -#### Browser and version of browser, operating system running browser - - - -#### Link to octoprint.log - - - -#### Link to contents of terminal tab or serial.log - - - -#### Link to contents of Javascript console in the browser - - - -#### Screenshot(s)/video(s) showing the problem: - - - -I have read the FAQ. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..6e56ba502 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,121 @@ +name: Bug report +about: Create a report to help improve OctoPrint +title: "" +issue_body: true +inputs: + - type: description + attributes: + value: > + **Thank you for wanting to report a bug in OctoPrint!** + + + If this is the first time you are doing this, please take a few moments to read + through the [Contribution Guidelines](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md). + Also check out [the FAQ](https://faq.octoprint.org) if your + problem is maybe already covered there. + + + You are about to report a bug in **OctoPrint**. Do not proceed if your issues + occurs with OctoPi, any third party OctoPrint plugins, unofficial or outdated + OctoPrint versions. If you are unsure of the difference between OctoPrint and + OctoPi, [read this FAQ entry](https://faq.octoprint.org/octoprint-vs-octopi). + + + Do also not seek support here ("I need help with ...", "I have a + question ...", "Can someone walk me through ..."), that belongs into the + [community forum at community.octoprint.org](https://community.octoprint.org) or on the [Discord server](https://discord.octoprint.org). + + + And finally, make sure any bug you want to report is still present with the **current** + OctoPrint version and that it does not vanish when you start OctoPrint + in [safe mode](https://docs.octoprint.org/en/master/features/safemode.html) either. + + + Thank you for your collaboration! + - type: textarea + attributes: + label: The problem + required: true + description: >- + Describe the issue you are experiencing here. Tell us what you were trying to do + step by step, and what happened that you did not expect. + + Provide a clear and concise description of what the problem is and include as many + details as possible. + placeholder: | + 1. ... + 2. ... + 3. ... + - type: dropdown + attributes: + label: Did the issue persist even in safe mode? + description: >- + Testing in safe mode is required to make sure the issue you are reporting is not + caused by a third party plugin. Please see [here](https://docs.octoprint.org/en/master/features/safemode.html) + on how to run OctoPrint in safe mode. + choices: + - Yes, it did persist + - No, it did not persist (it's an issue with one of your installed plugins, don't report here) + - I cannot test this issue in safe mode (state why below) + required: true + - type: description + attributes: + value: | + ## Environment + - type: input + attributes: + label: Version of OctoPrint + description: Can be found in the lower left corner of the web interface. + required: true + - type: input + attributes: + label: Operating system running OctoPrint + description: >- + OctoPi, Linux, Windows, MacOS, something else? With version please? OctoPi's + version can be found in `/etc/octopi_version` or in the lower left corner of the + web interface. + required: true + - type: input + attributes: + label: Printer model & used firmware incl. version + description: If applicable, always include if unsure + - type: input + attributes: + label: Browser and version of browser, operating system running browser + description: If applicable, always include if unsure + - type: description + attributes: + value: | + ## Logs and other files needed for analysis + - type: description + attributes: + value: >- + Please also be sure to upload the following files below: + + * `octoprint.log`: See [here](https://community.octoprint.org/t/where-can-i-find-octoprints-and-octopis-log-files/299) if you don't know where to find that. + * `serial.log` or the contents of your terminal tab, if applicable. Always + include if unsure. **Please note that you need to enable `serial.log` first**, + see [here](https://community.octoprint.org/t/where-can-i-find-octoprints-and-octopis-log-files/299) if you don't know how to do or where to find it. + * Your browser's JavaScript console, if you are reporting a problem with the + user interface. See [here](https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers) on where to find that. + * If possible, screenshots or videos showing the problem, especially if you + are reporting a problem with the user interface! + * GCODE files with which to reproduce, if you are reporting an issue with + GCODE file analysis or printing behaviour. + + Please be aware that unless at least `octoprint.log` is included, your bug report + will not be processed. + - type: checkboxes + attributes: + label: Checklist of files to include below + choices: + - label: octoprint.log + required: true + - label: serial.log or contents of your terminal tab (always include in cases of issues with printer communication) + - label: Contents of the JavaScript browser console (always include in cases of issues with the user interface) + - label: Screenshots and/or videos showing the problem (always include in case of issues with the user interface) + - label: GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour) + - type: description + attributes: + value: | + ## Additional information & file uploads diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 673ff985e..ee710bab7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ on: push: pull_request: release: - types: [published, prereleased] + types: [released, prereleased] workflow_dispatch: jobs: diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 0ba8b6f44..fb59a7d97 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -63,7 +63,7 @@ jobs: }) } - - uses: OctoPrint/actions/issue-validation@main - if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited') - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + #- uses: OctoPrint/actions/issue-validation@main + # if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'edited') + # with: + # repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/linkify_bundles.yml b/.github/workflows/linkify_bundles.yml index 3c36edfb2..9e0553891 100644 --- a/.github/workflows/linkify_bundles.yml +++ b/.github/workflows/linkify_bundles.yml @@ -31,7 +31,7 @@ jobs: } }; - if (bundles) { + if (bundles.length > 0) { let text = comment + botMarker + "\n\n---\n\n\nBundles:\n\n"; bundles.forEach((bundle) => { text += " * [" + bundle.filename + "](https://bundleviewer.octoprint.org/?url=" + encodeURIComponent(bundle.link) + ")\n" @@ -44,4 +44,11 @@ jobs: comment_id: context.payload.comment.id, body: text }); + } else if (botWasHere !== -1) { + github.issues.updateComment({ + owner: context.repo.owner, + repo: context.repo.repo, + comment_id: context.payload.comment.id, + body: comment + }); } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 68c62a498..ba81eaba8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -31,7 +31,7 @@ nothing but ticket management. - **[Read the FAQ](https://faq.octoprint.org)** - If you want to report a **bug**, [read "How to file a bug report" below](#how-to-file-a-bug-report) - and *[use the provided template](#what-should-i-include-in-a-ticket)*. + and *[use the provided form](https://github.com/OctoPrint/OctoPrint/issues/new?template=bug_report.yml)*. You do not need to do anything else with your ticket. - If you want to post a **feature request** or a **documentation request**, add `[Request]` to your issue's title (e.g. `[Request] Awesome new feature`). A question on how to run/change/setup @@ -48,15 +48,6 @@ nothing but ticket management. No matter what kind of ticket you create, never mix two or more "ticket reasons" into one ticket: One ticket per bug, request, brainstorming thread please. -> 👉 **Note** -> -> A bot is in place that monitors new tickets, automatically -> categorizes them and checks new bug reports for usage of the provided template. -> That bot will only bother you if you open a ticket that appears to be a bug (no -> `[Request]` in the title) without the complete template, and it -> will do that only to ensure that all information needed to solve the issue is -> available for the maintainers to directly start tackling that problem. - ## How to file a bug report If you encounter an issue with OctoPrint, you are welcome to @@ -118,7 +109,7 @@ following section *completely* and also follow the instructions in the it is the same as your's, it actually behaves the same as your's. E.g. if someone gives steps to reproduce his bug that looks like your's, reproduce the bug like that if possible, and only add a "me too" if you actually can reproduce the same - issue. Also **provide all information** as [described below](#what-should-i-include-in-a-bug-report) + issue. Also **provide all information like logs, versions, different reproduction steps** and whatever was additionally requested over the course of the ticket even if you "only" add to an existing ticket. The more information available regarding a bug, the higher the chances of reproducing and solving it. But "me too" on an actually unrelated ticket @@ -126,7 +117,7 @@ following section *completely* and also follow the instructions in the there's now also a [red herring](https://en.wikipedia.org/wiki/Red_herring) interfering - so please be very diligent here! -If in doubt about any of the above - get in touch on the [community forum](https://community.octoprint.org) +If in doubt about any of the above - get in touch on the [community forums](https://community.octoprint.org) instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together there. @@ -135,143 +126,11 @@ there. First of all make sure your use **a descriptive title**. "It doesn't work" and similar unspecific complaints are NOT descriptive titles. -**Always use the following template, even if only adding a "me too" to an -existing ticket**: +Always fill out the [reporting form](https://github.com/OctoPrint/OctoPrint/issues/new?template=bug_report.yml) **completely** and include as much +information as possible. -``` - - -#### What were you doing? - - - -1. ... -2. ... -3. ... - - - -#### What did you expect to happen? - -#### What happened instead? - -#### Did the same happen when running OctoPrint in safe mode? - - - -#### Version of OctoPrint - - - -#### Operating System running OctoPrint - - - -#### Printer model & used firmware incl. version - - - -#### Browser and version of browser, operating system running browser - - - -#### Link to octoprint.log - - - -#### Link to contents of terminal tab or serial.log - - - -#### Link to contents of Javascript console in the browser - - - -#### Screenshot(s)/video(s) showing the problem: - - - -I have read the FAQ. -``` - -Copy-paste this template **completely** (or use the version that gets pre-filled -into the "new issue" form). Do not skip any lines or the bot *will* complain! Provide -all requested information or your ticket will be closed. +Provide the same kind and amount of information also when you are just adding on to an +existing ticket! ### Where can I find which version and branch I'm on? @@ -427,6 +286,7 @@ See [the corresponding chapter in the documentation](https://docs.octoprint.org/ * 2020-08-10: Update versioning scheme and PR instructions * 2020-09-23: Move branch & versioning into development docs * 2020-10-07: Introduce `pre-commit` + * 2021-02-04: Issue forms! \o/ ## Footnotes * [1] - If you are wondering why, the problem is that anything that you add diff --git a/docs/bundledplugins/softwareupdate.rst b/docs/bundledplugins/softwareupdate.rst index f18a3807b..492dfbd4e 100644 --- a/docs/bundledplugins/softwareupdate.rst +++ b/docs/bundledplugins/softwareupdate.rst @@ -199,7 +199,7 @@ types are currently recognized: * ``prerelease_branches``: Prerelease channel definitions, optional. List of: * ``branch``: Branch associated with the channel, acts as ID * ``name``: Human readable name of the release channel - * ``committish``: List of values to check against ``target_comittish`` + * ``commitish``: List of values to check against ``target_commitish`` field in Github release data - release will only be included if the values match. Defaults to being unset, in which case the ``branch`` will be matched. @@ -207,13 +207,13 @@ types are currently recognized: * ``stable_branch``: Stable channel definition, optional. Structure: * ``branch``: Branch associated with the channel, acts as ID * ``name``: Human readable name of the release channel - * ``commitish``: List of values to check against ``target_comittish`` + * ``commitish``: List of values to check against ``target_commitish`` field in Github release data - release will only be included if the values match. Defaults to being unset, in which case the ``branch`` will be matched. .. versionadded:: 1.2.16 * ``prerelease_channel``: Release channel to limit updates to. If set only - those releases will be included if their ``target_comittish`` matches + those releases will be included if their ``target_commitish`` matches the ones associated with the release channel identified by this, either included in ``prerelease_channels`` or the ``stable_channel``. Only taken into account if ``prerelease`` is ``true``. @@ -445,17 +445,17 @@ but with "Stable" active: stable_branch: name: Stable branch: master - comittish: + commitish: - master prerelease_branches: - name: Maintenance RCs branch: rc/maintenance - comittish: + commitish: - rc/maintenance - master - name: Devel RCs branch: rc/devel - comittish: + commitish: - rc/devel - rc/maintenance - master @@ -463,6 +463,8 @@ but with "Stable" active: And now with "Maintenance RCs" active (note the ``prerelease`` and ``prerelease_channel`` settings): +.. code-block:: yaml + plugins: softwareupdate: checks: @@ -473,17 +475,17 @@ And now with "Maintenance RCs" active (note the ``prerelease`` and ``prerelease_ stable_branch: name: Stable branch: master - comittish: + commitish: - master prerelease_branches: - name: Maintenance RCs branch: rc/maintenance - comittish: + commitish: - rc/maintenance - master - name: Devel RCs branch: rc/devel - comittish: + commitish: - rc/devel - rc/maintenance - master diff --git a/docs/development/environment.rst b/docs/development/environment.rst index 964169d9c..f53227f03 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -75,10 +75,11 @@ the *Python 3* environment and install the docs dependencies as well: * ``source venv3/bin/activate`` (Linux, macOS) or ``source venv3/Scripts/activate`` (Git Bash under Windows, see below) * ``pip install -e .[develop,plugins,docs]`` -You can then build the documentation: +Go to the directory `docs` and you can then build the documentation: * ``sphinx-build -b html . _build`` +The documentation will be available in the newly created ``_build`` directory. You can simply browse it locally by opening ``index.html`` .. _sec-development-environment-source-linux: Linux