Skip to content

Gate quicinc emails via repo custom properties#11

Merged
quic-kaushikl merged 2 commits intoqualcomm:mainfrom
quic-kaushikl:main
Nov 4, 2025
Merged

Gate quicinc emails via repo custom properties#11
quic-kaushikl merged 2 commits intoqualcomm:mainfrom
quic-kaushikl:main

Conversation

@quic-kaushikl
Copy link
Contributor

Allow '@quicinc.com' addresses based on repository custom properties so
projects can explicitly opt in for specific roles (author or committer).

Supported custom properties:
- allow-quicinc-authors
- allow-quicinc-committers

Some repositories need to accept '@quicinc.com' emails, while others
must continue blocking them. Using GitHub custom properties provides a
repo-level toggle per role, eliminating hard-coded exceptions and making
policy changes configurable.

By default, '@quicinc.com' addresses are blocked unless the repository
sets the appropriate property to 'true'.

This change updates the email checker to use '--commit-json' instead
of '--json' when passing commit metadata. The rename improves
clarity and avoids ambiguity as new options like '--properties-json'
will be introduced in future updates.

Key updates:
- Modified 'check_email_pr.sh' to call 'check_email.sh' with
  '--commit-json'.
- Updated 'check_email.sh' to replace all references to 'JSON' with
  'COMMIT_JSON'.
- Adjusted usage instructions and helper functions to reflect the new
  option name.

This refactor prepares the codebase for upcoming enhancements that will
read custom repository properties and pass them along to the email
checker.

Signed-off-by: Kaushik Lingarkar <kaushikl@qti.qualcomm.com>
@quic-kaushikl quic-kaushikl linked an issue Oct 29, 2025 that may be closed by this pull request
Copy link
Collaborator

@quic-nasserg quic-nasserg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the README too please?

@quic-kaushikl
Copy link
Contributor Author

Can you update the README too please?

Done

Allow '@quicinc.com' addresses based on repository custom properties so
projects can explicitly opt in for specific roles (author or committer).

Supported custom properties:
- allow-quicinc-authors
- allow-quicinc-committers

Some repositories need to accept '@quicinc.com' emails, while others
must continue blocking them. Using GitHub custom properties provides a
repo-level toggle per role, eliminating hard-coded exceptions and making
policy changes configurable.

By default, '@quicinc.com' addresses are blocked unless the repository
sets the appropriate property to 'true'.

Signed-off-by: Kaushik Lingarkar <kaushikl@qti.qualcomm.com>
@quic-kaushikl quic-kaushikl merged commit ac2b97d into qualcomm:main Nov 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We should allow for @quicinc.com

2 participants