This file contains 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 | |
# Include any branches for which you wish to disable this script | |
if [ -z “$BRANCHES_TO_SKIP” ]; then | |
BRANCHES_TO_SKIP=(staging main) | |
fi | |
# Get the current branch name and check if it is excluded | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_EXCLUDED=$(printf “%s\n” “${BRANCHES_TO_SKIP[@]}” | grep -c “^$BRANCH_NAME$“) | |
# Trim it down to get the parts we’re interested in | |
TRIMMED=$(echo $BRANCH_NAME | sed -e ‘s:^\([^-]*-[^-]*\)-.*:\1:’ -e \ |
This file contains 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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "xDebug listen", | |
"type": "php", | |
"request": "launch", |
OlderNewer