Unverified Commit e83847c0 authored by dagil-nvidia's avatar dagil-nvidia Committed by GitHub
Browse files

docs: add issue-first workflow for external contributors (#4775)


Signed-off-by: default avatarDan Gil <dagil@nvidia.com>
parent 181ec2ba
name: Contribution Request
description: Propose a change you want to implement
title: '[CONTRIBUTION]: '
labels: ["contribution-request"]
body:
- type: markdown
attributes:
value: |
Thank you for your interest in contributing to Dynamo! Please fill out this form so we can review your proposal.
- type: dropdown
id: change-type
attributes:
label: Type of Change
options:
- Bug fix
- New feature
- Refactoring
- Performance improvement
validations:
required: true
- type: textarea
id: problem
attributes:
label: Problem Statement
description: What problem are you trying to solve?
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed Solution
description: How do you plan to solve this?
validations:
required: true
- type: dropdown
id: pr-size
attributes:
label: Estimated PR Size
options:
- XS (1-10 lines)
- S (11-50 lines)
- M (51-200 lines)
- L (201-500 lines)
- XL (501-1000 lines)
- XXL (1000+ lines)
validations:
required: true
- type: textarea
id: files-affected
attributes:
label: Files/Components Affected
description: Which files or components will you modify?
validations:
required: true
...@@ -17,6 +17,62 @@ limitations under the License. ...@@ -17,6 +17,62 @@ limitations under the License.
# Contribution Guidelines # Contribution Guidelines
## External Contributors: Issue-First Workflow
Thank you for your interest in contributing to Dynamo. To help us review your work efficiently, please follow the workflow below.
### When Is a GitHub Issue Required?
**You can submit a PR directly without an issue if:**
- Your change is **<100 lines of code** AND addresses a simple, focused concern (typos, simple bug fixes, formatting)
- **OR** your PR addresses an **existing approved GitHub Issue** (link with "Fixes #123")
**You must create a GitHub Issue first for:**
- Changes ≥100 lines of code
- New features, architecture changes, or multi-component changes
- Any change that requires design discussion
**Note**: All PRs are triaged. If your PR lacks sufficient context or understanding, reviewers will reject the PR and ask you to first submit an issue and get approval before proceeding.
### Issue-First Workflow Steps
**If you are an external contributor and your change requires a GitHub Issue**, please follow this workflow. This process ensures that external contributions are well-aligned with the project's goals and reduces the likelihood of significant rework.
1. **Create a GitHub Issue First** – Before writing any code, [open a GitHub Issue](https://github.com/ai-dynamo/dynamo/issues/new?template=contribution_request.yml) using the **Contribution Request** template.
2. **Identify the Problem** – Clearly explain the problem you are trying to solve, including any relevant context, error messages, or use cases.
3. **Recommend a Solution** – Propose your intended solution or approach in the issue. Include:
- **Estimated PR size**: XS / S / M / L / XL / XXL (use your best judgment)
- **Files affected**: Approximate number and which components/interfaces
- **Type of change**:
- **Bug fix**: Corrects existing behavior with minimal code changes; should include tests that capture the issue
- **New feature**: Adds new behavior or capability; requires comprehensive tests for the new functionality
- **Refactoring**: Restructures code without changing behavior; no new tests required
- **Performance improvement**: Optimizes existing behavior; should include before/after benchmarks
This helps the Dynamo team understand your plan, assess complexity, and provide early feedback. PRs that significantly exceed their stated size may be rejected.
4. **Get Approval** – Wait for the Dynamo team to review and approve both the problem statement and your proposed solution. This ensures alignment with the project's architecture and roadmap before you invest time in implementation. Once approved, a maintainer will apply the `approved-for-pr` label to your issue.
5. **Submit a Pull Request** – Once your issue has the `approved-for-pr` label, [submit a PR](https://github.com/ai-dynamo/dynamo/compare) that references the issue. Link your PR to the issue using [GitHub keywords](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue) (e.g., "Fixes #123" or "Closes #123").
6. **Address Code Rabbit Review** – Wait for the automated Code Rabbit review to complete. Address its suggestions, including the nitpicks—they are often quite insightful and help improve code quality.
7. **Ensure CI Tests Pass** – Wait for all CI tests to pass. If any tests fail, investigate and fix the issues before requesting human review.
8. **Check CODEOWNERS** – Review the [CODEOWNERS](https://github.com/ai-dynamo/dynamo/blob/main/CODEOWNERS) file to identify which team members need to sign off on your PR based on the files you've modified.
9. **Request a Review** – Add whomever approved your GitHub Issue as a reviewer on your PR. Please also add [@dagil-nvidia](https://github.com/dagil-nvidia) for visibility.
> **Note on AI-Generated Code**: While Dynamo encourages the use of AI-generated code, it is the full responsibility of the submitter to understand every change in the PR. Failure to demonstrate sufficient understanding of the submitted code will result in rejection.
---
## General Contribution Guidelines
Contributions that fix documentation errors or that make small changes Contributions that fix documentation errors or that make small changes
to existing code can be contributed directly by following the rules to existing code can be contributed directly by following the rules
below and submitting an appropriate PR. below and submitting an appropriate PR.
...@@ -193,4 +249,4 @@ you can use `-s` or `--signoff` to add the `Signed-off-by` line to ...@@ -193,4 +249,4 @@ you can use `-s` or `--signoff` to add the `Signed-off-by` line to
the end of the commit message. the end of the commit message.
⚠️ **Contributor-Friendly DCO Guide:** ⚠️ **Contributor-Friendly DCO Guide:**
If your pull request fails the DCO check, dont worry! Check out our [DCO Troubleshooting Guide](DCO.md) for step-by-step instructions to fix it quickly. If your pull request fails the DCO check, don't worry! Check out our [DCO Troubleshooting Guide](DCO.md) for step-by-step instructions to fix it quickly.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment