Skip to content

Commit 5467587

Browse files
authored
Merge pull request #689 from citation-file-format/636-best-practices
Add best practices
2 parents 81ecc77 + b87190e commit 5467587

4 files changed

Lines changed: 144 additions & 6 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Pull request details
22

3+
As a contributor I confirm
4+
- [ ] I read and followed the instructions in [CONTRIBUTING.md](CONTRIBUTING.md)
5+
- [ ] The developer documentation is up to date with the changes introduced in this Pull Request
6+
- [ ] Tests are passing
7+
- [ ] All the workflows are passing
8+
39
## List of related issues or pull requests
410

5-
Refs: #ISSUE_NUMBER
11+
Refs:
12+
- #ISSUE_NUMBER
613

714

815
## Describe the changes made in this pull request

CODE_OF_CONDUCT.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
education, socio-economic status, nationality, personal appearance, race,
10+
religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project e-mail
52+
address, posting via an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
## Enforcement
57+
58+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
59+
reported by contacting the project team at generalization@esciencecenter.nl. All
60+
complaints will be reviewed and investigated and will result in a response that
61+
is deemed necessary and appropriate to the circumstances. The project team is
62+
obligated to maintain confidentiality with regard to the reporter of an incident.
63+
Further details of specific enforcement policies may be posted separately.
64+
65+
Project maintainers who do not follow or enforce the Code of Conduct in good
66+
faith may face temporary or permanent repercussions as determined by other
67+
members of the project's leadership.
68+
69+
## Attribution
70+
71+
72+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4,
73+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

CONTRIBUTING.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributing guidelines
2+
3+
We welcome any kind of contribution to our software, from simple comment or question to a full fledged [pull request](https://help.github.com/articles/about-pull-requests/). Please read and follow our Code of Conduct [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
4+
5+
A contribution can be one of the following cases:
6+
7+
- you have a question;
8+
- you think you may have found a bug (including unexpected behavior);
9+
- you want to make some kind of change to the code base (e.g. to fix a bug, to add a new feature, to update documentation).
10+
11+
The sections below outline the steps in each case.
12+
13+
## You have a question
14+
15+
- use the search functionality [here](https://github.com/citation-file-format/cff-initializer-javascript/issues) to see if someone already filed the same issue;
16+
- if your issue search did not yield any relevant results, make a new issue;
17+
18+
## You think you may have found a bug
19+
20+
- use the search functionality [here](https://github.com/citation-file-format/cff-initializer-javascript/issues) to see if someone already filed the same issue;
21+
- if your issue search did not yield any relevant results, make a new issue, making sure to provide enough information to the rest of the community to understand the cause and context of the problem. Depending on the issue, you may want to include:
22+
- the version of cffinit (bottom right in the app);
23+
- if you are using a development version, the [SHA hashcode](https://help.github.com/articles/autolinked-references-and-urls/#commit-shas) of the commit that is causing your problem;
24+
- some identifying information (name and version number) for dependencies you're using;
25+
- information about the operating system;
26+
27+
## You want to make some kind of change to the code base
28+
29+
- (**important**) announce your plan to the rest of the community *before you start working*. This announcement should be in the form of a (new) issue;
30+
- (**important**) wait until some kind of consensus is reached about your idea being implemented;
31+
- if needed, fork the repository to your own Github profile and create your own feature branch off of the latest main commit. While working on your feature branch, make sure to stay up to date with the main branch by pulling in changes, possibly from the 'upstream' repository (follow the instructions [here](https://help.github.com/articles/configuring-a-remote-for-a-fork/) and [here](https://help.github.com/articles/syncing-a-fork/);
32+
- read the [developer documentation](README.dev.md);
33+
- make sure the existing tests still work;
34+
- add your own tests (if necessary);
35+
- update or expand the developer documentation;
36+
- [push](http://rogerdudler.github.io/git-guide/) your feature branch to (your fork of) the cff-initializer-javascript repository on GitHub;
37+
- create the pull request, e.g. following the instructions [here](https://help.github.com/articles/creating-a-pull-request/);
38+
- verify that the GitHub workflows passed (if they don't, mark the PR as a draft while you fix it);
39+
- don't request reviews, the reviewer will assign them themselves.
40+
41+
If you don't know how to write or run tests or generate documentation, don't let this discourage you; we can help! Ask for help on the relevant issue so we can decide how to proceed.

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1404735.svg)](https://doi.org/10.5281/zenodo.1404735)
2-
3-
# cffinit: a web form to initialize CITATION.cff files
1+
# cffinit: a web application to create CITATION.cff files
42

5-
- Check out the **live version** [here](https://citation-file-format.github.io/cff-initializer-javascript/).
6-
- For the rationale behind CITATION.cff files, read [the blog](https://www.software.ac.uk/blog/2017-12-12-standard-format-citation-files).
3+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1404735.svg)](https://doi.org/10.5281/zenodo.1404735)
4+
[![Build](https://github.com/citation-file-format/cff-initializer-javascript/actions/workflows/ghpages.yml/badge.svg)](https://github.com/citation-file-format/cff-initializer-javascript/actions/workflows/ghpages.yml)
5+
[![Lint](https://github.com/citation-file-format/cff-initializer-javascript/actions/workflows/lint.yml/badge.svg)](https://github.com/citation-file-format/cff-initializer-javascript/actions/workflows/lint.yml)
6+
[![Test](https://github.com/citation-file-format/cff-initializer-javascript/actions/workflows/test.yml/badge.svg)](https://github.com/citation-file-format/cff-initializer-javascript/actions/workflows/test.yml)
7+
8+
## What cffinit can do for you?
9+
10+
When you made some software and you want to include instructions on how to cite it, CITATION.cff files are the answer. However, sometimes it's tricky to ensure you write valid CFF. This tool helps mitigate that problem by generating the CFF text using a web form with form validation and user feedback.
11+
12+
## Information for users
13+
14+
- Check out the **live version** at <https://citation-file-format.github.io/cff-initializer-javascript/>.
15+
- For the rationale behind CITATION.cff files, you can read more here:
16+
- <https://www.software.ac.uk/blog/2017-12-12-standard-format-citation-files>.
17+
- <https://blog.esciencecenter.nl/cffinit-now-is-the-time-to-get-more-recognition-for-your-software-e2e6ef617f8e>
18+
- <https://the-turing-way.netlify.app/communication/citable/citable-cffinit.html>
719
- For the Citation File Format specification, go [here](https://github.com/citation-file-format/citation-file-format) (latest) or [here](https://doi.org/10.5281/zenodo.1003149) (stable).
820
- For the Citation File Format home page, go [here](https://citation-file-format.github.io).
21+
22+
## Information for developers
23+
24+
- If you want to know how you can contribute, please have a look at [the current issues](https://github.com/citation-file-format/cff-initializer-javascript/issues) and read [CONTRIBUTING.md](CONTRIBUTING.md)
25+
- Developer documentation can be found in [README.dev.md](README.dev.md)

0 commit comments

Comments
 (0)