-
Notifications
You must be signed in to change notification settings - Fork 62
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 dependabot/npm_and_yarn/yaml-and-lint-staged…
…-2.2.2
- Loading branch information
Showing
31 changed files
with
781 additions
and
770 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 |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
**/aura/**/*.xml | ||
**/aura/**/*.app | ||
.sfdx | ||
.sf |
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,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Environment (please complete the following information):** | ||
|
||
- OS: [e.g. OSX, Windows] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 4.0.1] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,23 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: 'npm' # See documentation for possible values | ||
directory: '/' # Location of package manifests | ||
commit-message: | ||
prefix: 'build' | ||
include: 'scope' | ||
rebase-strategy: 'auto' | ||
schedule: | ||
interval: 'daily' | ||
- package-ecosystem: 'github-actions' # See documentation for possible values | ||
directory: '/' # Location of package manifests | ||
commit-message: | ||
prefix: 'ci' | ||
include: 'scope' | ||
rebase-strategy: 'auto' | ||
schedule: | ||
interval: 'daily' |
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 @@ | ||
# Unique name for this workflow | ||
name: On Push | ||
|
||
# Definition when the workflow should run | ||
on: | ||
workflow_dispatch: | ||
push: | ||
#paths-ignore: | ||
#- "sfdx-project.json" | ||
#- "README.md" | ||
paths: | ||
- 'force-app/**' | ||
- '.github/workflows/ci.yml' | ||
|
||
# Jobs to be executed | ||
jobs: | ||
format-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the source code | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
|
||
# Cache node_modules to speed up the process | ||
- name: 'Restore node_modules cache' | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: npm-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
npm-${{ env.cache-name }}- | ||
npm- | ||
# Install npm dependencies for Prettier and Jest | ||
- name: 'Install npm dependencies' | ||
if: steps.cache-npm.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
# Prettier formatting | ||
- name: 'Code formatting verification with Prettier' | ||
run: npm run prettier:verify |
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,40 @@ | ||
name: Dependabot Pull Request Approve and Merge | ||
on: pull_request_target | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
jobs: | ||
# Auto merge Dependabot PRs for: | ||
# - patch updates on prod dependencies | ||
# - minor updates on dev dependencies | ||
dependabot-auto-merge: | ||
# Only run for Dependabot PRs | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Fetch Dependabot metadata' | ||
id: dependabot | ||
uses: dependabot/fetch-metadata@v1 | ||
with: | ||
github-token: '${{ secrets.GITHUB_TOKEN }}' | ||
|
||
- name: 'Check auto merge conditions' | ||
id: auto-merge | ||
if: | | ||
( | ||
steps.dependabot.outputs.update-type == 'version-update:semver-patch' && | ||
contains('direct:production,indirect:production', steps.dependabot.outputs.dependency-type) | ||
) || ( | ||
contains('version-update:semver-minor,version-update:semver-patch', steps.dependabot.outputs.update-type) && | ||
contains('direct:development,indirect:development', steps.dependabot.outputs.dependency-type) | ||
) | ||
run: echo "::notice ::auto-merge conditions satisfied" | ||
|
||
- name: 'Approve and merge PR' | ||
if: ${{ steps.auto-merge.conclusion == 'success' }} | ||
run: | | ||
gh pr review --approve "$PR_URL" | ||
gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_URL: ${{ github.event.pull_request.html_url }} |
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,11 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
#npm version pull - will be used for Git commit/PR testing in future | ||
VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '.tag_name' | sed 's:.*/::' | sed 's:",::') | ||
echo $VERSION | ||
|
||
printf '%s' "$VERSION" > pmd/pmd-version.txt | ||
git add pmd/pmd-version.txt | ||
|
||
npx precommit |
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,21 +1,26 @@ | ||
{ | ||
"trailingComma": "none", | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"printWidth": 180, | ||
"useTabs": true, | ||
"bracketSpacing": true, | ||
"apexInsertFinalNewline": false, | ||
"bracketSameLine": true, | ||
"singleAttributePerLine": false, | ||
"overrides": [ | ||
{ | ||
"files": "**/lwc/**/*.html", | ||
"options": { "parser": "lwc" } | ||
}, | ||
{ | ||
"files": "*.{cmp,page,component}", | ||
"options": { "parser": "html" } | ||
} | ||
] | ||
"trailingComma": "none", | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"printWidth": 180, | ||
"useTabs": true, | ||
"bracketSpacing": true, | ||
"apexInsertFinalNewline": false, | ||
"bracketSameLine": true, | ||
"singleAttributePerLine": false, | ||
"overrides": [ | ||
{ | ||
"files": "**/lwc/**/*.html", | ||
"options": { "parser": "lwc" } | ||
}, | ||
{ | ||
"files": "*.{cmp,page,component}", | ||
"options": { "parser": "html", "bracketSameLine": false } | ||
}, | ||
{ | ||
"files": "*.cls", | ||
"options": { "parser": "apex" } | ||
} | ||
], | ||
"plugins": ["prettier-plugin-apex", "@prettier/plugin-xml"] | ||
} |
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
Oops, something went wrong.