repo.identify
action is a critical automation tool that intelligently determines which code repositories are most relevant to your workflow context. In multi-repository workspaces where tickets (Jira, GitHub Issues) are managed separately from code repositories, this action is essential for bridging the gap and ensuring your automation workflows target the correct codebases.
Why This Action is Critical
The Multi-Repository Challenge
In modern development environments, you often have:- Ticket Systems: Jira projects, GitHub Issues, Linear tickets
- Code Repositories: Multiple Git repositories across different providers (GitHub, GitLab, Azure DevOps)
- Complex Relationships: One ticket might affect code in 3-5 different repositories
repo.identify
, you’d need to:
- Manually specify repository names in every workflow
- Update workflows when repository structures change
- Risk targeting the wrong repositories for critical operations
- Maintain complex mapping logic across multiple systems
The Solution
Therepo.identify
action automatically bridges this gap by:
- Analyzing ticket context to understand what needs to be done
- Mapping to code repositories using AI and explicit correlations
- Providing confidence scores to ensure accuracy
- Enabling dynamic workflows that adapt to your repository structure
Overview
Therepo.identify
action analyzes your workflow context and automatically determines which code repositories are most relevant to the current task. It’s particularly useful in multi-repository workspaces where you need to dynamically select the appropriate repositories based on ticket content, labels, and explicit correlations.
AI-Powered Analysis
Uses intelligent analysis of ticket content, labels, and context to identify relevant repositories.
Repository Correlations
Leverages explicit correlations between ticket repositories and code repositories for reliable identification.
Dynamic Selection
Automatically selects the most appropriate repositories without manual configuration.
Multi-Repository Support
Can identify multiple repositories for complex workflows that span multiple codebases.
Critical Use Cases
Jira Workflow Automation
When a Jira issue is created or updated, you need to know which code repositories contain the affected code:Cross-Repository Bug Investigation
For bugs that might span multiple repositories:Feature Development Planning
When planning new features that touch multiple systems:Basic Usage
Simple Repository Identification
The most basic usage identifies a single repository:Multi-Repository Identification
Identify multiple repositories for complex workflows:With Identification Hints
Provide additional context to guide the identification process:Parameters
Required Parameters
None - all parameters have sensible defaults.Optional Parameters
Maximum number of repositories to return (top-K). Controls how many candidate repositories are returned. Use 1 for single-repo workflows, higher values for multi-repo scenarios.
Minimum confidence threshold (0..1). Filters out low-confidence matches. Higher values (0.7+) ensure only strong matches are returned.
Optional hints to bias identification. Additional context that can help the AI make better decisions, especially when correlations are unclear.
How Identification Works
The identification process follows a sophisticated multi-step logic:1. Correlation Check
First, the system looks for explicitly correlated repositories between your ticket repository and code repositories. These explicit correlations take precedence over all other identification methods.2. Context Analysis
The AI analyzes the ticket content including:- Title and description: Keywords, technologies, and domain-specific terms
- Labels and components: Project-specific categorization
- Assignee and reporter: Team and ownership context
- Project structure: Related tickets and dependencies
3. Repository Hints
Considers repository-level identification hints configured in your repository settings, such as:- Key technologies and frameworks
- Domain-specific components
- Team ownership and responsibilities
- Project scope and boundaries
4. Scoring and Ranking
Combines all signals to produce confidence scores:- Correlation strength: Explicit correlations get highest scores
- Content relevance: AI analysis of ticket-repository alignment
- Repository activity: Recent commits and development activity
- Team alignment: Developer and team associations
5. Filtering and Selection
Applies the minimum confidence threshold and returns the top-ranked repositories up to the specifiedmaxResults
.
Output and Context
Step Output
Therepo.identify
action provides output that can be used by subsequent steps:
Array of identified repositories with confidence scores and reasoning.
Full repository name in “owner/repo” format.
Confidence score (0-1) indicating how well the repository matches the context.
Explanation of why this repository was selected, including correlation details and AI analysis.
Available Variables
Use these variables in subsequent steps:{{outputs.identify-repos.[0].repoFullName}}
: First identified repository{{outputs.identify-repos.[0].confidence}}
: Confidence score for first repository{{outputs.identify-repos.[0].reasoning}}
: Reasoning for first repository selection
Template Examples
Basic Repository Reference:Important: If your step ID contains hyphens (e.g.,
identify-repos
), use bracket notation: {{outputs.[identify-repos].[0].repoFullName}}
Integration with Other Actions
Following with Git Clone
After identifying repositories, you can clone them using thegit.clone
action:
Multi-Repository Workflows
For workflows that need to work with multiple repositories:Best Practices
1. Set Up Explicit Correlations
- Always create explicit correlations between ticket repositories and code repositories
- This provides the most reliable identification results
- Correlations take precedence over AI-based heuristics
- Use the repository mapping interface to establish these relationships
2. Use Descriptive Repository Hints
- Include key technologies, domains, and components in repository configuration
- Use consistent terminology across related repositories
- Update hints when repository scope changes
- Consider team ownership and project boundaries
3. Configure Appropriate Confidence Thresholds
- 0.2-0.4: Low threshold, includes more candidates (default)
- 0.5-0.7: Medium threshold, balanced selection
- 0.8-1.0: High threshold, only strong matches
- Start with default (0.2) and adjust based on results
4. Position in Workflow
- Place
repo.identify
early in your workflow, right after the trigger - Use identified repositories in subsequent
git.clone
or agent steps - Consider fallback logic for cases where no repositories are identified
5. Monitor and Refine
- Review identification results regularly
- Adjust correlation settings based on accuracy
- Update repository hints as projects evolve
- Use workflow logs to understand identification reasoning
Common Use Cases
Issue Triage Workflows
Automatically identify relevant repositories for issue analysis:Cross-Repository Analysis
Identify multiple repositories for comprehensive analysis:Feature Development
Identify repositories for new feature implementation:Advanced Configuration
Repository-Level Hints
Configure identification hints in your repository settings:- Access Repository Settings: Go to repository configuration
- Set Identification Hints: Add descriptive text about the repository’s purpose
- Use Consistent Terminology: Align with ticket labels and project terminology
- Update Regularly: Keep hints current with repository evolution
Correlation Management
Manage explicit correlations between repositories:- Map Ticket Repositories: Connect Jira projects to code repositories
- Establish Relationships: Define which code repositories relate to which ticket systems
- Review Accuracy: Regularly validate correlation effectiveness
- Adjust as Needed: Update correlations when project structure changes
Next Steps
Now that you understand therepo.identify
action, explore these related topics:
- Repository Mapping: Learn how to set up explicit correlations
- Git Clone Action: Use identified repositories in clone operations
- Building Blocks: Explore other workflow actions and components
- Quick Starts: See complete workflow examples
repo.identify
action to your workflows for intelligent, context-aware repository identification.