4/10/2023 0 Comments Remove gitx![]() To run the linter manually, run an npm script in the project’s base directory: ![]() Committing code will run the automated linter using Prettier.Using a visual tool like GitHub Desktop or GitX can help for choosing which files and lines to commit.will add all untracked files in the current directory and subdirectories. For information on how to structure your commits, check out the Managing PRs doc. Once you have changes in Git you want to push, add them and create a commit.Create a branch in Git to isolate your changes:.Follow the instructions for the part of the project you want to change.To test changes locally against the Gatsby site and project files, fork the repo and install parts of it to run on your local machine. Be sure to check out additional tips for contributing to various parts of the repo later in this doc, such as docs changes, blog posts, starters, or code improvements and tests. Opening PRs in Gatsbyįor any kind of change to files in the Gatsby repo, you can follow the below steps. This helps facilitate a discussion before deciding on an implementation.įor some changes, such as typo fixes or broken links, it may be appropriate to open a small PR by itself. We typically recommend opening an issue before a pull request if there isn’t already an issue for the problem you’d like to solve. Recommendations for different kinds of contributions will follow in this guide and throughout the contributing docs. Depending on the type of change, PRs are categorized into: When someone wants to contribute to Gatsby, they open a request to pull their code into the repo. The same process is used for all contributors, whether this is your first open source contribution or you’re a core member of the Gatsby team. ![]() Gatsby uses the PR process to review and test changes before they’re added to Gatsby’s GitHub repository. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch. Pull requests let you tell others about changes you’ve pushed to a branch in a repository on GitHub. In case you aren’t familiar, here’s how the folks at GitHub define a pull request: This doc will cover what you need to know to open a pull request in Gatsby. A big part of contributing to open source is submitting changes to a project: improvements to source code or tests, updates to docs content, even typos or broken links.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |