Skip to content

Commit 5c54656

Browse files
committed
Merge branch 'master' into quickbooks
2 parents 5861368 + ab316a1 commit 5c54656

File tree

19,118 files changed

+2089454
-128505
lines changed

Some content is hidden

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

19,118 files changed

+2089454
-128505
lines changed

.eslintignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
.github
22
node_modules
33
package-lock.json
4+
pnpm-lock.yaml
5+
platform/dist
6+
*.md
7+
*.mdx
8+
*.txt
9+
*.yml
10+
*.yaml
11+
*.lock
12+
*.py
13+
*.png
14+

.eslintrc

Lines changed: 58 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"env": {
33
"commonjs": true,
4-
"es2021": true,
4+
"es2020": true,
55
"node": true
66
},
77
"extends": [
88
"eslint:recommended",
9-
"plugin:jsonc/recommended-with-jsonc"
9+
"plugin:jsonc/recommended-with-jsonc",
10+
"plugin:jest/recommended"
1011
],
12+
"ignorePatterns": ["scripts", "components/**/test-event.mjs"],
1113
"overrides": [
1214
{
1315
"files": [
@@ -31,15 +33,17 @@
3133
"pipedream/props-description": "warn",
3234
"pipedream/source-name": "warn",
3335
"pipedream/source-description": "warn",
34-
"pipedream/no-ts-version": "error"
36+
"pipedream/no-ts-version": "warn"
3537
}
3638
},
3739
{
3840
"files": [
3941
"**/actions/**/common*.*js",
4042
"**/actions/common/*",
4143
"**/sources/common/*",
42-
"**/sources/**/common*.*js"
44+
"**/sources/**/common*.*js",
45+
"**/sources/**/constant*.*js",
46+
"**/actions/**/constant*.*js"
4347
],
4448
"rules": {
4549
"pipedream/required-properties-key": "off",
@@ -59,6 +63,53 @@
5963
"pipedream/props-label": "warn",
6064
"pipedream/props-description": "warn"
6165
}
66+
},
67+
{
68+
"files": [
69+
"**/components/bash/**/*.*js",
70+
"**/components/go/**/*.*js",
71+
"**/components/node/**/*.*js",
72+
"**/components/python/**/*.*js"
73+
],
74+
"rules": {
75+
"no-unused-vars": "off"
76+
}
77+
},
78+
{
79+
"files": [
80+
"*.ts",
81+
"*.mts"
82+
],
83+
"extends": [
84+
"plugin:@typescript-eslint/recommended"
85+
],
86+
"parser": "@typescript-eslint/parser",
87+
"rules": {
88+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
89+
"max-len": "off",
90+
// note you must disable the base rule as it can report incorrect errors
91+
"semi": "off",
92+
"@typescript-eslint/semi": ["error"],
93+
"@typescript-eslint/member-delimiter-style": ["error", {
94+
"multiline": {
95+
"delimiter": "semi",
96+
"requireLast": true
97+
},
98+
"singleline": {
99+
"delimiter": "semi",
100+
"requireLast": true
101+
},
102+
"multilineDetection": "brackets",
103+
"overrides": {
104+
"interface": {
105+
"multiline": {
106+
"delimiter": "semi",
107+
"requireLast": true
108+
}
109+
}
110+
}
111+
}]
112+
}
62113
}
63114
],
64115
"parserOptions": {
@@ -68,7 +119,9 @@
68119
"plugins": [
69120
"jsonc",
70121
"putout",
71-
"pipedream"
122+
"pipedream",
123+
"@typescript-eslint",
124+
"jest"
72125
],
73126
"root": true,
74127
"rules": {
@@ -84,12 +137,6 @@
84137
"error",
85138
"always"
86139
],
87-
"camelcase": [
88-
"error",
89-
{
90-
"properties": "never"
91-
}
92-
],
93140
"comma-dangle": [
94141
"error",
95142
"always-multiline"
@@ -171,14 +218,6 @@
171218
"allowAllPropertiesOnSameLine": false
172219
}
173220
],
174-
"putout/for-of-multiple-properties-destructuring": "error",
175-
"putout/multiple-properties-destructuring": [
176-
"error",
177-
{
178-
"minProperties": 1
179-
}
180-
],
181-
"putout/single-property-destructuring": "error",
182221
"quote-props": [
183222
"error",
184223
"consistent"

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assignees: ''
88
---
99

1010
**Describe the bug**
11-
A clear and concise description of what the bug is.
11+
A clear and concise description of what the bug is. Note that this issue will be displayed publicly.
1212

1313
**To Reproduce**
1414
Steps to reproduce the behavior:
@@ -21,7 +21,7 @@ Steps to reproduce the behavior:
2121
A clear and concise description of what you expected to happen.
2222

2323
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
24+
If applicable, add screenshots to help explain your problem. Note that the screenshots will be displayed publicly.
2525

2626
**Desktop (please complete the following information):**
2727
- OS: [e.g. iOS]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: OAuth Scopes Request
3+
about: Request to add a new scope to an OAuth integrated application
4+
title: "[OAUTH SCOPE]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Which application needs a scope added?**
11+
12+
**What scope(s) need to be added?**
13+
14+
**Please provide a link to the relevant API docs for scopes.**
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Git diff on components action
2+
3+
This action takes care of all components with dependencies that were modified but the version was not incremented.
4+
5+
## Inputs
6+
7+
### `base_commit`
8+
9+
**Required** Base commit SHA.
10+
11+
### `head_commit`
12+
13+
**Required** Head commit SHA.
14+
15+
### `all_files`
16+
17+
**Required** List of all files comming from `changed_files` step in `check_version` job github action workflow. It is necessary to set the action `Ana06/[email protected]` output in json format like
18+
```
19+
...
20+
with:
21+
format: json
22+
```
23+
in that way `steps.changed_files.outputs.all` will be converted in array of strings
24+
25+
## Example usage
26+
27+
```yaml
28+
- name: Check git diff for version changes
29+
uses: ./.github/actions/git-diff-on-components
30+
with:
31+
all_files: ${{ steps.changed_files.outputs.all }}
32+
base_commit: ${{ github.event.pull_request.base.sha }}
33+
head_commit: ${{ github.event.pull_request.head.sha }}
34+
```
35+
36+
## Build
37+
You need to push all files generated in `dist` folder once you are finished with the build to test the new version of the github action in case you want to make modifications.
38+
```
39+
$ cd .github/actions/git-diff-on-components/
40+
$ npm i && npm run build
41+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Git diff on components"
2+
description: "Check for version changes on components. Diff the changes in the HEAD ref (new branch) against the BASE ref (target branch, e.g. master). If the changes don't contain modifications to the version, we want to log that fact but not exit early. Once we've checked all files, exit the script if any files failed to modify version"
3+
inputs:
4+
base_commit:
5+
description: "Base commit SHA"
6+
required: true
7+
head_commit:
8+
description: "Head commit SHA"
9+
required: true
10+
all_files:
11+
description: "List of all files comming from changed_files step in check_version job github action workflow"
12+
required: true
13+
runs:
14+
using: "node16"
15+
main: "dist/index.js"

0 commit comments

Comments
 (0)