https://github.com/qualcomm/commit-emails-check-action
GitHub action for checking email addresses in PR/Push commits
https://github.com/qualcomm/commit-emails-check-action
Last synced: 5 months ago
JSON representation
GitHub action for checking email addresses in PR/Push commits
- Host: GitHub
- URL: https://github.com/qualcomm/commit-emails-check-action
- Owner: qualcomm
- License: bsd-3-clause
- Created: 2025-04-28T21:15:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-04T22:18:47.000Z (8 months ago)
- Last Synced: 2025-12-26T02:47:00.551Z (6 months ago)
- Language: Shell
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
README
# commit-emails-check-action
[](https://github.com/qualcomm/commit-emails-check-action/actions/workflows/ci.yml)
Qualcomm PR email addresses checker
For each commit in a PR, validates that the commit's author and committer email
addresses are appropriate for the repo.
**NOTE:** This action should be used with `pull_request` events.
## Example Usage
```yaml
name: PR email addresses checker
on: pull_request
# If using this action on a private/internal repo, you must grant read access to PRs
permissions:
pull-requests: read
jobs:
pr-check-emails:
runs-on: ubuntu-latest
steps:
- name: Check PR emails
uses: qualcomm/commit-emails-check-action@main
```
## Email address policy
- Committer (in all cases) or Author (when commit is not an upstream cherry-pick)
- Block `@.*qualcomm.com` except `@qti.qualcomm.com` and `@oss.qualcomm.com`
- Block `@quicinc.com` unless the custom repository property
`allow-quicinc-authors` (for authors) or `allow-quicinc-committers` (for committers)
is set to true
- Block `quic_@quicinc.com` (starting Jan 2026)
- Block `@codeaurora.org`
- Author (when commit is an [upstream cherry-pick](#upstream-cherry_pick))
- Block `@.*qualcomm.com` except `@qti.qualcomm.com` and `@oss.qualcomm.com`
- Allow `@quicinc.com`
- Allow `quic_@quicinc.com` if author date is before Jan 1 2026
- Allow `@codeaurora.org` if author date is before Dec 4 2021
The action also includes a check for email address characters in the commit identity "name".
Malformed committer names are errors and malformed author names are warnings.
### Upstream cherry-pick
A commit is classified as an upstream cherry-pick if the commit message
contains any of the following:
- the footers `Git-Repo:` and `Git-Commit:`
- the footer `Patch-mainline:`
- the text `cherry picked from commit `
## Copyright and License
```text
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause
```