Add pull request template

pull/102/head
Andre Richter 3 years ago
parent c35a30cd0b
commit 4d1f84bbff
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -0,0 +1,13 @@
### Description
<Please describe the issues fixed by this PR>
Related Issue: <Insert link here if applicable>
### Pre-commit steps
- [ ] Tested on QEMU and real HW Rasperry Pi.
- Not needed if it is just a README change or similar.
- [ ] Ran `./contributor_setup.sh` followed by `./devtool ready_for_publish`
- You'll need `Ruby` with `Bundler` and `NPM` installed locally.
- This step is optional, but much appreciated if done.

@ -41,7 +41,7 @@ jobs:
- name: Setup misspell
run: |
curl -L -o ./install-misspell.sh https://git.io/misspell
sh ./install-misspell.sh -b ~/bin
sh ./install-misspell.sh -b .vendor
- name: Run checks
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy

@ -2,7 +2,35 @@
git config core.hooksPath .githooks
#
# Ruby and Bundler
#
if ! command -v bundle &> /dev/null
then
echo "'bundle' could not be found. Please install Ruby and Bundler."
exit
fi
bundle config set path '.vendor/bundle'
bundle install
#
# NPM
#
if ! command -v npm &> /dev/null
then
echo "'npm' could not be found. Please install it."
exit
fi
npm install --save-dev --save-exact prettier
#
# Misspell
#
if ! command -v curl &> /dev/null
then
echo "'curl' could not be found. Please install it."
exit
fi
curl -L -o ./install-misspell.sh https://git.io/misspell
sh ./install-misspell.sh -b .vendor
rm install-misspell.sh

@ -165,7 +165,7 @@ class DevTool
def misspell
puts 'Misspell'.light_blue
exit(1) unless system("~/bin/misspell -error #{tracked_files.join(' ')}")
exit(1) unless system(".vendor/misspell -error #{tracked_files.join(' ')}")
end
def rubocop

Loading…
Cancel
Save