From 314513e5a828629a3323995a048ba949c5a493f1 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Mon, 6 May 2024 14:11:58 +0200 Subject: [PATCH] Add ICLA Check This patch adds the ICLA check used in Opencast's main repository. The adming interface follows the same rules and regulations and contributors should file an ICLA. Signed-off-by: Daniel Ziegenberg --- .github/workflows/check-icla.yml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/check-icla.yml diff --git a/.github/workflows/check-icla.yml b/.github/workflows/check-icla.yml new file mode 100644 index 0000000000..c77031d76b --- /dev/null +++ b/.github/workflows/check-icla.yml @@ -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.