Skip to content

Commit 5861368

Browse files
committed
Merge branch 'master' into quickbooks
2 parents e63bb37 + 750ff1d commit 5861368

File tree

1,764 files changed

+129911
-30012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,764 files changed

+129911
-30012
lines changed

.eslintrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"pipedream/required-properties-version": "error",
2828
"pipedream/required-properties-description": "error",
2929
"pipedream/required-properties-type": "error",
30-
"pipedream/props-label": "error",
31-
"pipedream/props-description": "error",
30+
"pipedream/props-label": "warn",
31+
"pipedream/props-description": "warn",
3232
"pipedream/source-name": "warn",
3333
"pipedream/source-description": "warn",
3434
"pipedream/no-ts-version": "error"
@@ -56,8 +56,8 @@
5656
"**/*.app.*js"
5757
],
5858
"rules": {
59-
"pipedream/props-label": "error",
60-
"pipedream/props-description": "error"
59+
"pipedream/props-label": "warn",
60+
"pipedream/props-description": "warn"
6161
}
6262
}
6363
],
@@ -191,4 +191,4 @@
191191
],
192192
"space-infix-ops": "error"
193193
}
194-
}
194+
}

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Pipedream Community Support
4+
url: https://pipedream.com/support
5+
about: Please ask and answer questions here.
6+
- name: GitHub Security Bug Bounty
7+
url: https://pipedream.com/docs/privacy-and-security/#reporting-a-vulnerability
8+
about: Please report security vulnerabilities here.

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Basic dependabot.yml file
2+
# REF: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-actions-up-to-date-with-dependabot
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for Actions
7+
- package-ecosystem: "github-actions"
8+
# Look for `.github/workflows` in the `root` directory
9+
directory: "/"
10+
# Check for updates once a week
11+
schedule:
12+
interval: "weekly"

.github/workflows/npm.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-node@v1
12+
- uses: actions/checkout@v2.4.0
13+
- uses: actions/setup-node@v2.5.1
1414
with:
1515
node-version: 12
1616
registry-url: https://registry.npmjs.org/

.github/workflows/publish-components.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout code
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v2.4.0
1313
- name: Install pd cli
1414
env:
1515
PD_API_KEY: ${{ secrets.PD_API_KEY }}
@@ -34,8 +34,8 @@ jobs:
3434
PUBLISHED=""
3535
ERRORS=""
3636
SKIPPED=""
37-
mapfile -d ',' -t added_modified_files < <(printf '%s,' '${{ steps.files.outputs.added_modified }}')
38-
for added_modified_file in "${added_modified_files[@]}"; do
37+
mapfile -d ',' -t added_modified_renamed_files < <(printf '%s,%s' '${{ steps.files.outputs.added_modified }}' '${{ steps.files.outputs.renamed }}')
38+
for added_modified_file in "${added_modified_renamed_files[@]}"; do
3939
# starts with components, ends with .*js (e.g. .js and .mjs) and not app.js,
4040
# doesn't end with /common*.*js, and doesn't follow */common/
4141
if [[ $added_modified_file == components/* ]] && [[ $added_modified_file == *.*js ]] && [[ $added_modified_file != *.app.*js ]] \

.github/workflows/pull-request-checks.yaml

Lines changed: 71 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,75 @@ on:
1111
- master
1212

1313
jobs:
14-
build:
14+
check_version:
15+
name: Ensure component commits modify component versions
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/[email protected]
20+
name: Checkout repo
21+
with:
22+
# See https://github.com/actions/checkout#checkout-v2
23+
# This will be slow. The intent is to fetch all commits
24+
# since the merge-base (the commit where we branched off)
25+
# so we can check the git diff against all changed files.
26+
# By default, the checkout action only returns the last commit,
27+
# There's no native way to do this in the checkout action, so
28+
# we have to fetch the entire history. See
29+
# https://github.com/actions/checkout/issues/266#issuecomment-638346893
30+
fetch-depth: 0
31+
- uses: jitterbit/get-changed-files@v1
32+
id: changed_files
33+
name: Get changed files
34+
# Diff the changes in the HEAD ref (new branch) against the BASE ref (target branch, e.g. master)
35+
# If the changes don't contain modifications to the version, we want to log that fact but not exit early
36+
# Once we've checked all files, exit the script if any files failed to modify version
37+
- id: git_diff_on_components
38+
name: Check git diff for version changes
39+
env:
40+
head_commit: ${{ github.event.pull_request.head.sha }}
41+
base_commit: ${{ github.event.pull_request.base.sha }}
42+
run: |-
43+
commit_contained_components_that_did_not_modify_version=0
44+
for f in ${{ steps.changed_files.outputs.all }}
45+
do
46+
ext="${f##*.}"
47+
# Only run this check on modified sources or actions, excluding common files
48+
if ([[ "$ext" == "js" ]] || [[ "$ext" == "mjs" ]]) && \
49+
([[ "${f}" == *components/**/sources/* ]] || [[ "${f}" == *components/**/actions/* ]]) && \
50+
[[ "${f}" != *common*.*js ]] && [[ "${f}" != **/actions/common/* ]] && [[ "${f}" != **/sources/common/* ]] && \
51+
[[ "$(<${f})" == *"version:"* ]]
52+
then
53+
BASE_COMMIT=${{env.base_commit}}
54+
HEAD_COMMIT=${{env.head_commit}}
55+
DIFF=`git diff --unified=0 $BASE_COMMIT...$HEAD_COMMIT ${f}`
56+
if [[ ${DIFF} != *"version:"* ]]
57+
then
58+
echo "You didn't modify the version of ${f}"
59+
commit_contained_components_that_did_not_modify_version=1
60+
fi
61+
fi
62+
done
63+
64+
if [[ $commit_contained_components_that_did_not_modify_version -eq 1 ]]
65+
then
66+
echo "You need to increment the version on some components. Please see the output above and https://pipedream.com/docs/components/guidelines/#versioning for more information"
67+
exit 1
68+
fi
69+
70+
71+
spellcheck:
1572
name: Spellcheck
1673
runs-on: ubuntu-latest
74+
1775
steps:
18-
- uses: actions/checkout@master
76+
- uses: actions/[email protected]
77+
name: Checkout
1978
- uses: jitterbit/get-changed-files@v1
2079
id: changed_files
80+
name: Get changed files
2181
- id: md_changed_files
82+
name: Spellcheck Markdown files
2283
run: |-
2384
files=''
2485
for f in ${{ steps.changed_files.outputs.all }}
@@ -31,34 +92,36 @@ jobs:
3192
done
3293
3394
echo "files=${files}" >> $GITHUB_ENV
34-
- uses: rojopolis/spellcheck-github-actions@0.14.0
95+
- uses: rojopolis/spellcheck-github-actions@0.21.1
3596
name: Spellcheck
3697
if: ${{ env.files }}
3798
with:
3899
source_files: ${{ env.files }}
39100
task_name: Markdown
101+
102+
40103
lint:
41104
name: Lint Code Base
42105
runs-on: ubuntu-latest
43106

44107
steps:
45108
- name: Checkout Code
46-
uses: actions/checkout@v2
109+
uses: actions/checkout@v2.4.0
47110
with:
48111
# Full git history is needed to get a proper list of changed files
49112
# within `super-linter`
50113
fetch-depth: 0
51114

52115
- name: Setup Node Env
53-
uses: actions/setup-node@v2
116+
uses: actions/setup-node@v2.5.1
54117
with:
55118
node-version: '12'
56119

57120
- name: Install Dependencies
58121
run: npm ci
59122

60123
- name: Lint Code Base
61-
uses: github/super-linter@v3
124+
uses: github/super-linter@v4
62125
env:
63126
DEFAULT_BRANCH: master
64127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -70,3 +133,5 @@ jobs:
70133

71134
- name: Check component keys
72135
run: node scripts/findBadKeys.js
136+
137+

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
gh-md-toc
44
.DS_Store
55
.vscode
6+
.idea
67
node_modules
8+
.eslintcache
79

8-
.vercel
10+
.vercel

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

0 commit comments

Comments
 (0)