diff --git a/.github/ISSUE_TEMPLATE/feature_contribution.yml b/.github/ISSUE_TEMPLATE/feature_contribution.yml new file mode 100644 index 00000000..519b4d40 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_contribution.yml @@ -0,0 +1,116 @@ +name: πŸ’‘ Feature Proposal & Contribution +description: Propose a new feature or improvement, and optionally offer to implement feature as a contributor +labels: ["proposal"] +body: + - type: markdown + attributes: + value: | + **Feature Proposal & Contribution for Cline** + + Thank you for proposing a feature or improvement for Cline! This template helps us understand the problem, evaluate the solution, and coordinate implementation. + + **For detailed proposals:** Please provide comprehensive information to enable fast prioritization and discussion. + **For contribution offers:** You can indicate your willingness to implement the feature yourself. + + Before submitting: + - Search existing [Issues](https://github.com/cline/cline/issues) and [Discussions](https://github.com/cline/cline/discussions) to avoid duplicates + - Read the [Contributing Guide](https://github.com/cline/cline/blob/main/CONTRIBUTING.md) if you plan to contribute + - Don't start implementation until the proposal is reviewed and approved + + - type: textarea + id: problem-description + attributes: + label: What problem does this solve? + description: | + Describe the problem clearly from a user's point of view. Focus on why this matters, who it affects, and when it occurs. + + βœ… Good examples: + - "LLM provider returns 400 error when nearing the context window instead of truncating" + - "Submit button is invisible in dark mode" + - "Users can't easily share their Cline configurations with team members" + + ❌ Avoid vague descriptions: + - "Performance is bad" + - "UI needs work" + + Your description should include: + - Who is affected? + - When does it happen? + - What's the current vs expected behavior? + - What is the impact? + placeholder: Be specific about the problem, who it affects, and the impact. + validations: + required: true + + - type: textarea + id: proposed-solution + attributes: + label: What's the proposed solution? + description: | + Describe how the problem should be solved. Be specific about UX, system behavior, and any flows that would change. + + βœ… Good examples: + - "Add error handling immediately after attempting to create the llm stream and retry after manually truncating" + - "Update button styling to ensure contrast in all themes" + - "Add export/import functionality in settings with JSON format" + + ❌ Avoid vague solutions: + - "Improve performance" + - "Fix the bug" + + Your solution should include: + - What exactly will change? + - How will users interact with it? + - What's the expected outcome? + placeholder: Describe the proposed changes and how they solve the problem. + validations: + required: false + + - type: dropdown + id: contribution-intent + attributes: + label: Are you interested in implementing this? + description: Let us know if you'd like to contribute to this feature + options: + - "No, just proposing the idea" + - "Yes, I'd like to implement this myself" + - "Yes, I'd like to collaborate with others" + - "Maybe, depending on complexity and guidance" + validations: + required: false + + - type: textarea + id: implementation-approach + attributes: + label: Implementation approach (if contributing) + description: | + **Only fill this out if you selected "Yes" above.** + + How do you plan to implement this? Include: + - High-level technical approach + - Files/components that would be affected + - Any new dependencies required + - Potential challenges or considerations you've identified + + This helps us provide better guidance and ensures alignment before you start coding. + placeholder: "My implementation approach would be..." + + - type: checkboxes + id: checklist + attributes: + label: Proposal checklist + options: + - label: I've checked for existing issues or related proposals + required: true + - label: I understand this needs review before implementation can start + required: true + + - type: checkboxes + id: contribution-checklist + attributes: + label: Contribution checklist (if contributing) + description: Only check these if you plan to contribute + options: + - label: I've read the [Contributing Guide](https://github.com/cline/cline/blob/main/CONTRIBUTING.md) + - label: I'm willing to make changes based on feedback + - label: I understand the code review process and requirements diff --git a/.github/ISSUE_TEMPLATE/feature_proposal.yml b/.github/ISSUE_TEMPLATE/feature_proposal.yml deleted file mode 100644 index 983bf8b8..00000000 --- a/.github/ISSUE_TEMPLATE/feature_proposal.yml +++ /dev/null @@ -1,130 +0,0 @@ -name: πŸ“ Detailed Feature Proposal -description: Propose a new feature or improvement -labels: ["proposal"] -body: - - type: markdown - attributes: - value: | - **Feature Proposal for Cline** - - Thank you for creating a feature proposal for Cline! This template is for clear, actionable proposals that define a specific problem and a high-confidence solution. Please provide enough detail to enable fast prioritization, discussion, and execution. - - Detailed proposals will be prioritized, while vague proposals may be closed or require extensive back and forth communication. - - Before submitting: - - Search existing [Issues](https://github.com/cline/cline/issues) and [Discussions](https://github.com/cline/cline/discussions) to avoid duplicates - - Don’t start implementation until the proposal is reviewed and approved - - - type: textarea - id: problem-description - attributes: - label: What problem does this solve? - description: | - Describe the problem clearly from a user's point of view. Focus on why this matters, who it affects, and when it occurs. - - βœ… Solid: - - "LLM provider returns 400 error when nearing the context window instead of truncating" - - "Submit button is invisible in dark mode" - - ❌ Avoid: - - "Performance is bad" - - "UI needs work" - - Your description should include: - - Who is affected? - - When does it happen? - - What's the current vs expected behavior? - - What is the impact? - placeholder: Be specific about the problem, who it affects, and the impact. - validations: - required: true - - - type: textarea - id: proposed-solution - attributes: - label: What’s the proposed solution? - description: | - Describe how the problem should be solved. Be specific about UX, system behavior, and any flows that would change. - - βœ… Solid: - - "Add error handling immediately after attempting to create the llm stream and retry after manually truncating" - - "Update button styling to ensure contrast in all themes" - - ❌ Avoid: - - "Improve performance" - - "Fix the bug" - - Your solution should include: - - What exactly will change? - - How will users interact with it? - - What’s the expected outcome? - placeholder: Describe the proposed changes and how they solve the problem. - validations: - required: true - - - type: textarea - id: acceptance-criteria - attributes: - label: How will we know it works? (Acceptance Criteria) - description: Define clear, testable success criteria. - placeholder: Provide specific and testable conditions for success. - validations: - required: true - - - type: textarea - id: estimated-effort - attributes: - label: Estimated effort and complexity - description: | - Help us understand scope and risks. Include: - - - Size estimate (XS/S/M/L/XL or hours/days) - - Why this size? What’s technically involved? - - Any tricky parts, refactors, or risks? - - Performance or compatibility concerns? - - Any dependencies on systems, teams, or libraries? - placeholder: Size, reasoning, risks, and dependencies. - validations: - required: true - - - type: textarea - id: technical-considerations - attributes: - label: Technical considerations, tradeoffs, and/or risks (optional) - description: | - Include any technical context that helps us evaluate or implement the proposal more effectively. - - You may include: - - Architectural changes or required refactors - - Performance implications or system-level impacts - - Known limitations, risks, or tricky edge cases - - Compatibility concerns or migration steps - - Alternative approaches you considered and why they were not chosen - - Dependencies on other systems, teams, or libraries - - Were other approaches considered? Why is this one preferred? - placeholder: Technical considerations, tradeoffs, and/or risks. - - - type: textarea - id: additional-context - attributes: - label: Additional context (optional) - description: Diagrams, mockups, logs, links, or anything else that helps explain or justify the proposal. - placeholder: Diagrams, mockups, logs, links, or anything else that helps explain or justify the proposal. - - - type: checkboxes - id: checklist - attributes: - label: Proposal checklist - options: - - label: I’ve checked for existing issues or related proposals - required: true - - label: I understand this needs review before implementation can start - required: true - - - type: checkboxes - id: willingness-to-contribute - attributes: - label: Interested in implementing this? - description: Optional - options: - - label: Yes, I’d like to help implement this feature diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1c175754..8f0822db 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,13 +10,6 @@ Bug reports help make Cline better for everyone! Before creating a new issue, pl πŸ” Important: If you discover a security vulnerability, please use the Github security tool to report it privately. -## Deciding What to Work On - -Looking for a good first contribution? Check out issues labeled ["good first issue"](https://github.com/cline/cline/labels/good%20first%20issue) or ["help wanted"](https://github.com/cline/cline/labels/help%20wanted). These are specifically curated for new contributors and areas where we'd love some help! - -We also welcome contributions to our [documentation](https://github.com/cline/cline/tree/main/docs)! Whether it's fixing typos, improving existing guides, or creating new educational content - we'd love to build a community-driven repository of resources that helps everyone get the most out of Cline. You can start by diving into `/docs` and looking for areas that need improvement. - -If you're planning to work on a bigger feature, please create a [feature request](https://github.com/cline/cline/discussions/categories/feature-requests?discussions_q=is%3Aopen+category%3A%22Feature+Requests%22+sort%3Atop) first so we can discuss whether it aligns with Cline's vision. ## Before Contributing @@ -24,14 +17,70 @@ All contributions must begin with a GitHub Issue, unless the change is for small - **Check existing issues**: Search [GitHub Issues](https://github.com/cline/cline/issues). - **Create an issue**: Use appropriate templates: - - **Bugs:** "Bug Report" template. - - **Features:** "Detailed Feature Proposal" template. Approval from a core Cline contributor required before starting. -- **Claim issues**: Comment your interest. + - **Contributions:** Use the "Contribution Request" template to propose what you'd like to work on. + - **Bugs:** "Bug Report" template for reporting issues. + - **Features:** "Detailed Feature Proposal" template for suggesting new features. +- **Wait for approval**: A core Cline contributor must approve your contribution request before you start implementation. +- **Claim issues**: Once approved, the issue will be assigned to you. **PRs without approved issues may be closed.** + +## Deciding What to Work On + +Looking for a good first contribution? Check out issues labeled ["good first issue"](https://github.com/cline/cline/labels/good%20first%20issue) or ["help wanted"](https://github.com/cline/cline/labels/help%20wanted). These are specifically curated for new contributors and areas where we'd love some help! + +We also welcome contributions to our [documentation](https://github.com/cline/cline/tree/main/docs)! Whether it's fixing typos, improving existing guides, or creating new educational content - we'd love to build a community-driven repository of resources that helps everyone get the most out of Cline. You can start by diving into `/docs` and looking for areas that need improvement. + ## Development Setup + +### Local Development Instructions + +1. Clone the repository _(Requires [git-lfs](https://git-lfs.com/))_: + ```bash + git clone https://github.com/cline/cline.git + ``` +2. Open the project in VSCode: + ```bash + code cline + ``` +3. Install the necessary dependencies for the extension and webview-gui: + ```bash + npm run install:all + ``` +4. Launch by pressing `F5` (or `Run`->`Start Debugging`) to open a new VSCode window with the extension loaded. (You may need to install the [esbuild problem matchers extension](https://marketplace.visualstudio.com/items?itemName=connor4312.esbuild-problem-matchers) if you run into issues building the project.) + + + + +### Creating a Pull Request + +1. Before creating a PR, generate a changeset entry: + ```bash + npm run changeset + ``` + This will prompt you for: + - Type of change (major, minor, patch) + - `major` β†’ breaking changes (1.0.0 β†’ 2.0.0) + - `minor` β†’ new features (1.0.0 β†’ 1.1.0) + - `patch` β†’ bug fixes (1.0.0 β†’ 1.0.1) + - Description of your changes + +2. Commit your changes and the generated `.changeset` file + +3. Push your branch and create a PR on GitHub. Our CI will: + - Run tests and checks + - Changesetbot will create a comment showing the version impact + - When merged to main, changesetbot will create a Version Packages PR + - When the Version Packages PR is merged, a new release will be published +4. Testing + - Run `npm run test` to run tests locally. + - Before submitting PR, run `npm run format:fix` to format your code + - Run `npm run test:ci` to run tests locally + +### Extension + 1. **VS Code Extensions** - When opening the project, VS Code will prompt you to install recommended extensions @@ -86,8 +135,6 @@ All contributions must begin with a GitHub Issue, unless the change is for small xvfb ``` - - Run `npm run test:ci` to run tests locally - ## Writing and Submitting Code Anyone can contribute code to Cline, but we ask that you follow these guidelines to ensure your contributions can be smoothly integrated: diff --git a/README.md b/README.md index 993ebcaa..479c984f 100644 --- a/README.md +++ b/README.md @@ -141,50 +141,6 @@ For example, when working with a local web server, you can use 'Restore Workspac To contribute to the project, start with our [Contributing Guide](CONTRIBUTING.md) to learn the basics. You can also join our [Discord](https://discord.gg/cline) to chat with other contributors in the `#contributors` channel. If you're looking for full-time work, check out our open positions on our [careers page](https://cline.bot/join-us)! -
-Local Development Instructions - -1. Clone the repository _(Requires [git-lfs](https://git-lfs.com/))_: - ```bash - git clone https://github.com/cline/cline.git - ``` -2. Open the project in VSCode: - ```bash - code cline - ``` -3. Install the necessary dependencies for the extension and webview-gui: - ```bash - npm run install:all - ``` -4. Launch by pressing `F5` (or `Run`->`Start Debugging`) to open a new VSCode window with the extension loaded. (You may need to install the [esbuild problem matchers extension](https://marketplace.visualstudio.com/items?itemName=connor4312.esbuild-problem-matchers) if you run into issues building the project.) - -
- -
-Creating a Pull Request - -1. Before creating a PR, generate a changeset entry: - ```bash - npm run changeset - ``` - This will prompt you for: - - Type of change (major, minor, patch) - - `major` β†’ breaking changes (1.0.0 β†’ 2.0.0) - - `minor` β†’ new features (1.0.0 β†’ 1.1.0) - - `patch` β†’ bug fixes (1.0.0 β†’ 1.0.1) - - Description of your changes - -2. Commit your changes and the generated `.changeset` file - -3. Push your branch and create a PR on GitHub. Our CI will: - - Run tests and checks - - Changesetbot will create a comment showing the version impact - - When merged to main, changesetbot will create a Version Packages PR - - When the Version Packages PR is merged, a new release will be published - -
- - ## License [Apache 2.0 Β© 2025 Cline Bot Inc.](./LICENSE)