Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TESTING] Increase versions 3 #6484

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,088 changes: 4,077 additions & 11 deletions .github/actions/git-diff-on-components/dist/index.js

Large diffs are not rendered by default.

86 changes: 76 additions & 10 deletions .github/actions/git-diff-on-components/dist/licenses.txt
Original file line number Diff line number Diff line change
@@ -237,16 +237,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


@vercel/ncc
MIT
Copyright 2018 ZEIT, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

app-module-path
BSD-2-Clause

@@ -363,6 +353,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


buffer-from
MIT
MIT License

Copyright (c) 2016, 2018 Linus Unnebäck

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


concat-map
MIT
This software is released under the MIT license:
@@ -1243,6 +1258,19 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.


has-flag
MIT
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


ignore
MIT
Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
@@ -2232,6 +2260,31 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


source-map-support
MIT
The MIT License (MIT)

Copyright (c) 2014 Evan Wallace

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


stringify-object
BSD-2-Clause
Copyright (c) 2015, Yeoman team
@@ -2286,6 +2339,19 @@ THE SOFTWARE.
stylus-lookup
MIT

supports-color
MIT
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


tapable
MIT
The MIT License
29 changes: 25 additions & 4 deletions .github/actions/git-diff-on-components/src/index.js
Original file line number Diff line number Diff line change
@@ -95,6 +95,17 @@ function includesVersion(contents) {
return contents.match(new RegExp(/version: "\d+\.\d+\.\d+"/g)) || contents.match(new RegExp(/"version": "\d+\.\d+\.\d+"/g));
}

function getVersion(contents) {
return includesVersion(contents)[0].match(/(\d+\.){2}\d+/)[0];
}

function increaseVersion(version) {
let versions = version.split('.')
++versions[2]

return versions.join('.')
}

function getPackageJsonFilePath(filePaths) {
if (Array.isArray(filePaths)) {
const packages = new Set();
@@ -336,16 +347,26 @@ async function run() {
componentsDiffContents = await checkVersionModification(componentsPendingForGitDiff, componentsThatDidNotModifyVersion);
}

const totalErrors = componentsThatDidNotModifyVersion.length + componentsDiffContents.length;
const totalErrors = componentsThatDidNotModifyVersion.length;
let counter = 1;

componentsThatDidNotModifyVersion.forEach((filePath) => {
console.log(`${counter++}) You need to change the version of ${filePath}.`);
});

componentsDiffContents.forEach(({ dependencyFilePath, componentFilePath }) => {
console.log(`${counter++}) You need to change the version of ${getComponentFilePath(componentFilePath)} since dependency file ${getComponentFilePath(dependencyFilePath)} was modified.`);
});
if (componentsDiffContents.length) {
for ({ dependencyFilePath, componentFilePath } of componentsDiffContents) {
const content = await readFile(componentFilePath, "utf-8")
const currentVersion = getVersion(content)
const increasedVersion = increaseVersion(currentVersion)

await execCmd("sed", ["-i", `0,/${currentVersion}/{s/${currentVersion}/${increasedVersion}/}`, getComponentFilePath(componentFilePath)]);

console.log(`✅ Version of ${getComponentFilePath(componentFilePath)} changed from ${currentVersion} to ${increasedVersion} since dependency file ${getComponentFilePath(dependencyFilePath)} was modified.`);
};

return
}

if (totalErrors) {
core.setFailed(`You need to increment the version of ${totalErrors} component(s). Please see the output above and https://pipedream.com/docs/components/guidelines/#versioning for more information.`);
7 changes: 7 additions & 0 deletions .github/workflows/pull-request-checks.yaml
Original file line number Diff line number Diff line change
@@ -39,6 +39,13 @@ jobs:
all_files: ${{ steps.changed_files.outputs.all }}
base_commit: ${{ github.event.pull_request.base.sha }}
head_commit: ${{ github.event.pull_request.head.sha }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatically updating actions and sources versions
commit_options: '--no-verify'
commit_user_name: Pipedream [Bot]
commit_user_email: pipedream@pipedream.com
commit_author: Pipedream [Bot] <pipedream@pipedream.com>

spellcheck:
name: Spellcheck
1 change: 1 addition & 0 deletions components/accelo/accelo.app.mjs
Original file line number Diff line number Diff line change
@@ -93,6 +93,7 @@ export default {
return this.$auth.hostname;
},
_accessToken() {
console.log("aaa");
return this.$auth.oauth_access_token;
},
_apiUrl() {
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import accelo from "../../accelo.app.mjs";

export default {
name: "Create Contact",
version: "0.0.1",
version: "0.0.2",
key: "accelo-create-contact",
description: "Creates a contact. [See docs here](https://api.accelo.com/docs/?_ga=2.136158329.97118171.1674049767-1568937371.1674049767#create-a-contact)",
type: "action",
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import accelo from "../../accelo.app.mjs";

export default {
name: "Create Prospect",
version: "0.0.1",
version: "0.0.2",
key: "accelo-create-prospect",
description: "Creates a prospect. [See docs here](https://api.accelo.com/docs/?_ga=2.136158329.97118171.1674049767-1568937371.1674049767#create-a-prospect)",
type: "action",
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import accelo from "../../accelo.app.mjs";

export default {
name: "Create Request",
version: "0.0.1",
version: "0.0.2",
key: "accelo-create-request",
description: "Creates a request. [See docs here](https://api.accelo.com/docs/?_ga=2.136158329.97118171.1674049767-1568937371.1674049767#create-a-request)",
type: "action",
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import accelo from "../../accelo.app.mjs";

export default {
name: "Update Contact",
version: "0.0.1",
version: "0.0.2",
key: "accelo-update-contact",
description: "Updates a contact. [See docs here](https://api.accelo.com/docs/?_ga=2.136158329.97118171.1674049767-1568937371.1674049767#update-a-contact)",
type: "action",
1 change: 1 addition & 0 deletions components/accelo/sources/common/common.mjs
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ export default {
this.db.set("webhookId", webhookId);
},
getWebhookEventType() {
console.log("1aaaaaaaa");
throw new Error("getWebhookEventType is not implemented");
},
emitEvent(event) {
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import common from "../common/common.mjs";
export default {
...common,
name: "New Request Created (Instant)",
version: "0.0.1",
version: "0.0.2",
key: "accelo-new-request-created",
description: "Emit new event on each new request created.",
type: "source",
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import common from "../common/common.mjs";
export default {
...common,
name: "New Task Assigned (Instant)",
version: "0.0.1",
version: "0.0.3",
key: "accelo-new-task-assigned",
description: "Emit new event on each new task assigned.",
type: "source",