From e2349b4565f5b1a41a0efde7feeaf372600b0b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 30 May 2022 14:45:16 +0200 Subject: [PATCH 1/8] =?UTF-8?q?=F0=9F=91=B7=20Ignore=20errors=20on=20Disco?= =?UTF-8?q?rd=20hook=20&=20e2e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e2e are too flaky, discord hook might be unconfigured in a fork. --- .github/workflows/build.yml | 1 + .github/workflows/test_install.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a219563a..fbc3ed47c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,6 +96,7 @@ jobs: name: ๐Ÿงช E2E tests needs: build runs-on: ubuntu-latest + continue-on-error: true steps: - name: โฌ‡ Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 37e64bc49..76d7b2e23 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -31,12 +31,14 @@ jobs: run: | pip install . - name: ๐Ÿ“ง Discord success notification + continue-on-error: true env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: args: "โ˜‘๏ธ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful" - name: ๐Ÿ“ง Discord failure notification + continue-on-error: true if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} @@ -65,12 +67,14 @@ jobs: run: | pip install https://github.com/OctoPrint/OctoPrint/archive/${{ steps.latest.outputs.release }}.zip - name: ๐Ÿ“ง Discord success notification + continue-on-error: true env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: args: "โ˜‘๏ธ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` was successful" - name: ๐Ÿ“ง Discord failure notification + continue-on-error: true if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} From 53b9b6185781c07e8c4744a6e28462e96448f249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 30 May 2022 14:51:54 +0200 Subject: [PATCH 2/8] =?UTF-8?q?=F0=9F=91=B7=20Only=20trigger=20release=20j?= =?UTF-8?q?obs=20on=20main=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbc3ed47c..44d27367b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -142,7 +142,7 @@ jobs: publish-on-testpypi: name: ๐Ÿ“ฆ Publish on TestPyPI - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: - pre-commit - test-unit @@ -164,7 +164,7 @@ jobs: publish-on-pypi: name: ๐Ÿ“ฆ Publish tagged releases to PyPI - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: publish-on-testpypi runs-on: ubuntu-latest steps: @@ -180,7 +180,7 @@ jobs: notify-custopizer-build: name: ๐Ÿ“ง Notify OctoPi-UpToDate - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: publish-on-pypi runs-on: ubuntu-latest steps: From 01f24e6cea84051798c990190df51ee220c65986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 20 Jun 2022 15:49:00 +0200 Subject: [PATCH 3/8] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20A?= =?UTF-8?q?dd=20issues/PRs=20to=20backlog=20automatically?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_to_backlog.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/add_to_backlog.yml diff --git a/.github/workflows/add_to_backlog.yml b/.github/workflows/add_to_backlog.yml new file mode 100644 index 000000000..cd20b500c --- /dev/null +++ b/.github/workflows/add_to_backlog.yml @@ -0,0 +1,20 @@ +name: Add issues/PRs to backlog automatically + +on: + issues: + types: + - opened + - transferred + pull_request: + types: + - opened + +jobs: + add-to-project: + name: Add issue or PR to OctoPrint Backlog project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + project-url: https://github.com/orgs/OctoPrint/projects/6 + github-token: ${{ secrets.BACKLOG_PAT }} From 008292ce600869c4d74b880bf4d5bbf364a03cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 20 Jun 2022 15:56:07 +0200 Subject: [PATCH 4/8] Use org wide secret --- .github/workflows/add_to_backlog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add_to_backlog.yml b/.github/workflows/add_to_backlog.yml index cd20b500c..9910ff167 100644 --- a/.github/workflows/add_to_backlog.yml +++ b/.github/workflows/add_to_backlog.yml @@ -17,4 +17,4 @@ jobs: - uses: actions/add-to-project@main with: project-url: https://github.com/orgs/OctoPrint/projects/6 - github-token: ${{ secrets.BACKLOG_PAT }} + github-token: ${{ secrets.BACKLOG_PROJECT_ACCESS }} From 6bddada8c2b36e254c333ae86a16731d9c2a8ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Jun 2022 10:12:53 +0200 Subject: [PATCH 5/8] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20A?= =?UTF-8?q?dd=20task=20labeling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue_automation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 3e5b9e016..13830c66a 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -28,6 +28,11 @@ jobs: labels = labels.filter(label => label !== 'triage'); setLabels = true; } + if (context.payload.issue.title.match(/\[task\]/i)) { + labels.push('task'); + labels = labels.filter(label => label !== 'triage'); + setLabels = true; + } if (labels.length === 0) { labels.push('triage'); @@ -37,7 +42,7 @@ jobs: } case 'closed': { - if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement')) { + if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement') || labels.includes('task')) { labels.push('done'); setLabels = true; } From 2e1ec42c5b7602be7bb57b1792598a851441c156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 23 Jun 2022 10:50:06 +0200 Subject: [PATCH 6/8] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20N?= =?UTF-8?q?eeds=20to=20run=20against=20pull=5Frequest=5Ftarget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_to_backlog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add_to_backlog.yml b/.github/workflows/add_to_backlog.yml index 9910ff167..bdebec10e 100644 --- a/.github/workflows/add_to_backlog.yml +++ b/.github/workflows/add_to_backlog.yml @@ -5,7 +5,7 @@ on: types: - opened - transferred - pull_request: + pull_request_target: types: - opened From c18a5046d50ed082cac62fdf50fa5d88f85159a1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 12 Jul 2022 19:48:39 +0200 Subject: [PATCH 7/8] :pencil2: timelapse.rst: Fix typos (#4569) --- docs/api/timelapse.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/timelapse.rst b/docs/api/timelapse.rst index ebe291e83..e739b43ee 100644 --- a/docs/api/timelapse.rst +++ b/docs/api/timelapse.rst @@ -76,7 +76,7 @@ Change current timelapse config .. http:post:: /api/timelapse Save a new :ref:`timelapse configuration ` to use for the next print. Set the optional ``save`` flag in the - configuration to ``true`` in order to make the new configuration persist accross restarts. + configuration to ``true`` in order to make the new configuration persist across restarts. The configuration is expected as the request body. @@ -220,7 +220,7 @@ Timelapse configuration * - ``save`` - 1 - bool - - Optional flag to be included when when saving a configuration to make the configuration persist accross restarts + - Optional flag to be included when when saving a configuration to make the configuration persist across restarts Further fields are timelapse type specific, see below for details. From 5753ee3cfa26a78feceee0b137ca72bd4bbf0b34 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 1 Aug 2022 11:41:55 +0200 Subject: [PATCH 8/8] =?UTF-8?q?=E2=9C=8F=20Highlight=20branch=20names=20in?= =?UTF-8?q?=20PR=20template=20(#4573)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 9d7dce15b..f8c0d33a3 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,10 +1,10 @@