UNPKG

5.25 kBMarkdownView Raw
1## Contributing
2The development of Scratch is an ongoing process, and we love to have people in the Scratch and open source communities help us along the way.
3
4### Ways to Help
5
6* **Documenting bugs**
7 * If you've identified a bug in Scratch you should first check to see if it's been filed as an issue, if not you can file one. Make sure you follow the issue template.
8 * It's important that we can consistently reproduce issues. When writing an issue, be sure to follow our [reproduction step guidelines](https://github.com/LLK/scratch-gui/wiki/Writing-good-repro-steps).
9 * Some issues are marked "Needs Repro". Adding a comment with good reproduction steps to those issues is a great way to help.
10 * If you don't have an issue in mind already, you can look through the [Bugs & Glitches forum.](https://scratch.mit.edu/discuss/3/) Look for users reporting problems, reproduce the problem yourself, and file new issues following our guidelines.
11
12* **Fixing bugs**
13 * You can request to fix a bug in a comment on the issue if you at mention the repo coordinator, who for this repo is @ericrosenbaum.
14 * If the issue is marked "Help Wanted" you can go ahead and start working on it!
15 * **We will only accept Pull Requests for bugs that have an issue filed that has a priority label**
16 * If you're interested in fixing a bug with no issue, file the issue first and wait for it to have a priority added to it.
17
18 * We are not looking for Pull Requests ("PR") for every issue and may deny a PR if it doesn't fit our criteria.
19 * We are far more likely to accept a PR if it is for an issue marked with Help Wanted.
20 * We will not accept PRs for issues marked with "Needs Discussion" or "Needs Design."
21 * Wait until the Repo Coordinator assigns the issue to you before you begin work or submit a PR.
22
23### Learning Git and Github
24
25If you want to work on fixing issues, you should be familiar with Git and Github.
26
27* [Learn Git branching](https://learngitbranching.js.org/) includes an introduction to basic git commands and useful branching features.
28* Here's a general introduction to [contributing to an open source project](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github).
29
30**Important:** we follow the [Github Flow process](https://guides.github.com/introduction/flow/) as our development process.
31
32### How to Fix Bugs
331. Identify which Github issue you are working on. Leave a comment on the issue to let us (and other contributors) know you're working on it.
342. Make sure you have a fork of this repo (see [Github's forking a repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) for details)
353. Switch to the `develop` branch, and pull down the latest changes from upstream
364. Run the code, and reproduce the problem
375. Create your branch from the `develop` branch
386. Make code changes to fix the problem
397. Run `npm test` to make sure that your changes pass our tests
408. Commit your changes
419. Push your branch to your fork
4210. Create your pull request
43 1. Make sure to follow the template in the PR description
44 1. Remember to check the “[Allow edits from maintainers](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork)” box
45
46When submitting pull requests keep in mind:
47* please be patient -- it can take a while to find time to review them
48* try to change the least amount of code necessary to fix the bug
49* the code can't be radically changed without significant coordination with the Scratch Team, so these types of changes should be avoided
50* if you find yourself changing a substantial amount of code or considering radical changes, please ask for clarification -- we may have envisioned a different approach, or underestimated the amount of effort
51
52### Suggestions
53![Block sketch](https://user-images.githubusercontent.com/3431616/77192550-1dcebe00-6ab3-11ea-9606-8ecd8500c958.png)
54
55Please note: **_we are unlikely to accept PRs with new features that haven't been thought through and discussed as a group_**.
56
57Why? Because we have a strong belief in the value of keeping things simple for new users. It's been said that the Scratch Team spends about one hour of design discussion for every pixel in Scratch. To learn more about our design philosophy, see [the Scratch Developers page](https://scratch.mit.edu/developers), or [this paper](http://web.media.mit.edu/~mres/papers/Scratch-CACM-final.pdf).
58
59We welcome suggestions! If you want to suggest a feature, please post in our [suggestions forum](https://scratch.mit.edu/discuss/1/). Your suggestion will be helped if you include a mockup design; this can be simple, even hand-drawn.
60
61### Other resources
62Beyond this repo, there are also some other resources that you might want to take a look at:
63* [Community Guidelines](https://github.com/LLK/scratch-www/wiki/Community-Guidelines) (we find it important to maintain a constructive and welcoming community, just like on Scratch)
64* [Open Source forum](https://scratch.mit.edu/discuss/49/) on Scratch
65* [Suggestions forum](https://scratch.mit.edu/discuss/1/) on Scratch
66* [Bugs & Glitches forum](https://scratch.mit.edu/discuss/3/) on Scratch