Thank you for your interest in contributing to the SecretStack VSCode Extension! We welcome and appreciate all contributions, whether they are bug reports, new features, or documentation improvements. This guide will help you get started with contributing to the project.
If you encounter a bug, have a feature request, or want to provide general feedback, please file an issue on the GitHub issue tracker for this repository. Before creating a new issue, check the existing issues to avoid duplication. When filing a new issue, include:
- A descriptive title and a summary of the issue.
- Steps to reproduce the bug (if applicable).
- Relevant logs, screenshots, or code snippets that illustrate the problem.
- Any suggested solutions or workarounds (if applicable).
Providing detailed information helps us address your issue promptly and effectively.
We’re excited to have you join the project! Follow these steps to contribute:
- File an Issue: Start by submitting an issue that describes your proposed change. This helps us discuss the idea and ensures alignment before any code is written.
- Discuss and Get Feedback: A maintainer will review your issue and may provide suggestions or ask questions. If your proposal is accepted, proceed to the next steps.
-
Fork the Repository:
Click the "Fork" button at the top-right of the repository page on GitHub to create your own copy of the project under your GitHub username. -
Clone Your Fork:
Clone your forked repository to your local machine using the following command. Replace<YourUsername>
with your GitHub username:git clone https://github.com/<YourUsername>/secret-stack.git
This command copies the repository to your local machine, allowing you to make changes.
After cloning, navigate to the project directory:
cd secret-stack
-
Create a New Branch:
It’s important to always create a new branch for each new change or feature. This helps keep your changes organized and avoids conflicts with themain
branch. To create a new branch, use:git checkout -b your-branch-name
Replace
your-branch-name
with a descriptive name for the new branch, such asfix-bug
oradd-new-feature
. -
Make Your Changes:
Now that you're on your new branch, make the necessary changes to the code, documentation, or other parts of the project.
-
Before committing your changes, it’s essential to run the automated tests to ensure your changes don’t introduce any bugs.
-
SecretStack uses Jest for automated testing. To run the tests locally, execute the following command:
npm run test
-
This will run all the tests defined in the project, and you’ll see the test results in the console. If you encounter any failing tests, address them before proceeding.
-
After ensuring that all tests are passing, stage and commit your changes:
git add . git commit -m "Your commit message describing the changes"
For example, a good commit message might be:
git commit -m "Fix issue with SecretStack Extension detecting secrets"
-
Push Your Changes:
git push origin your-branch-name
-
Open a Pull Request:
Go to the original repository on GitHub and click on New Pull Request. Select your branch as the source and describe your changes in detail. -
Address Feedback:
A maintainer may review your PR and provide feedback. Be prepared to make changes as requested.
-
Keep Commits Atomic:
Ensure each commit represents a single, logical change. This makes it easier to review and understand your contribution. -
Write Clear Commit Messages:
When writing commit messages, follow the Conventional Commits standard (if applicable) for clarity. -
Stay Synced with the Original Repository:
If the original repository has updates (especially when working on a long-lived branch), you might want to keep your fork up-to-date. You can add the original repository as a remote (calledupstream
) and pull in changes:git remote add upstream https://github.com/ArpitStack/secret-stack.git git fetch upstream git merge upstream/main