Skip to content

Commit 9d7511b

Browse files
authored
Merge pull request #4843 from github/clarified_contribution
Cleans up and clarifies gitignore contribution guidelines
2 parents 7247090 + d475389 commit 9d7511b

File tree

3 files changed

+44
-43
lines changed

3 files changed

+44
-43
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### Link to the application or project's homepage
2+
3+
_TODO_
4+
<!---
5+
Link to the project or application's homepage.
6+
--->
7+
18
### Reasons for making this change
29

310
_TODO_
@@ -8,16 +15,22 @@ Please provide some background for this change.
815
### Links to documentation supporting these rule changes
916

1017
_TODO_
11-
1218
<!---
13-
Link to the project docs, any existing .gitignore files that project may have in it's own repo, etc
19+
Link to the project docs, any existing .gitignore files that project may have in its own repo, etc
1420
--->
1521

1622
### If this is a new template
1723

1824
Link to application or project’s homepage: TODO
1925

2026
### Merge and Approval Steps
21-
- [ ] Confirm that you've read the [contribution guidelines](https://github.com/github/gitignore/tree/main?tab=readme-ov-file#contributing-guidelines) and ensured your PR aligns
22-
- [ ] Ensure CI is passing
23-
- [ ] Get a review and Approval from one of the maintainers
27+
28+
<!---
29+
Please ensure you accomplish these tasks in order to get your contribution accepted
30+
--->
31+
- [ ] I have read the [contribution guidelines](https://github.com/github/gitignore/tree/main?tab=readme-ov-file#contributing-guidelines) and understand my PR will be closed if it doesn't meet these guidelines
32+
33+
<!---
34+
Once done, please wait for a GitHub maintainer to review your PR and if necessary,
35+
work with them to address any findings.
36+
--->

CONTRIBUTING.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,46 @@
22

33
We’d love you to help us improve this project. To help us keep this collection
44
high quality, we request that contributions adhere to the following guidelines.
5+
Any contributions that don't meet these guidelines will be closed.
56

67
- **Provide a link to the application or project’s homepage**. Unless it’s
78
extremely popular, there’s a chance the maintainers don’t know about or use
89
the language, framework, editor, app, or project your change applies to.
910

11+
- **Provide a reason for making this change**. Even if it seems self-evident,
12+
please take a sentence or two to tell us why your change or addition should
13+
happen. It’s especially helpful to articulate why this change applies to
14+
*everyone* who works with the applicable technology, rather than just you or
15+
your team.
16+
1017
- **Provide links to documentation** supporting the change you’re making.
1118
Current, canonical documentation mentioning the files being ignored is best.
1219
If documentation isn’t available to support your change, do the best you can
1320
to explain what the files being ignored are for.
1421

15-
- **Explain why you’re making a change**. Even if it seems self-evident, please
16-
take a sentence or two to tell us why your change or addition should happen.
17-
It’s especially helpful to articulate why this change applies to *everyone*
18-
who works with the applicable technology, rather than just you or your team.
19-
20-
- **Please consider the scope of your change**. If your change specific to a
21-
certain language or framework, then make sure the change is made to the
22-
template for that language or framework, rather than to the template for an
23-
editor, tool, or operating system.
22+
- **Keep scope as limited as possible**. Changes should be as small as possible
23+
and apply to the most specific gitignore template available for the target
24+
application. For example: OS-specific ignore rules like `.DS_Store` are not
25+
accepted anywhere but their specific gitignore, `Global/macOS.gitignore` in
26+
this case.
2427

25-
- **Please only modify *one template* per pull request**. This helps keep pull
28+
- **Only modify *one template* per pull request**. This helps keep pull
2629
requests and feedback focused on a specific project or technology.
2730

31+
- **Add new rules to the most appropriate existing section**. Please ensure
32+
your contribution does not create duplicate sections or add rules in
33+
unrelated sections.
34+
35+
- **No duplicate rules**. It's easy to do, but it creates confusion and
36+
introduces the risk of one or the other being missed in an update.
37+
2838
In general, the more you can do to help us understand the change you’re making,
2939
the more likely we’ll be to accept your contribution quickly.
3040

3141
If a template is mostly a list of files installed by a particular version of
3242
some software (e.g. a PHP framework) then it's brittle and probably no more
3343
helpful than a simple `ls`. If it's not possible to curate a small set of
34-
useful rules, then the template might not be a good fit for this collection.
44+
useful rules, then the template is not a good fit for this collection.
3545

3646
Please also understand that we can’t list every tool that ever existed.
3747
Our aim is to curate a collection of the *most common and helpful* templates,

README.md

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ We support a collection of templates, organized in this way:
3636

3737
## What makes a good template?
3838

39+
First and foremost, a template contribution must adhere to our
40+
[Contributing Guidelines](CONTRIBUTING.md).
41+
3942
A template should contain a set of rules to help Git repositories work with a
4043
specific programming language, framework, tool or environment.
4144

@@ -61,33 +64,7 @@ include your language, tool, or project, it’s not because it’s not awesome.
6164

6265
## Contributing guidelines
6366

64-
We’d love for you to help us improve this project. To help us keep this collection
65-
high quality, we request that contributions adhere to the following guidelines.
66-
67-
- **Provide a link to the application or project’s homepage**. Unless it’s
68-
extremely popular, there’s a chance the maintainers don’t know about or use
69-
the language, framework, editor, app, or project your change applies to.
70-
71-
- **Provide links to documentation** supporting the change you’re making.
72-
Current, canonical documentation mentioning the files being ignored is best.
73-
If documentation isn’t available to support your change, do the best you can
74-
to explain what the files being ignored are for.
75-
76-
- **Explain why you’re making a change**. Even if it seems self-evident, please
77-
take a sentence or two to tell us why your change or addition should happen.
78-
It’s especially helpful to articulate why this change applies to _everyone_
79-
who works with the applicable technology, rather than just you or your team.
80-
81-
- **Please consider the scope of your change**. If your change is specific to a
82-
certain language or framework, then make sure the change is made to the
83-
template for that language or framework, rather than to the template for an
84-
editor, tool, or operating system.
85-
86-
- **Please only modify _one template_ per pull request**. This helps keep pull
87-
requests and feedback focused on a specific project or technology.
88-
89-
In general, the more you can do to help us understand the change you’re making,
90-
the more likely we’ll be to accept your contribution quickly.
67+
Please see our [Contributing Guidelines](CONTRIBUTING.md).
9168

9269
## Versioned templates
9370

@@ -153,3 +130,4 @@ by automatically forking the project and prompting to send a pull request too.
153130
## License
154131

155132
[CC0-1.0](./LICENSE).
133+

0 commit comments

Comments
 (0)