Skip to content

Commit b469ca8

Browse files
committed
fix: improve discovery prompt
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent 24caf5d commit b469ca8

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

services/apps/git_integration/src/crowdgit/services/affiliation/affiliation_service.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,20 +160,25 @@ def get_file_picker_prompt(
160160
- contributors grouped under the organization they belong to
161161
- explicit domain/email-pattern rules that the file defines for assigning
162162
contributors to organizations
163+
164+
What decides a match is the content, not the file's name or purpose. Any
165+
file qualifies when it states an organization per person — including
166+
governance or ownership files (e.g. OWNERS, MAINTAINERS) when they carry
167+
an explicit organization/employer for each person. Try to capture these.
163168
</what_to_find>
164169
165170
<what_to_reject>
166-
Reject candidates whose preview does not explicitly associate contributors
167-
with organizations, including:
168-
- Lists of names, emails, or usernames with no stated organization
169-
(e.g. AUTHORS, CONTRIBUTORS, CREDITS).
170-
- Identity or alias mappings such as .mailmap.
171-
- Governance or ownership files that name people but not their employer
172-
(e.g. OWNERS, CODEOWNERS, MAINTAINERS without organization information).
173-
- Source code, scripts, or configuration files.
174-
175-
Email addresses and email domains alone do not make a file a match, unless
176-
the file explicitly defines those domains or patterns as affiliation rules.
171+
The deciding factor is whether the file states an organization per person.
172+
Reject a candidate when it only identifies people without that, including:
173+
- lists of names, emails, or usernames with no organization
174+
(e.g. AUTHORS, CONTRIBUTORS, CREDITS)
175+
- identity or alias mappings (e.g. .mailmap)
176+
- role or ownership files that name people but not their employer
177+
(e.g. OWNERS, CODEOWNERS, MAINTAINERS without organization information)
178+
- source code, scripts, or configuration
179+
180+
An email address or its domain is not an organization, unless the file
181+
explicitly defines that domain or pattern as an affiliation rule.
177182
</what_to_reject>
178183
179184
<candidates>

0 commit comments

Comments
 (0)