Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Change CLA from explicit signature to implicit acceptance on PR submission

Murtaza Nasird5f4212f4536
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
index db5199b5..ea191fbc 100644
--- a/.github/workflows/cla.yml
+++ b/.github/workflows/cla.yml
@@ -1,33 +1,33 @@
-name: "CLA Assistant"
+name: "CLA Reminder"
on:
- issue_comment:
- types: [created]
pull_request_target:
- types: [opened, closed, synchronize]
+ types: [opened]
permissions:
- actions: write
- contents: write
pull-requests: write
- statuses: write
jobs:
- CLAssistant:
+ cla-reminder:
runs-on: ubuntu-latest
steps:
- - 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 }}
+ - name: "Post CLA Reminder"
+ uses: actions/github-script@v7
with:
- path-to-signatures: '.github/signatures/cla.json'
- path-to-document: 'https://github.com/murtaza-nasir/speakr/blob/master/CLA.md'
- branch: 'cla-signatures'
- allowlist: 'bot*,dependabot*,*[bot]'
- create-file-commit-message: 'Creating CLA signature file for storing CLA signatures'
- signed-commit-message: '$contributorName has signed the CLA in #$pullRequestNo'
- custom-notsigned-prcomment: 'Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).<br/><br/>Please review the CLA here: [CLA.md](https://github.com/murtaza-nasir/speakr/blob/master/CLA.md)<br/><br/>To sign the CLA, please comment on this PR with:<br/>`I have read the CLA Document and I hereby sign the CLA`<br/><br/>This is a one-time requirement. Once you sign, all your future contributions are covered.'
- custom-pr-sign-comment: 'The CLA has been signed successfully. Thank you for your contribution!'
- custom-allsigned-prcomment: 'All contributors have signed the CLA. ✅'
- lock-pullrequest-aftermerge: false
+ script: |
+ const body = `Thank you for your contribution!
+
+By submitting this pull request, you agree to the terms of our [Contributor License Agreement (CLA)](https://github.com/${context.repo.owner}/${context.repo.repo}/blob/master/CLA.md).
+
+**Key points:**
+- You retain copyright ownership of your contribution
+- You grant us permission to use your contribution under our dual-license model (AGPLv3 and Commercial)
+- This allows us to include your contribution in both the open source and commercial versions of Speakr
+
+If you have any questions about the CLA, please let us know!`;
+
+ await github.rest.issues.createComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: context.issue.number,
+ body: body
+ });
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index babc44d7..271d3d4d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -14,9 +14,9 @@ There are many ways to contribute to Speakr:
## Code Contributions
-We welcome code contributions! However, due to the dual-licensing nature of Speakr (AGPLv3 and Commercial), we require all code contributors to sign a Contributor License Agreement (CLA).
+We welcome code contributions! However, due to the dual-licensing nature of Speakr (AGPLv3 and Commercial), all code contributions are subject to our Contributor License Agreement (CLA).
-### Why We Require a CLA
+### Contributor License Agreement (CLA)
Speakr is dual-licensed under:
1. **AGPLv3** - Open source license for the community
@@ -30,15 +30,11 @@ The CLA allows us to:
**Important**: You retain copyright ownership of your contribution. The CLA simply grants us permission to use it.
-### How to Sign the CLA
+### Accepting the CLA
-When you submit your first pull request, our CLA bot will automatically comment with instructions. You'll be asked to:
+**By submitting a pull request to this repository, you agree to the terms of our [Contributor License Agreement](CLA.md).**
-1. Review the [CLA document](CLA.md)
-2. Sign by commenting on the PR: `I have read the CLA Document and I hereby sign the CLA`
-3. Our bot will verify and mark your signature
-
-This is a one-time process. Once you've signed, all your future contributions to Speakr are covered.
+Please review the [CLA document](CLA.md) before submitting your contribution. When you open a PR, our bot will post a reminder about the CLA terms.
### Contribution Process
@@ -49,8 +45,7 @@ This is a one-time process. Once you've signed, all your future contributions to
5. **Commit** with clear, descriptive messages (see our commit policy below)
6. **Push** to your fork: `git push origin feature/my-awesome-feature`
7. **Open a Pull Request** with a clear description of your changes
-8. **Sign the CLA** when prompted by the bot
-9. **Respond to feedback** from maintainers
+8. **Respond to feedback** from maintainers
### Coding Standards
@@ -112,15 +107,15 @@ python src/app.py --debug
## What Happens After You Submit a PR?
-1. **CLA Check**: Our bot checks if you've signed the CLA
+1. **CLA Reminder**: Our bot posts a reminder about the CLA terms (by submitting, you've accepted them)
2. **Automated Tests**: CI/CD pipeline runs (if configured)
3. **Code Review**: Maintainers review your code
4. **Feedback**: You may be asked to make changes
-5. **Merge**: Once approved and CLA is signed, we merge your PR!
+5. **Merge**: Once approved, we merge your PR!
-## Alternative Ways to Help (No CLA Required)
+## Other Ways to Help
-If you cannot or prefer not to sign a CLA, you can still help:
+There are many ways to contribute without code:
- **Bug Reports**: Detailed bug reports are incredibly valuable
- **Feature Requests**: Share your ideas and use cases
@@ -133,7 +128,6 @@ If you cannot or prefer not to sign a CLA, you can still help:
- **General Questions**: [GitHub Discussions](https://github.com/murtaza-nasir/speakr/discussions)
- **Bug Reports**: [GitHub Issues](https://github.com/murtaza-nasir/speakr/issues)
-- **CLA Questions**: Open an issue tagged `cla-question`
## Code of Conduct