-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add copyright notice and fix CLA workflow (#174)
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
Showing
3 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
issue_comment: | ||
types: [created] | ||
pull_request_target: | ||
types: [opened,closed,synchronize] | ||
types: [opened, closed, synchronize] | ||
|
||
jobs: | ||
cla: | ||
|
@@ -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]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|