diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 000000000..ed3f1c77a
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,25 @@
+docs:
+ - "docs/*"
+ - "docs/**/*"
+ - "README.md"
+
+meta:
+ - "CODE_OF_CONDUCT.md"
+ - "CONTRIBUTING.md"
+ - "SECURITY.md"
+ - ".github/CODEOWNERS"
+ - ".github/FUNDING.yml"
+ - ".github/ISSUE_TEMPLATE/*"
+ - ".github/PULL_REQUEST_TEMPLATE.md"
+
+ci/cd:
+ - ".github/fixtures/**/*"
+ - ".github/workflows/*"
+ - ".github/labeler.yml"
+
+docker:
+ - ".github/workflows/trigger_docker.yml"
+
+tests:
+ - "tests/*"
+ - "tests/**/*"
diff --git a/.github/pr-validation.yml b/.github/pr-validation.yml
new file mode 100644
index 000000000..b6644f25c
--- /dev/null
+++ b/.github/pr-validation.yml
@@ -0,0 +1,14 @@
+approve_label: "approved"
+problem_label: "needs some work"
+
+allowed_targets: ["maintenance", "devel", "staging/maintenance", "staging/devel"]
+forbidden_sources:
+ ["master", "maintenance", "devel", "staging/maintenance", "staging/devel"]
+
+labels:
+ docs:
+ additional_allowed_targets: ["master"]
+ meta:
+ additional_allowed_targets: ["master"]
+ ci/cd:
+ additional_allowed_targets: ["master"]
diff --git a/.github/workflows/issue_labeler.yml b/.github/workflows/issue_automation.yml
similarity index 97%
rename from .github/workflows/issue_labeler.yml
rename to .github/workflows/issue_automation.yml
index 5b6e026e7..f3024d73f 100644
--- a/.github/workflows/issue_labeler.yml
+++ b/.github/workflows/issue_automation.yml
@@ -1,10 +1,10 @@
-name: "Issue Labeler"
+name: "Issue Automation"
on:
issues:
types: [opened, edited, closed, reopened]
jobs:
- label-opened-and-edited:
+ label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v2
diff --git a/.github/workflows/pr_automation.yml b/.github/workflows/pr_automation.yml
new file mode 100644
index 000000000..e770708a0
--- /dev/null
+++ b/.github/workflows/pr_automation.yml
@@ -0,0 +1,20 @@
+name: "Pull Request Automation"
+on:
+ pull_request_target:
+ types: ["opened", "synchronize", "reopened", "edited", "labeled", "unlabeled"]
+
+jobs:
+ label:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v3
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+
+ validate:
+ runs-on: ubuntu-latest
+ needs: label
+ steps:
+ - uses: OctoPrint/actions/pr-validation@main
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml
index 0b4553545..1a86bb0c6 100644
--- a/.github/workflows/trigger_docker.yml
+++ b/.github/workflows/trigger_docker.yml
@@ -19,7 +19,7 @@ jobs:
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
- event-type: ${{ github.event_name }}
+ event-type: ${{ github.event.action }}
client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}'
dispatch_canary:
@@ -32,7 +32,7 @@ jobs:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "canary"
- client-payload: '{"tag_name": "${{ github.sha }}"}'
+ client-payload: '{"tag_name": "maintenance"}'
dispatch_bleeding:
runs-on: ubuntu-latest
@@ -44,4 +44,4 @@ jobs:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "bleeding"
- client-payload: '{"tag_name": "${{ github.sha }}"}'
+ client-payload: '{"tag_name": "devel"}'
diff --git a/AUTHORS.md b/AUTHORS.md
index a50ec706b..f7477841b 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -130,6 +130,9 @@ date of first contribution):
* [Sophist](https://github.com/Sophist-UK)
* [Manuel McLure](https://github.com/ManuelMcLure)
* ["j7126"](https://github.com/j7126)
+ * ["coliss86"](https://github.com/coliss86)
+ * ["MichaIng"](https://github.com/MichaIng)
+ * ["jasonbcox"](https://github.com/jasonbcox)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
diff --git a/docs/bundledplugins/action_command_notification.rst b/docs/bundledplugins/action_command_notification.rst
index fb3b50277..d2b5a005c 100644
--- a/docs/bundledplugins/action_command_notification.rst
+++ b/docs/bundledplugins/action_command_notification.rst
@@ -10,7 +10,7 @@ The OctoPrint Action Command Notification Support Plugin comes bundled with Octo
It allows firmware to trigger notifications users with the ``PLUGIN_ACTION_COMMAND_NOTIFICATION_SHOW`` permission
using :ref:`action commands