Skip to content

Commit

Permalink
chore: updating .clabot message and list (#24)
Browse files Browse the repository at this point in the history
* chore: updating .clabot message and list

* feat: automating CLA signature.

Signed-off-by: Matteo Manica <[email protected]>

* ci: implementing CLA signature action.

Signed-off-by: Matteo Manica <[email protected]>

* ci: fixing CLA bot message.

Signed-off-by: Matteo Manica <[email protected]>
  • Loading branch information
drugilsberg authored Feb 16, 2022
1 parent c0e282b commit 277a31a
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .clabot
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"contributors": ["drugilsberg", "Ashish13898", "C-nit", "christofid", "donovat", "federicozipoli", "hoffmansc", "jannisborn", "kwehden", "O-Schilter", "polat-c", "yvesnana"]
"contributors": ["drugilsberg", "Ashish13898", "christofid", "donovat", "federicozipoli", "hoffmansc", "jannisborn", "kwehden", "O-Schilter", "polat-c", "yvesnana"],
"message": "Thanks a lot for working on GT4SD, we strongly value contributions from our users. It appears one of the commiters in the PR did not sign the CLA for contributors. To do so, you can sign the CLA [here](https://github.com/GT4SD/gt4sd-core/issues/new?assignees=C-nit%2C+christofid%2C+drugilsberg%2C+jannisborn%2C+kwehden&labels=cla-signing&template=cla-signature.md&title=CLA+signature+by+%24%7BGH_USERNAME%7D). More details can be found [here](https://github.com/GT4SD/gt4sd-core/blob/main/CONTRIBUTING.md#contributor-license-agreement)."
}
28 changes: 28 additions & 0 deletions .github/workflows/cla-signature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CLA signature

on:
issues:
types: [opened, labeled]

jobs:
build:
if: ${{ github.event.label.name == 'cla-signing' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Adding user to contributors
run: |
echo Signature by ${{ github.event.issues.user.login }}
git clone https://github.com/GT4SD/gt4sd-core --branch main --single-branch gt4sd-core
cat .clabot | jq '.contributors |= (. + ["${{ github.event.issues.user.login }}"] | unique)' > .clabot
cat .clabot
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "chore: adding ${{ github.event.issues.user.login }} as contributor." -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
directory: main
github_token: ${{ secrets.GH_TOKEN }}
8 changes: 4 additions & 4 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ the community.

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org
Homepage: [https://www.contributor-covenant.org](https://www.contributor-covenant.org)

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
[https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at
[https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
12 changes: 4 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The documentation and benchmarking of GT4SD is contained in this repository. To contribute
to this project or any of the elements of GT4SD we recomend you start by reading this
[contributing guide](#contributing-to-gt4sd-codebase).
contributing guide.

## Contributor License Agreement

Expand All @@ -17,8 +17,8 @@ contributing it under the terms of the MIT License.
When you contribute to the GT4SD project with a new pull request,
a bot will evaluate whether you have signed the CLA. If required, the
bot will comment on the pull request, including a link to accept the
agreement. The [individual CLA](./iCLA.md)
document is available for review in this repo.
agreement. The [individual CLA](./iCLA.md) document is available for review in this repo.
You can sign the agreement right away [here](https://github.com/GT4SD/gt4sd-core/issues/new?assignees=C-nit%2C+christofid%2C+drugilsberg%2C+jannisborn%2C+kwehden&labels=cla-signing&template=cla-signature.md&title=CLA+signature+by+%24%7BGH_USERNAME%7D).

## Contributing to GT4SD codebase

Expand All @@ -33,6 +33,7 @@ If you would like to contribute to the package, we recommend the following devel
```

3. Add remote gt4sd-core repo as an "upstream" in your local repo, so you can check/update remote changes.

```sh
git remote add upstream [email protected]:GT4SD/gt4sd-core.git
```
Expand Down Expand Up @@ -146,8 +147,3 @@ Yields:
{{/yields}}
{{/yieldsExist}}
```





16 changes: 8 additions & 8 deletions iCLA.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# Contribution License Agreement

International Business Machines, Inc. (IBM) Individual Contributor License Agreement ("Agreement")
Thank you for your interest in GT4SD ("the Project").

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Project. Except for the license granted herein to IBM and recipients of software distributed by IBM, You reserve all right, title, and interest in and to Your Contributions.

## 1. Definitions.
## 1. Definitions

"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with IBM. 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. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

"Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to the Project for inclusion in, or documentation of, the Project (”the Work”). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Project 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, the Project 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.
## 2. Grant of Copyright License

Subject to the terms and conditions of this Agreement, You hereby grant to IBM and to recipients of software distributed by IBM 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.
## 3. Grant of Patent License

Subject to the terms and conditions of this Agreement, You hereby grant to IBM and to recipients of software distributed by IBM a perpetual, worldwide, non-exclusive, no-charge, royaltyfree, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work to which Your Contribution(s) were submitted, 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. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.

## 4. You represent that you are legally entitled to grant the above license.
## 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 the Project, or that your employer has executed a separate Corporate CLA with IBM.

## 5. You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others).
## 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. Support

You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. 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. Originality
## 7. Originality

Should You wish to submit work that is not Your original creation, You may submit it to the Project 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. Notification
## 8. Notification

You agree to notify IBM of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.

0 comments on commit 277a31a

Please sign in to comment.