You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTE.md
+38-88Lines changed: 38 additions & 88 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,22 +6,21 @@ Thank you for considering contributing to this tutorial repository!
6
6
7
7
[](CONTRIBUTE.md#support-questions)
8
8
9
-
Please don't use the issue tracker for this. The issue tracker is a tool to address bugs and feature requests in Flask itself. Use one of the following resources for questions about using Flask or issues with your own code:
9
+
Please don't use the issue tracker for this. The issue tracker is a tool to address bugs and feature requests for the project itself.
10
10
11
-
- The `#questions` channel on our Discord chat: [https://discord.gg/pallets](https://discord.gg/pallets)
12
-
- Ask on [Stack Overflow](https://stackoverflow.com/questions/tagged/flask?tab=Frequent). Search with Google first using: `site:stackoverflow.com flask {search term, exception message, etc.}`
13
-
- Ask on our [GitHub Discussions](https://github.com/pallets/flask/discussions) for long term discussion or larger questions.
11
+
Use one of the following resources for questions about the project:
12
+
13
+
- Ask on our [GitHub Discussions](https://github.com/AdyGCode/Intro-to-Version-Control/discussions/) for long term discussion or larger questions.
- If possible, include a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) to help us identify the issue. This also helps check that the issue is not with your own code.
23
-
- Describe what actually happened. Include the full traceback if there was an exception.
24
-
- List your Python and Flask versions. If possible, check if this issue is already fixed in the latest releases or the latest code in the repository.
21
+
- Before reporting a problem, check if this issue is already fixed in the latest releases or the latest code in the repository.
22
+
- Provide a title that gives a basic indicator of the yuou have. For example "Content missing: Chapter 7 No content", or "Grammar: Chapter 4"
23
+
- Provide a possible solution, if you are able to do so.
25
24
26
25
## Submitting patches
27
26
@@ -31,72 +30,51 @@ If there is not an open issue for what you want to submit, prefer opening one fo
31
30
32
31
Include the following in your patch:
33
32
34
-
- Use [Black](https://black.readthedocs.io/) to format your code. This and other tools will run automatically if you install [pre-commit](https://pre-commit.com/) using the instructions below.
35
-
- Include tests if your patch adds or changes code. Make sure the test fails without your patch.
36
-
- Update any relevant docs pages and docstrings. Docs pages and docstrings should be wrapped at 72 characters.
37
-
- Add an entry in `CHANGES.rst`. Use the same style as other entries. Also include `.. versionchanged::` inline changelogs in relevant docstrings.
[GitHub Codespaces](https://docs.github.com/en/codespaces) creates a development environment that is already set up for the project. By default it opens in Visual Studio Code for the Web, but this can be changed in your GitHub profile settings to use Visual Studio Code or JetBrains PyCharm on your local computer.
44
-
45
-
- Make sure you have a [GitHub account](https://github.com/join).
46
-
- From the project's repository page, click the green "Code" button and then "Create codespace on main".
47
-
- The codespace will be set up, then Visual Studio Code will open. However, you'll need to wait a bit longer for the Python extension to be installed. You'll know it's ready when the terminal at the bottom shows that the virtualenv was activated.
48
-
- Check out a branch and [start coding](https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst#start-coding).
33
+
- Update any relevant documents and images.
34
+
- Add an entry in `CHANGELOG.md`. Use the same style as other entries.
- Make sure you have a [GitHub account](https://github.com/join).
55
-
41
+
56
42
- Download and install the [latest version of git](https://git-scm.com/downloads).
57
-
43
+
58
44
- Configure git with your [username](https://docs.github.com/en/github/using-git/setting-your-username-in-git) and [email](https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address).
59
-
60
-
$ git config --global user.name 'your name'
61
-
$ git config --global user.email 'your email'
62
-
63
-
- Fork Flask to your GitHub account by clicking the [Fork](https://github.com/pallets/flask/fork) button.
64
-
45
+
```bash
46
+
git config --global user.name 'your name'
47
+
git config --global user.email 'your email'
48
+
```
49
+
50
+
- Fork this repository to your GitHub account by clicking the [Fork](https://github.com/AdyGCode/Intro-to-Version-Control/fork) button.
51
+
65
52
-[Clone](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo#step-2-create-a-local-clone-of-your-fork) your fork locally, replacing `your-username` in the command below with your actual username.
- Create a branch to identify the issue you would like to work on. If you're submitting a bug or documentation fix, branch off of the latest ".x" branch.
63
+
- Create a branch to identify the issue you would like to work on using the following rules:
64
+
65
+
- If you are adding a new chapter, branch off the `dev` branch. Name your branch `feat/feature_name`.
66
+
67
+
68
+
```bash
69
+
git fetch origin
70
+
git checkout -b feat/feature_name origin/2.0.x
71
+
```
72
+
73
+
- If you're submitting a bug or documentation fix, branch off of the latest main branch. Name your fix `fix/`
74
+
75
+
76
+
97
77
98
-
$ git fetch origin
99
-
$ git checkout -b your-branch-name origin/2.0.x
100
78
101
79
If you're submitting a feature addition or change, branch off of the "main" branch.
102
80
@@ -113,34 +91,6 @@ Include the following in your patch:
This runs the tests for the current environment, which is usually sufficient. CI will run the full suite when you submit your pull request. You can run the full test suite with tox if you don't want to wait.
Generating a report of lines that do not have test coverage can indicate where to start contributing. Run `pytest` using `coverage` and generate a report.
133
-
134
-
If you are using GitHub Codespaces, `coverage` is already installed so you can skip the installation command.
135
-
136
-
$ pip install coverage
137
-
$ coverage run -m pytest
138
-
$ coverage html
139
-
140
-
Open `htmlcov/index.html` in your browser to explore the report.
141
-
142
-
Read more about [coverage](https://coverage.readthedocs.io/).
|**Purpose**| Create a separate copy of a repository for significant changes or different directions | Develop new features or fix bugs without disrupting the main codebase |
60
+
|**Relationship to the original codebase**| Completely independent repository | Linked to the original repository |
61
+
|**Ownership**| Owned by the user who created them | Owned by the repository owner |
62
+
|**Scope of changes**| Typically involve significant changes | Typically involve smaller changes |
63
+
|**Collaboration**| Used to develop ideas in isolation from the main team | Used to develop ideas that the main team is working on |
64
+
65
+
Based on SSW.Rules "Do you know when to create a fork vs a branch".
66
+
67
+
SSW.Rules. (n.d.). _Git - Do you know when to create a fork vs a branch?_[online] Available at: https://www.ssw.com.au/rules/fork-vs-branch/[Accessed 14 Mar. 2024].
68
+
23
69
## How to Fork
24
70
25
71
Forking is done within the GitHub Web GUI.
@@ -30,3 +76,4 @@ The basic process is:
30
76
- Read the ReadMe and any documentation on how to fork and contribute to the repository
0 commit comments