From e827a12f705b1613272c654dc780162f85fe8bb6 Mon Sep 17 00:00:00 2001 From: Jyotirmoy Roy Date: Thu, 13 Apr 2023 22:15:45 +0530 Subject: [PATCH 1/2] committed Signed-off-by: Jyotirmoy Roy --- .github/CLA.md | 25 +++++++++++++++++++++++++ .github/workflows/cla.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/greetings.yml | 20 ++++++++++++++++++++ .github/workflows/lint.yml | 21 +++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 .github/CLA.md create mode 100644 .github/workflows/cla.yml create mode 100644 .github/workflows/greetings.yml create mode 100644 .github/workflows/lint.yml diff --git a/.github/CLA.md b/.github/CLA.md new file mode 100644 index 0000000..6302b5d --- /dev/null +++ b/.github/CLA.md @@ -0,0 +1,25 @@ +# Contributor License Agreement (CLA) + +This license is for your protection as a Contributor as well as the protection of the maintainers of the Keploy software; it does not change your rights to use your own Contributions for any other purpose. In the following, the maintainers of Keploy are referred to as "Keploy". + +You accept and agree to the following terms and conditions for Your present and future Contributions submitted to "Keploy". Except for the license granted herein to Keploy and recipients of software distributed by "Keploy", You reserve all right, title, and interest in and to Your Contributions. + +1. Definitions. + + "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with "Keploy". For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. + + "Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to "Keploy" for inclusion in, or documentation of, any of the products owned or managed by "Keploy" (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to "Keploy" or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, "Keploy" for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution." + +2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You grant to "Keploy" and to recipients of software distributed by "Keploy" a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works. + +3. Grant of Patent License. Subject to the terms and conditions of this Agreement, You grant to "Keploy" and to recipients of software distributed by "Keploy" a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. + +4. You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to "Keploy", or that your employer has executed a separate Contributor License Agreement with "Keploy". + +5. You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions. + +6. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. + +7. Should You wish to submit work that is not Your original creation, You may submit it to "Keploy" separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]". + +8. You agree to notify "Keploy" of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect. \ No newline at end of file diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..eb07d96 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,29 @@ +name: "CLA Assistant" + +on: + issue_comment: + types: + - "created" + pull_request_target: + types: + - "opened" + - "closed" + - "synchronize" + +jobs: + cla-assistant: + runs-on: "ubuntu-latest" + steps: + - name: "CLA Assistant" + if: "(github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'" + uses: "cla-assistant/github-action@v2.1.3-beta" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + PERSONAL_ACCESS_TOKEN: "${{ secrets.PRO_ACCESS_TOKEN }}" + with: + remote-organization-name: "keploy" + remote-repository-name: "website" + path-to-signatures: "etc/cla-signatures/signatures.json" + path-to-document: "https://github.com/keploy/samples-typescript/tree/main/.github/CLA.md" + branch: "cla-signatures" + allowlist: "keploy-bot,renovate" \ No newline at end of file diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..59757c9 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,20 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + continue-on-error: true + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Thank you and congratulations 🎉 for opening your very first issue in keploy. Please adhere to our [Code Of Conduct](https://github.com/keploy/keploy/blob/main/CODE_OF_CONDUCT.md). + Incase you want to claim this issue, please comment down below! We will try to get back to you as soon as we can.👀 + Feel free to join us on [Keploy Slack](https://join.slack.com/t/keploy/shared_invite/zt-12rfbvc01-o54cOG0X1G6eVJTuI_orSA) by dropping an email [here](mailto:support@keploy.io).👩‍💻 We would love to hear your interesting ideas and engage in discussions.' + pr-message: 'Thank you and congratulations 🎉 for opening your very first pull request in keploy. + We will review it soon! Till then you can checkout the `README.md` for more details on it.' \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..d41f066 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Lint Codebase + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + run-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Check commits messages + uses: wagoid/commitlint-github-action@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 5a08e4c37d8fe944a94e7db336cac1cd291d0aef Mon Sep 17 00:00:00 2001 From: Jyotirmoy Roy Date: Fri, 14 Apr 2023 08:25:18 +0530 Subject: [PATCH 2/2] fix(.github): adds github workflows for CLA Assistant, Greetings & Linting Signed-off-by: Jyotirmoy Roy --- .github/workflows/cla.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index eb07d96..6994293 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -22,8 +22,8 @@ jobs: PERSONAL_ACCESS_TOKEN: "${{ secrets.PRO_ACCESS_TOKEN }}" with: remote-organization-name: "keploy" - remote-repository-name: "website" + remote-repository-name: "samples-typescript" path-to-signatures: "etc/cla-signatures/signatures.json" path-to-document: "https://github.com/keploy/samples-typescript/tree/main/.github/CLA.md" branch: "cla-signatures" - allowlist: "keploy-bot,renovate" \ No newline at end of file + allowlist: "keploy-bot,renovate"