Skip to content

Commit cc62697

Browse files
authored
chore: Add a DCO check. (#987)
2 parents fdd98a4 + 919f994 commit cc62697

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

.github/workflows/check-dco.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check DCO
2+
3+
on:
4+
pull_request:
5+
merge_group:
6+
7+
jobs:
8+
check-dco:
9+
permissions:
10+
checks: write
11+
contents: read
12+
pull-requests: read
13+
statuses: write
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Check DCO
19+
uses: hackworthltd/[email protected]
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}

DCO.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Developer Certificate of Origin
2+
Version 1.1
3+
4+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
5+
6+
Everyone is permitted to copy and distribute verbatim copies of this
7+
license document, but changing it is not allowed.
8+
9+
10+
Developer's Certificate of Origin 1.1
11+
12+
By making a contribution to this project, I certify that:
13+
14+
(a) The contribution was created in whole or in part by me and I
15+
have the right to submit it under the open source license
16+
indicated in the file; or
17+
18+
(b) The contribution is based upon previous work that, to the best
19+
of my knowledge, is covered under an appropriate open source
20+
license and I have the right under that license to submit that
21+
work with modifications, whether created in whole or in part
22+
by me, under the same open source license (unless I am
23+
permitted to submit under a different license), as indicated
24+
in the file; or
25+
26+
(c) The contribution was provided directly to me by some other
27+
person who certified (a), (b) or (c) and I have not modified
28+
it.
29+
30+
(d) I understand and agree that this project and the contribution
31+
are public and that a record of the contribution (including all
32+
personal information I submit with it, including my sign-off) is
33+
maintained indefinitely and may be redistributed consistent with
34+
this project or the open source license(s) involved.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,35 @@ Note that Primer must be built with GHC 9.2.1 or later.
1515
We currently support two SQL backend implementations: SQLite and
1616
PostgreSQL.
1717

18+
# License & contributing
19+
20+
This implementation of the Primer programming language is licensed
21+
under [version 3 of the GNU Affero Public License](COPYING). We
22+
welcome contributions from the open source community, so long as you
23+
agree to abide by our [code of conduct](CODE_OF_CONDUCT.md), and
24+
certify that your contribution is made according to the terms of
25+
version 1.1 of The Linux Foundation's [Developer Certificate of
26+
Origin](DCO.md).
27+
28+
As is customary for open source projects that adhere to the DCO, we
29+
ask that you use the `--signoff` flag of `git commit` when submitting
30+
contributions, in order to signify your agreement. Should you forget
31+
to use this flag when submitting a contribution, in most cases,
32+
retroactively applying it is relatively easy; for any given series of
33+
commits in a branch, you can usually run:
34+
35+
```sh
36+
git rebase HEAD~N --signoff
37+
```
38+
39+
where `N` is the number of individual commits in your branch.
40+
41+
For background on why we request that contributions are made under the
42+
DCO, please see the following links:
43+
44+
* https://wiki.openstack.org/wiki/OpenStackAndItsCLA
45+
* https://lwn.net/Articles/592503/
46+
1847
# Developing Primer
1948

2049
## Nix

0 commit comments

Comments
 (0)