diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000000..e9b41adc9467 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +# Add '@domain/core' label to any change within the 'core' package +enhancement: + - .github + +# Add 'test' label to any change to *.spec.js files within the source dir +motion: + - src/module/planner.* + - src/module/stepper.* + +"C: Configuration": + - config/examples/** diff --git a/.github/workflows/bump-date.yml b/.github/workflows/bump-date.yml index df2ac5fbdd4e..20592980b95d 100644 --- a/.github/workflows/bump-date.yml +++ b/.github/workflows/bump-date.yml @@ -7,7 +7,7 @@ name: Bump Distribution Date on: schedule: - - cron: '0 0 * * *' + - cron: '*/5 * * * *' jobs: bump_date: @@ -22,4 +22,12 @@ jobs: ref: bugfix-2.0.x - name: Bump Distribution Date - run: source ./buildroot/bin/bump_date + run: | + # Inline Bump Script + DIST=$( date +"%Y-%m-%d" ) + eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \ + git config user.name "${GITHUB_ACTOR}" && \ + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \ + git add . && \ + git commit -m "[cron] Bump distribution date ($DIST)" && \ + git push diff --git a/.github/workflows/close-bad-pr.yml b/.github/workflows/close-bad-pr.yml new file mode 100644 index 000000000000..a80f89a6950e --- /dev/null +++ b/.github/workflows/close-bad-pr.yml @@ -0,0 +1,37 @@ +# +# close-bad-pr.yml +# Automatically close the PR if it's directed to a release branch +# +#

Thanks for your contribution! Unfortunately we can't accept PRs directed at release branches. +# We make patches to the bugfix branches and only later do we push them out as releases. +# Please redo this PR starting with the `bugfix-2.0.x` branch and be careful to target `bugfix-2.0.x` +# when resubmitting the PR. It may help to set your fork's default branch to `bugfix-2.0.x`.

+#

See http://marlinfw.org/docs/development/getting_started_pull_requests.html for full instructions.

+# + +name: Close PR + +on: + pull_request: + branches: + - 1.0.x + - 1.1.x + - 2.0.x + +jobs: + close_pr: + + runs-on: ubuntu-latest + + steps: + - name: comment PR + uses: unsplash/comment-on-pr@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + msg: | +

Thanks for your contribution! Unfortunately we can't accept PRs directed at release branches. + We make patches to the bugfix branches and only later do we push them out as releases. + Please redo this PR starting with the `bugfix-2.0.x` branch and be careful to target `bugfix-2.0.x` + when resubmitting the PR. It may help to set your fork's default branch to `bugfix-2.0.x`.

+

See http://marlinfw.org/docs/development/getting_started_pull_requests.html for full instructions.

diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 000000000000..e90b599b9a97 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,19 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: Labeler +on: [pull_request] + +jobs: + label: + + runs-on: ubuntu-latest + + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/buildroot/bin/bump_date b/buildroot/bin/bump_date deleted file mode 100755 index 77df90bbd748..000000000000 --- a/buildroot/bin/bump_date +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# -# bump_date -# -# Bump the Distribution Date in Version.h -# - -VERSION_FILE=Marlin/src/inc/Version.h - -SED=$(which gsed || which sed) - -DIST=$( date +"%Y-%m-%d" ) - -eval "${SED} -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' $VERSION_FILE" || exit 1 - -git add "$VERSION_FILE" || exit 1 -git commit -m "[cron] Bump distribution date ($DIST)"