Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 90008d8

Browse files
Contributing.md - updating how to help
1 parent 477738f commit 90008d8

File tree

1 file changed

+61
-75
lines changed

1 file changed

+61
-75
lines changed

‎CONTRIBUTING.md‎

Lines changed: 61 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,87 @@
22

33
First of all, welcome! We're excited that you'd like to contribute. How would you like to help?
44

5-
* [I'd like to report a bug or request an enhancement](#how-to-report-bugs-or-request-enhancements)
6-
* [I'd like to write new T-SQL checks](#how-to-write-new-t-sql-checks)
7-
* [I'd like to fix bugs in T-SQL checks](#how-to-fix-bugs-in-existing-t-sql-checks)
8-
* [I'd like to test checks written by someone else](#how-to-test-checks-written-by-someone-else)
9-
* [I'd like to write or update documentation](#how-to-write-or-update-documentation)
10-
* [I don't know how to upload code to GitHub](https://www.brentozar.com/archive/2015/07/pull-request-101-for-dbas-using-github/)
5+
* [I'd like to report a bug](#how-to-report-bugs)
6+
* [I'd like someone else to build something](#how-to-request-features)
7+
* [I'd like to build a new feature myself](#how-to-build-features-yourself)
118

129
Everyone here is expected to abide by the [Contributor Covenant Code of Conduct](#the-contributor-covenant-code-of-conduct).
1310

1411
Wanna do something else, or have a question not answered here? Hop into Slack and ask us questions before you get started. [Get an invite to SQLCommunity.slack.com](https://sqlps.io/slack/), and we're in the [#FirstResponderKit channel](https://sqlcommunity.slack.com/messages/firstresponderkit/). We welcome newcomers, and there's always a way you can help.
1512

16-
## How to Report Bugs or Request Enhancements
13+
## How to Report Bugs
1714

18-
Check out the [Github issues list]. Search for what you're interested in - there may already be an issue for it. Make sure to search through closed issues, too, because we often decline things that aren't a good fit for these tools.
15+
Check out the [Github issues list]. Search for what you're interested in - there may already be an issue for it.
1916

20-
If you can't find a similar issue, go ahead and open your own. Include as much detail as you can - what you're seeing now, and what you'd like to see.
17+
Make sure to search through [closed issues list], too, because we may have already fixed the bug in the development branch. To try the most recent version of the code that we haven't released to the public yet, [download the dev branch version].
2118

22-
When requesting new checks, keep in mind that we want to focus on:
19+
If you can't find a similar issue, go ahead and open your own. Include as much detail as you can - what you're seeing now, and what you'd expect to see instead.
2320

24-
* Actionable warnings - SQL Server folks are usually overwhelmed with data, and we only want to report on things they can actually do something about
25-
* Performance issues or reliability risks - if it's just a setting we don't agree with, let's set that aside
26-
* Things that end users or managers will notice - if we're going to have someone change a setting on their system, we want it to be worth their time
21+
## How to Request Features
2722

28-
Now head on over to the [Github issues list] and get started.
23+
Open source is community-built software. Anyone is welcome to build things that would help make their job easier.
2924

30-
## How to Write New T-SQL Checks
25+
Open source isn't free development, though. Working on these scripts is hard work: they have to work on case-sensitive instances, and on all supported versions of SQL Server (currently 2008 through 2017.) If you just waltz in and say, "Someone please bake me a cake," you're probably not going to get a cake.
3126

32-
Before you code, check the [Github issues list] for what you're trying to do - there may already be an issue for it. Make sure to search through closed issues, too, because we often decline things that aren't a good fit for these tools.
27+
If you want something, you're going to either need to build it yourself, or convince someone else to devote their free time to your feature request. You can do that by sponsoring development (offering to hire a developer to build it for you), or getting people excited enough that they volunteer to build it for you.
3328

34-
If you've got a new idea that isn't covered in an existing issue, open a Github issue for it. Outline what you'd like to do, and how you'd like to code it. This just helps make sure other users agree that it's a good idea to add to these tools.
29+
And good news! Lots of people have contributed their code over time. Here's how to get started.
3530

36-
After a discussion, to start coding, [open a new Github branch.](https://www.brentozar.com/archive/2015/07/pull-request-101-for-dbas-using-github/) This lets you code in your own area without impacting anyone else. When your code is ready, test it on a case-sensitive instance of the oldest supported version of SQL Server (2008), and the newest version (2016).
31+
## How to Build Features Yourself
3732

38-
When it's ready for review, make a pull request, and one of the core contributors can check your work.
33+
First, discuss it with the community. Check the [Github issues list]and the [closed issues list] because folks may have tried it in the past, or the community may have decided it's not a good fit for these tools. (Classic example - sp_Blitz isn't a security auditing tool.)
3934

40-
## How to Fix Bugs in Existing T-SQL Checks
35+
If you can't find it in an existing issue, open a new Github issue for it. Outline what you'd like to do, why you'd like to do it, and optionally, how you'd think about coding it. This just helps make sure other users agree that it's a good idea to add to these tools. Other folks will respond to the idea, and if you get a warm reception, go for it!
4136

42-
(stub)
37+
After your Github issue has gotten good responses from a couple of volunteers who are willing to test your work, get started by forking the project and working on your own server. The Github instructions are below - it isn't exactly easy, and we totally understand if you're not up for it. Thing is, we can't take code contributions via text requests - Github makes it way easier for us to compare your work versus the changes other people have made, and merge them all together.
4338

44-
## How to Test Checks Written by Someone Else
39+
### Git Flow for pull requests
40+
<a name="git-flow"></a>
4541

46-
(stub)
42+
1.[Fork] the project, clone your fork, and configure the remotes:
4743

48-
* Test only on case-sensitive instances. A surprising number of folks out there run on these.
49-
* Test on as many currently-supported versions of SQL Server as possible. At minimum, test on the oldest version (currently 2008), and the newest version (currently 2016).
44+
```bash
45+
# Clone your fork of the repo into the current directory
46+
git clone git@github.com:<YOUR_USERNAME>/SQL-Server-First-Responder-Kit.git
47+
# Navigate to the newly cloned directory
48+
cd SQL-Server-First-Responder-Kit
49+
# Assign the original repo to a remote called "upstream"
50+
git remote add upstream https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/
51+
```
5052

51-
## How to Write or Update Documentation
53+
2. If you cloned a while ago, get the latest changes from upstream:
5254

53-
(stub)
55+
```bash
56+
git checkout master
57+
git pull upstream master
58+
```
59+
60+
3. Create a new topic branch (off the main project development branch) to
61+
contain your feature, change, or fix:
62+
63+
```bash
64+
git checkout -b <topic-branch-name>
65+
```
66+
67+
4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines]
68+
or your code is unlikely be merged into the main project. Use Git's [interactive rebase]
69+
feature to tidy up your commits before making them public.
70+
71+
5. Locally merge (or rebase) the upstream development branch into your topic branch:
72+
73+
```bash
74+
git pull [--rebase] upstream master
75+
```
76+
77+
6. Push your topic branch up to your fork:
78+
79+
```bash
80+
git push origin <topic-branch-name>
81+
```
82+
83+
7. [Open a Pull Request] with a clear title and description.
84+
85+
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to license your work under the MIT [LICENSE]
5486

5587
## The Contributor Covenant Code of Conduct
5688

@@ -102,60 +134,14 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
102134
available at [http://contributor-covenant.org/version/1/4][version]
103135

104136

105-
## Git Flow for pull requests
106-
<a name="git-flow"></a>
107-
108-
1. [Fork] the project, clone your fork, and configure the remotes:
109-
110-
```bash
111-
# Clone your fork of the repo into the current directory
112-
git clone git@github.com:<YOUR_USERNAME>/SQL-Server-First-Responder-Kit.git
113-
# Navigate to the newly cloned directory
114-
cd SQL-Server-First-Responder-Kit
115-
# Assign the original repo to a remote called "upstream"
116-
git remote add upstream https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/
117-
```
118-
119-
2. If you cloned a while ago, get the latest changes from upstream:
120-
121-
```bash
122-
git checkout master
123-
git pull upstream master
124-
```
125-
126-
3. Create a new topic branch (off the main project development branch) to
127-
contain your feature, change, or fix:
128-
129-
```bash
130-
git checkout -b <topic-branch-name>
131-
```
132-
133-
4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines]
134-
or your code is unlikely be merged into the main project. Use Git's [interactive rebase]
135-
feature to tidy up your commits before making them public.
136-
137-
5. Locally merge (or rebase) the upstream development branch into your topic branch:
138-
139-
```bash
140-
git pull [--rebase] upstream master
141-
```
142-
143-
6. Push your topic branch up to your fork:
144-
145-
```bash
146-
git push origin <topic-branch-name>
147-
```
148-
149-
7. [Open a Pull Request] with a clear title and description.
150-
151-
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to license your work under the MIT [LICENSE]
152-
153137

154138
[homepage]: http://contributor-covenant.org
155139
[version]: http://contributor-covenant.org/version/1/4/
156140
[Github issues list]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues
141+
[closed issues list]: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues?q=is%3Aissue+is%3Aclosed
157142
[Fork]:https://help.github.com/articles/fork-a-repo/
158143
[git commit message guidelines]:http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
159144
[interactive rebase]:https://help.github.com/articles/about-git-rebase/
160145
[Open a Pull Request]:https://help.github.com/articles/about-pull-requests/
161146
[LICENSE]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/blob/master/LICENSE.md
147+
[download the dev branch version]: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/archive/dev.zip

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /