Skip to content

Commit

Permalink
Merge pull request #360 from mvz/update-contributing
Browse files Browse the repository at this point in the history
Update contribution guidelines
  • Loading branch information
mvz authored Jul 5, 2024
2 parents d5602a0 + 0074892 commit 0d53de4
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Contributing to GirFFI

I welcome all contributions to GirFFI. Below are some guidelines to
help the process of handling issues and pull requests go smoothly.
I welcome contributions to GirFFI. Please follow the guidelines below to help the
process of handling issues and pull requests
go smoothly.

## Issues

Expand All @@ -14,31 +15,42 @@ ticket.
- Describe what you are trying to achieve
- Describe what you did, preferably including relevant code
- Describe what you expected to happen
- Describe what happened instead, possibly including relevant output
- Describe what happened instead. Include relevant output if possible
- State the version of GirFFI you are using
- Use [code blocks](https://github.github.com/gfm/#fenced-code-blocks) to
format any code and output in your ticket to make it readable.

## Pull requests
## Pull Requests

If you have an idea for a particular feature, it's probably best to create a
GitHub issue for it before trying to implement it yourself. That way, we can
discuss the feature and whether it makes sense to include in GirFFI itself
before putting in the work to implement it.

To send pull requests or patches, please follow the instructions below.
**If you get stuck, please make a pull request anyway and I'll try to
help out.**
When sending a pull request, please follow **all of** the instructions below:

- Make sure `rake test` runs without reporting any failures.
- Add tests for your feature. Otherwise, I can't see if it works or if I
break it later.
- Make sure `bundle exec rake` runs without reporting any failures. See
*Testing your changes* below for more details.
- Add tests for your feature. Otherwise, I can't see if it works or if I break
it later.
- Create a separate branch for your feature based off of latest master.
- Write [good commit messages][1].
- Write [good commit messages](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
- Do not include changes that are irrelevant to your feature in the same
commit.
- Keep an eye on the build results in GitHub Actions. If the build fails and it
seems due to your changes, please update your pull request with a fix.

If you're not sure how to test the problem, or what the best solution is, or
get stuck on something else, please open an issue first so that we can discuss
the best approach.

### Testing your changes

You can run the test suite with the latest version of all dependencies by running the following:

- Run `bundle install` if you haven't done so already, or `bundle update` to update the dependencies
- Run `bundle exec rake` to run the tests

### The review process

- I will try to review your pull request as soon as possible but I can make no
Expand All @@ -47,15 +59,14 @@ help out.**
during the review process.
If you are unsure how to do this,
[this in-depth guide](https://git-rebase.io/) should help out.
- I don't do squash merges, so you if you have any unclear commit messages,
work-in-progress commits, or commits that just fix a mistake in a previous
commits, I will ask you to clean up the history.
- If you have any unclear commit messages, work-in-progress commits, or commits
that just fix a mistake in a previous commit, I will ask you to clean up the
history.
Again, [the git-rebase guide](https://git-rebase.io/) should help out.
- At the end of the review process I may still choose not to merge your pull
request. For example, this could happen if I decide the proposed feature
Note that I will not squash-merge pull requests, since that results in a loss of history.
- **At the end of the review process I may still choose not to merge your pull
request.** For example, this could happen if I decide the proposed feature
should not be part of GirFFI, or if the technical implementation does not
match where I want to go with the architecture the project.
match where I want to go with the architecture of the project.
- I will generally not merge any pull requests that make the build fail, unless
it's very clearly not related to the changes in the pull request.

[1]: https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

0 comments on commit 0d53de4

Please sign in to comment.