forked from opencast/opencast
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.48 KB
/
check-icla.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Check ICLA
on:
pull_request_target:
types:
- opened
jobs:
main:
if: github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
- name: Install Python module
run: pip install apereocla
- name: Check Apereo ICLA for GitHub user
run: apereocla -g "${{ github.event.pull_request.user.login }}"
- name: Comment if no CLA has been filed
if: ${{ failure() }}
uses: thollander/actions-comment-pull-request@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: >
Hi @${{ github.event.pull_request.user.login }}
Thank you for contributing to Opencast.
We noticed that you have not yet filed an [Individual Contributor License Agreement](https://www.apereo.org/licensing/agreements/icla).
Doing that (once) helps us to ensure that Opencast stays free for all.
If you make your contribution on behalf of an institution, you might also want to file a
[Corporate Contributor License Agreement](https://www.apereo.org/licensing/agreements/ccla)
(giving you as individual contributor a bit more security as well). It can take a while for
this bot to find out about new filings, so if you just filed one or both of the above do not
worry about this message!
Please let us know if you have any questions regarding the CLA.