-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into marcaaron-fixgetValidMergedPRs
- Loading branch information
Showing
1,391 changed files
with
37,946 additions
and
22,482 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
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
**/node_modules/* | ||
**/dist/* | ||
android/**/build/* | ||
.github/actions/**/index.js" | ||
!.storybook | ||
!.github | ||
.github/actions/**/index.js | ||
*.config.js | ||
**/.eslintrc.js | ||
**/node_modules/** | ||
**/dist/** | ||
android/**/build/** | ||
docs/vendor/** | ||
docs/assets/** | ||
web/gtm.js |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// For all these Node.js scripts, we do not want to disable `console` statements | ||
module.exports = { | ||
rules: { | ||
// For all these Node.js scripts, we do not want to disable `console` statements | ||
'no-console': 'off', | ||
|
||
'@lwc/lwc/no-async-await': 'off', | ||
'no-await-in-loop': 'off', | ||
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'], | ||
}, | ||
}; |
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
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
9 changes: 7 additions & 2 deletions
9
.github/actions/javascript/getPreviousVersion/getPreviousVersion.ts
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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
import * as core from '@actions/core'; | ||
import {readFileSync} from 'fs'; | ||
import type {PackageJson} from 'type-fest'; | ||
import * as versionUpdater from '@github/libs/versionUpdater'; | ||
|
||
const semverLevel = core.getInput('SEMVER_LEVEL', {required: true}); | ||
if (!semverLevel || !Object.values<string>(versionUpdater.SEMANTIC_VERSION_LEVELS).includes(semverLevel)) { | ||
core.setFailed(`'Error: Invalid input for 'SEMVER_LEVEL': ${semverLevel}`); | ||
} | ||
|
||
const {version: currentVersion} = JSON.parse(readFileSync('./package.json', 'utf8')); | ||
const previousVersion = versionUpdater.getPreviousVersion(currentVersion, semverLevel); | ||
const {version: currentVersion}: PackageJson = JSON.parse(readFileSync('./package.json', 'utf8')); | ||
if (!currentVersion) { | ||
core.setFailed('Error: Could not read package.json'); | ||
} | ||
|
||
const previousVersion = versionUpdater.getPreviousVersion(currentVersion ?? '', semverLevel); | ||
core.setOutput('PREVIOUS_VERSION', previousVersion); |
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
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,35 @@ | ||
#!/bin/bash | ||
|
||
# HelpDot - Whenever an article is moved/renamed/deleted we should verify that | ||
# we have added a redirect link for it in redirects.csv. This ensures that we don't have broken links. | ||
|
||
declare -r RED='\033[0;31m' | ||
declare -r GREEN='\033[0;32m' | ||
declare -r NC='\033[0m' | ||
|
||
declare -r ARTICLES_DIRECTORY="docs/articles" | ||
declare -r REDIRECTS_FILE="docs/redirects.csv" | ||
|
||
hasRenamedOrDeletedArticle=false | ||
hasModifiedRedirect=false | ||
|
||
if git log origin/main..HEAD --name-status --pretty=format: $ARTICLES_DIRECTORY | grep -q -E "^(R|D)" | ||
then | ||
echo "Articles have been renamed/moved/deleted" | ||
hasRenamedOrDeletedArticle=true | ||
fi | ||
|
||
if git log origin/main..HEAD --name-status --pretty=format: $REDIRECTS_FILE | grep -q -E "^(M)" | ||
then | ||
echo "Redirects.csv has been modified" | ||
hasModifiedRedirect=true | ||
fi | ||
|
||
if [[ $hasRenamedOrDeletedArticle == true && $hasModifiedRedirect == false ]] | ||
then | ||
echo -e "${RED}Articles have been renamed or deleted. Please add a redirect link for the old article links in redirects.csv${NC}" | ||
exit 1 | ||
fi | ||
|
||
echo -e "${GREEN}Articles aren't moved or deleted, or a redirect has been added. Please verify that a redirect has been added for all the files moved or deleted${NC}" | ||
exit 0 |
Oops, something went wrong.