Skip to content
Browse files

Update various contributing documents and GitHub configuration

* Add --no-cov to instructions on running specific tests

* Update contributing document

Fix label references, take into account recent GitHub features, rewrite the Code section.

* Make better use of standard GitHub file locations

* Configure issue templates
  • Loading branch information
novemberborn committed Jan 19, 2020
1 parent 5a33572 commit 998397671fcaf46e83a88775150a58c02b62c890
File renamed without changes.
@@ -0,0 +1,72 @@
# Contributing to AVA

✨ Thanks for contributing to AVA! ✨

Please note that this project is released with a [Contributor Code of Conduct]( By participating in this project you agree to abide by its terms.

Translations: [Español](, [Français](, [Italiano](, [日本語](, [Português](, [Русский](, [简体中文](

## How can I contribute?

### Improve documentation

As a user of AVA you're the perfect candidate to help us improve our documentation. Typo corrections, error fixes, better explanations, more examples, etc. Open issues for things that could be improved. [Help translate our docs.]( Anything. Even improvements to this document.

Use the [`scope:documentation` label]( to find suggestions for what we'd love to see more documentation on.

### Improve issues

Some issues are created with missing information, not reproducible, or plain invalid. Help make them easier to resolve. Handling issues takes a lot of time that we could rather spend on fixing bugs and adding features.

### Give feedback on issues

We're always looking for more opinions on discussions in the issue tracker. It's a good opportunity to influence the future direction of AVA.

The [`needs triage`]( and [`question`]( labels are a good place to find ongoing discussions.

### Help out

You can use issue labels to discover issues you could help out with:

* [`blocked` issues]( need help getting unstuck
* [`bug` issues]( are known bugs we'd like to fix
* [`enhancement` issues]( are features we're open to including
* [`performance` issues]( track ideas on how to improve AVA's performance

The [`help wanted`]( and [`good for beginner`]( labels are especially useful.

You may find an issue is assigned. Please double-check before starting on this issue because somebody else is likely already working on it.

We'd like to fix [`priority` issues]( first. We'd love to see progress on [`low-priority` issues]( too. [`future` issues]( are those that we'd like to get to, but not anytime soon. Please check before working on these since we may not yet want to take on the burden of supporting those features.

Read on for tips on contributing code.

### Hang out in our chat

We have a [chat]( Jump in there and lurk, talk to us, and help others.

## Contributing code

Once you find an issue you'd like to work on leave a comment so others are aware. We'll then assign you to the issue.

Of course you can work on things that do not yet have an issue. However if you're going to be putting in a lot of effort it's best to discuss it first.

When you're ready to get feedback on your work, open a [draft pull request]( It's fine if the work's not yet done, but please do let us know what's remaining. This lets reviewers know not to nit-pick small details or point out improvements you already know you need to make.

Reviewing large pull requests can take a lot of time. Time that may not always be available. Smaller pull requests may land more quickly. If you're introducing a new feature think about how it might be broken up. It's OK to land features as [opt-in experiments]( These require less documentation and test coverage.

Try and avoid making breaking changes. Those take more time to ship. Instead make the new behavior opt-in. This way your feature can ship, and you can use it, on its own schedule.

Non-experimental features should be accompanied with tests and documentation.

Don't include unrelated changes in your pull request. Make sure tests pass on your machine by running `npm test`. You can run specific test files as well using `npx tap --no-cov test/{file}.js`.

When you make a pull request please use a clear and descriptive title. Be specific about what's changed and why.

Please make sure the *Allow edits from maintainers* box is checked. That way we can make certain minor changes ourselves, allowing your pull request to be merged sooner.

You might be asked to make changes to your pull request. There's never a need to open another pull request. Push more commits to your existing branch. We'll squash them when we merge the PR.

Dependencies are managed using `npm`. Only update dependencies when needed for your pull request. Don't rebuild the lockfile.

And finally, have fun!
@@ -0,0 +1,15 @@
name: Bug Report
about: If something isn't working the way you expect it to
labels: needs triage

Please provide details about:

* What you're trying to do
* What happened
* What you expected to happen

Please share relevant sample code. Or better yet, provide a link to a [minimal reproducible example](

We'll also need your AVA configuration (in `package.json` or `ava.config.*` configuration files) and how you're invoking AVA. Share the installed AVA version (get it by running `npx ava --version`).
@@ -0,0 +1,11 @@
blank_issues_enabled: false
- name: Babel
about: Ask about using Babel with AVA
- name: AVA on Spectrum
about: Ask questions and discuss in our Spectrum community
- name: Stack Overflow
about: Tag your question on Stack Overflow
@@ -0,0 +1,11 @@
name: Feature Request
about: Suggestions for new or different behavior.
labels: question

Please provide details about:

* What you're trying to do
* Why you can't use AVA for this
* And maybe how you think AVA could handle this

This file was deleted.

This file was deleted.

This file was deleted.

@@ -2,12 +2,12 @@

## Conduct

**Be kind to everyone.** Read and adhere to the [Code of Conduct](
**Be kind to everyone.** Read and adhere to the [Code of Conduct](.github/

## Testing

* `npm test`: Lint the code and run the entire test suite with coverage.
* `npx tap test/fork.js --bail`: Run a specific test file and bail on the first failure (useful when hunting bugs).
* `npx tap --no-cov test/fork.js --bail`: Run a specific test file and bail on the first failure (useful when hunting bugs).

## CI

@@ -32,7 +32,7 @@ Speaking of, using newer TypeScript features could be considered a breaking chan
## Pull requests

* New features should come with tests and documentation.
* Ensure the [contributing guidelines]( are followed.
* Ensure the [contributing guidelines](.github/ are followed.
* Squash commits when merging.

## Experiments
@@ -7,7 +7,7 @@ Testing can be a drag. AVA helps you get it done. AVA is a test runner for Node.

Follow the [AVA Twitter account]( for updates.

Read our [contributing guide]( if you're looking to contribute (issues / PRs / etc).
Read our [contributing guide](.github/ if you're looking to contribute (issues / PRs / etc).


0 comments on commit 9983976

Please sign in to comment.
You can’t perform that action at this time.