This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Get changed files in the last merge | |
| changed_files=$(git diff-tree -r --name-only ORIG_HEAD HEAD) | |
| # If package.json or package-lock.json changed, run npm install | |
| if echo "$changed_files" | grep -q 'package.json'; then | |
| npm i | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Get all the progress indicators | |
| let progress = document.querySelectorAll('#progress'); | |
| // Create an array from them | |
| progress = Array.from(progress) | |
| // Set all the text info cards to background of red | |
| progress.map(p => p.parentElement.parentElement.parentElement.parentElement.nextElementSibling.style.backgroundColor = 'red') |
OlderNewer