Skip to content

Commit

Permalink
Add copyright notice and fix CLA workflow (#174)
Browse files Browse the repository at this point in the history
This PR does a few things:
- It adds a `COPYRIGHT.md` notice to our repo.
- Relicenses the `testlib` to be MIT (matches our other "library" crates).
- Fixes the CLA workflow. There were some differences in the private repo I tested with and this public repo.

### Test Plan

Check the CLA bot working in another public repo: https://github.com/cowprotocol/hdnode/runs/6194783177?check_suite_focus=true for cowprotocol/hdnode#7

Also check that the CLA workflow matches the one from the instructions https://github.com/cowprotocol/cla#github-action-setup
  • Loading branch information
Nicholas Rodrigues Lordello authored Apr 28, 2022
1 parent 74468af commit a4f0192
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
types: [opened, closed, synchronize]

jobs:
cla:
Expand All @@ -14,24 +14,23 @@ jobs:
id: team
uses: actions/github-script@v6
with:
github-token: ${{ secrets.ORG_TOKEN }}
result-encoding: string
script: |
const collaborators = await github.paginate(
github.rest.repos.listCollaborators,
{
owner: context.repo.owner,
repo: context.repo.repo,
});
return collaborators.map(m => m.login).join(",");
const members = await github.paginate(
github.rest.orgs.listMembers,
{ org: "cowprotocol" },
);
return members.map(m => m.login).join(",");
- 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: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_TOKEN }}
with:
branch: 'cla-signatures'
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://github.com/cowprotocol/cla/blob/main/Cow%20Services%20CLA.md'
allowlist: ${{ steps.team.outputs.result }},*[bot]
allowlist: '${{ steps.team.outputs.result }},*[bot]'
13 changes: 13 additions & 0 deletions COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Intellectual Property Notice

Copyright (c) 2021 Gnosis Ltd
Copyright (c) 2022 Cow Services Lda

Except as otherwise noted (below and/or in individual files), this project is licensed under
the Apache License, Version 2.0 ([`LICENSE-APACHE`](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>) or
the MIT license, ([`LICENSE-MIT`](LICENSE-MIT) or <http://opensource.org/licenses/MIT>), at your option.

Code under the following sub-directories are licensed exclusively under
the GNU Lesser General Public License v3.0 or later ([`LICENSE`](LICENSE) or <https://www.gnu.org/licenses/lgpl-3.0-standalone.html>):
- [`crates/orderbook`](crates/orderbook)
- [`crates/solver`](crates/solver)
2 changes: 1 addition & 1 deletion crates/testlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "testlib"
version = "0.1.0"
authors = ["Gnosis Developers <[email protected]>", "Cow Protocol Developers <[email protected]>"]
edition = "2018"
license = "GPL-3.0-or-later"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit a4f0192

Please sign in to comment.