Skip to content

Commit fcb6ddd

Browse files
authored
Merge pull request #177 from RobLBaker/main
add CONTRIBUTING.md file
2 parents 6921287 + 9cb6d6e commit fcb6ddd

9 files changed

+446
-36
lines changed

CONTRIBUTING.md

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
---
2+
title: "CONTRIBUTING"
3+
output: html_document
4+
---
5+
6+
# Contributing to CONTRIBUTING.md
7+
8+
First off, thanks for taking the time to contribute!
9+
10+
All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions.
11+
12+
> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
13+
> - Star the project
14+
> - Refer this project in your project's readme
15+
> - Mention the project at local meetups and tell your friends/colleagues
16+
> - Cite these packages in your published works
17+
18+
## Table of Contents
19+
20+
- [I Have a Question](#i-have-a-question)
21+
- [I Want To Contribute](#i-want-to-contribute)
22+
- [Reporting Bugs](#reporting-bugs)
23+
- [Suggesting Enhancements](#suggesting-enhancements)
24+
- [Your First Code Contribution](#your-first-code-contribution)
25+
- [Improving The Documentation](#improving-the-documentation)
26+
- [Styleguides](#styleguides)
27+
- [Commit Messages](#commit-messages)
28+
- [Join The Project Team](#join-the-project-team)
29+
30+
31+
## I Have a Question
32+
33+
> If you want to ask a question, we assume that you have read the available [Documentation](https://nationalparkservice.github.io/EMLeditor/).
34+
35+
Before you ask a question, it is best to search for existing [Issues](https://github.com/nationalparkservice/EMLeditor/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
36+
37+
If you then still feel the need to ask a question and need clarification, we recommend the following:
38+
39+
- Open an [Issue](https://github.com/nationalparkservice/EMLeditor/issues/new/choose).
40+
- Provide as much context as you can about what you're running into.
41+
- Provide project and platform versions , depending on what seems relevant.
42+
43+
We will then take care of the issue as soon as possible.
44+
45+
46+
47+
## I Want To Contribute
48+
49+
> ### Legal Notice
50+
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
51+
52+
### Reporting Bugs
53+
54+
55+
#### Before Submitting a Bug Report
56+
57+
A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
58+
59+
- Make sure that you are using the latest version.
60+
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://nationalparkservice.github.io/EMLeditor/). If you are looking for support, you might want to check [this section](#i-have-a-question)).
61+
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/nationalparkservice/EMLeditor/issues/new/choose).
62+
- Also make sure to search the internet to see if users outside of the GitHub community have discussed the issue.
63+
- Collect information about the bug:
64+
- Stack trace (Traceback)
65+
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
66+
- Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
67+
- Possibly your input and the output
68+
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?
69+
70+
71+
#### How Do I Submit a Good Bug Report?
72+
73+
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to robert_baker@nps.gov.
74+
75+
76+
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
77+
78+
- Open an [Issue](https://github.com/nationalparkservice/EMLeditor/issues/new/choose). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
79+
- Explain the behavior you would expect and the actual behavior.
80+
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case. See [https://gist.github.com/hadley/270442](https://gist.github.com/hadley/270442) for a great run down on how to create reproducible examples.
81+
- Provide the information you collected in the previous section.
82+
83+
Once it's filed:
84+
85+
- The project team will label the issue accordingly.
86+
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
87+
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags, and the issue will be left to be implemented by someone on the development team. You may also address the issue yourself and issue a pull request, which will be reviewed by the development team.
88+
89+
### Suggesting Enhancements
90+
91+
This section guides you through submitting an enhancement **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
92+
93+
94+
#### Before Submitting an Enhancement
95+
96+
- Make sure that you are using the latest version.
97+
- Read the [documentation](https://nationalparkservice.github.io/EMLeditor/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
98+
- Perform a [search](https://github.com/nationalparkservice/EMLeditor/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
99+
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library or package.
100+
- Please consult with the developers if you would like to create an add-on package. Maybe we can help!
101+
102+
103+
#### How Do I Submit a Good Enhancement Suggestion?
104+
105+
Enhancement suggestions are tracked as [GitHub issues](https://github.com/nationalparkservice/EMLeditor/issues).
106+
107+
- Use a **clear and descriptive title** for the issue to identify the suggestion.
108+
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
109+
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
110+
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
111+
- **Explain why this enhancement would be useful** to most users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
112+
113+
### Your First Code Contribution
114+
If you would like to contribute code please make the adjustments and issue a pull request. The development team will review your code prior to merging and pull request. Before issuing a pull request make sure:
115+
1) You have added a description of any changes made to the changelog in NEWS.md
116+
2) If you have added a function, make sure you also include unit tests that cover the function. If you have changed a function, make sure the unit tests still pass.
117+
3) If you have added or changed a function, make sure that the package loads using `devtools::load_all()`.
118+
2) You have updated any necessary documentation using `devtools::document()`
119+
3) You have updated the associated web pages using `pkgdown::build_site_github_pages()`
120+
4) You have checked that there are no errors or warnings when the package is built using `devtools::check()`.
121+
122+
## Styleguides
123+
We encourage the use of the [tidyverse style guide](https://style.tidyverse.org/).
124+
125+
### Commit Messages
126+
Commit messages should be short and descriptive.
127+
128+
129+
## Attribution
130+
This guide is based on the **contributing.md**. [Make your own](https://contributing.md/)!

NEWS.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# EMLeditor v1.0.1(under development)
2+
## 2025-02-22
3+
* Add `CONTRIBUTING.md` file
4+
25
## 2025-02-06
36
* Bug fix in `set_int_rights` that was affecting CC0 licenses.
47

58
# EMLeditor v1.0.0
69
## 2025-01-16
710
* Fix bug in `set_project` and update associated documentation.
11+
812
## 2024-11-04
913
* Fix documentation in EMLscript code chunk that can make it difficult/confusing to enter user input after running the `upload_data_package` function.
14+
1015
## 2024-10-23
1116
* updates and fixes to documentation including spelling, grammar, and clarity
1217
* remove non-exported functions from documentation
@@ -15,6 +20,7 @@
1520
# EMLeditor v0.1.6
1621
## 2024-09-17
1722
* Update `set_content_units` to have correct east and west GPS coordinates for bounding boxes.
23+
1824
## 2024-08-29
1925
* Update readme: add R-CMD-CHECK badge; use pak to install instead of devtools
2026
* Update licenseName field on restricted references to read, "Unlicensed (not for public dissemination)"
@@ -23,23 +29,31 @@
2329
* update `set_project` so that it adds projects instead of replacing them.
2430
* update `set_project` to use cli errors/warnings
2531
* add minimal unit test for `set_project`
32+
2633
## 2024-08-21
2734
* add id tag to projects to help DataStore identify DataStore projects vs. other projects.
35+
2836
## 2024-08-20
2937
* add helper.R file with a test_path function to facilitate unit tests
3038
* update unit test code to run both interactively and during build checks
3139
* add yaml file to conduct github actions: build test
40+
3241
## 2024-07-10
3342
* add in the new function `set_project()` and attempt to update existing function, `set_protocol()`.
3443
* update license from MIT to CC0.
44+
3545
## 2024-07-02
3646
* updated all API requests to user v6 API instead of v7.
47+
3748
## 2024-07-01
3849
* Updated `.get_park_polygon()` to use the latest version of the API rather than a legacy version.
50+
3951
## 2024-06-26
4052
* Added new function, `set_new_creator()` which can add one or more creators to EML.
53+
4154
## 2024-05-01
4255
* Fix documentation: typo/formatting for the description of `set_int_rights()` in the EML Creation Script github.io page.
56+
4357
## 2024-04-29
4458
* Bug fix for `set_cui()` deprecation message: now points to the correct updated function (`set_cui_code()`).
4559

@@ -94,16 +108,17 @@
94108

95109
## 06 October 2023
96110
* Updated `set_datastore_doi()` and `upload_data_package()` functions to allow them to work with IRMA dev for testing and training purposes.
97-
* Updated `upload_data_package()` to prevent file upload if the reference already has files associated with it.
111+
* Updated `upload_data_package()` to prevent file upload if the reference already has files associated with it.
98112

99113
# EMLeditor v0.1.1 "Big South Fork"
100114

101115
## 29 August 2023
102-
Updated all rest API services from v4/v5 to v6. Units services remain at v2.
116+
* Updated all rest API services from v4/v5 to v6. Units services remain at v2.
103117

104118
## 15 August 2023
105119
* Fix bugs in `get_authors()`
106120
* Fix bugs in `get_abstract()`
121+
107122
## 19 July 2023
108123
* Fix examples in `set_creator_orgs()`
109124
* Add function `set_methods()` allows user to add or replace existing methods sections.
@@ -114,8 +129,10 @@
114129
## 12 July 2023
115130
* Add global variable bindings
116131
* Fix how set_creator_orcids handles orcids; now takes a 19-char string as input and saves orcid as a 37-char string with "https://orcid.org/" prefix.
132+
117133
## 10 July 2023
118134
* Fixed minor typos in EML creation script.
135+
119136
## 30 June 2023
120137
* Added a "park_units" parameter to `set_creator_orgs()`. This takes a park unit (or list of park units) and uses the IRMA units service to populate the organizationName with the FullName of the park_unit specified. If you specify park_units, you cannot also specify "creator_orgs" - non-park unit organizations must be added as creators using a separate call to `set_creator_orgs()` (and the creators can subsequently be reorganized using `set_creator_order()`).
121138

0 commit comments

Comments
 (0)