Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ICLA Check #342

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/check-icla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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:
- 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 the Opencast Editor.

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.
Loading