Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/**
12 changes: 10 additions & 2 deletions .github/workflows/bump-date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Bump Distribution Date

on:
schedule:
- cron: '0 0 * * *'
- cron: '*/5 * * * *'

jobs:
bump_date:
Expand All @@ -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
37 changes: 37 additions & 0 deletions .github/workflows/close-bad-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# close-bad-pr.yml
# Automatically close the PR if it's directed to a release branch
#
# <p>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`.</p>
# <p>See http://marlinfw.org/docs/development/getting_started_pull_requests.html for full instructions.</p>
#

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: |
<p>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`.</p>
<p>See http://marlinfw.org/docs/development/getting_started_pull_requests.html for full instructions.</p>
19 changes: 19 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
17 changes: 0 additions & 17 deletions buildroot/bin/bump_date

This file was deleted.