-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into LIBSEARCH-801-implement-clear-active-filte…
…rs-designs-for-advanced-search
- Loading branch information
Showing
12 changed files
with
1,382 additions
and
1,253 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: 2 | ||
updates: | ||
# For npm dependencies | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
time: "06:00" | ||
day: "monday" | ||
timezone: "America/Detroit" | ||
commit-message: | ||
prefix: "Monthly npm updates: " | ||
open-pull-requests-limit: 5 | ||
reviewers: | ||
- "erinesullivan" | ||
labels: | ||
- "dependencies" | ||
groups: | ||
group-all-npm-updates: | ||
patterns: | ||
- "*" | ||
|
||
# For GitHub Actions updates | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
time: "06:00" | ||
day: "monday" | ||
timezone: "America/Detroit" | ||
commit-message: | ||
prefix: "Monthly action updates: " | ||
open-pull-requests-limit: 5 | ||
reviewers: | ||
- "erinesullivan" | ||
labels: | ||
- "dependencies" | ||
groups: | ||
group-all-github-actions-updates: | ||
patterns: | ||
- "*" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
# Get the list of staged .js files | ||
STAGED_JS_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep '.*\.js$') | ||
|
||
# Exit if no .js files are staged | ||
if [ "$STAGED_JS_FILES" = "" ]; then | ||
exit 0 | ||
fi | ||
|
||
# Run ESLint on the staged .js files | ||
echo "Running ESLint..." | ||
npx eslint $STAGED_JS_FILES | ||
|
||
# Capture ESLint exit code | ||
ESLINT_RESULT=$? | ||
|
||
# Exit with ESLint's result code | ||
if [ $ESLINT_RESULT -ne 0 ]; then | ||
echo "ESLint failed. Commit aborted." | ||
exit 1 | ||
fi | ||
|
||
echo "All checks passed. Proceeding with commit." | ||
exit 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Update dependabot pull request title | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
update-title: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check conditions | ||
id: check_conditions | ||
run: | | ||
if [[ "${{ github.event.pull_request.user.login }}" != "dependabot[bot]" ]]; then | ||
echo "Author does not match." | ||
exit 0 | ||
fi | ||
labels=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels | jq -r '.[].name') | ||
if [[ $labels != *"dependencies"* ]]; then | ||
echo "Label does not match." | ||
exit 0 | ||
fi | ||
echo "conditions_met=true" >> $GITHUB_ENV | ||
- name: Update PR title | ||
if: env.conditions_met == 'true' | ||
run: | | ||
NEW_TITLE="$(date +'%B %Y') dependency updates." | ||
curl -X PATCH \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} \ | ||
-d "{\"title\":\"${NEW_TITLE}\"}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Must run from the project root directory | ||
echo "🪝 Copying .github/pre-commit to .git/hooks/" | ||
cp .github/pre-commit .git/hooks/pre-commit | ||
|
||
echo "📥 Installing Node modules" | ||
npm install | ||
|
||
echo "🚀 Starting the app..." | ||
npm start |
Oops, something went wrong.