-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Releases md #20
Releases md #20
Changes from all commits
bae9cdd
5b13533
b2bb0e8
93ce83a
59e2aef
87af53d
85933bd
c5eef28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
<!--One entry for each release describing the generic changes since the previous release.--> | ||
<!--One entry for each release describing the generic changes since the previous release. | ||
e.g. (sort most recent first) | ||
|
||
- 2020.03 | ||
- sfp-403_shorttitle_nl (first version) | ||
- sfp-403_shorttitle_en (first version) | ||
- 2020.02 | ||
- sfp-402_shorttitle_nl (update) | ||
- 2020.01 | ||
- sfp-402_shorttitle_nl (first version) | ||
--> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Creating a new release (guidelines for repo-admins) | ||
|
||
After review of a protocol-branch and before each release the following steps are necessary: | ||
|
||
|
||
1. with the protocol-branch checked-out: | ||
1. bump the version number in the `index.Rmd` yaml section from `yyyy.nn.dev` to `YYYY.NN`. Some examples: | ||
- a new protocol added in 2020 that was released in 2020 (fifth release in that year): `2020.00.dev` to `2020.05` | ||
- an update of the `2020.05` protocol in 2021 (first release in that year): `2020.05.dev` to `2021.01` | ||
hansvancalster marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- an update of the `2020.02` version of a protocol in the same year (fourth release in that year): `2020.02.dev` to `2020.04` | ||
1. update the `.zenodo.json` file: | ||
- add new authorships | ||
1. update the repo `NEWS.md` file | ||
1. merge the branch to the master and add general and specific tags (see [release model](README.md#release-model)): | ||
1. general tag: `protocols-YYYY.NN` | ||
1. specific tag: `protocol-code-YYYY.NN` | ||
Comment on lines
+14
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An idea for the protocolhelper package, because this step, and step 1 (version number update) is prone to errors? I.e. one or more functions to:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good ideas. I've made an issue of your comment inbo/protocolhelper#27 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 65687c6 |
||
1. Check if continuous integration proceeded without problems | ||
1. Make a GitHub release from the general tag | ||
1. Check success of publication steps at protocols.inbo.be and at Zenodo (records both source and rendered) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A further idea for the protocolhelper package, to start updating an existing protocol? A function that creates and checks out a new branch (protocol-specific), branching off from origin/master (even if one has not checked out master) after fetching origin/master. And also it adds ".dev" to the version number. No auto-committing though, but perhaps staging of the latter. It would just need the protocol code as an input.
Something like:
And then this git workflow, wrapped in
system()
or mimicked bygit2r
:Plus the adding of
.dev
(without committing, but perhaps already staged (git add X
)).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idemdito see inbo/protocolhelper#27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow now mentions the use of
checklist::new_branch()
(currently only in the renv-setup branch) which deals with most steps (except the final step) listed here. So I think we can just use that, possibly wrapped into a protocolhelper function to include the final step.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like a good idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ThierryO after checking the code of
checklist::new_branch
I noticed that https-protocol to talk to GitHub is not supported. So I guess only SSH is supported. That asks quite a lot of confusing setup-steps from often rather inexperienced Rusers who want to contribute to the protocolsource repo. Is this design decision fixed or can https be allowed. I can write an issue or a PR if I understand the code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reading this, it leaves me doubting a little about the preference for SSH.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several NARA colleagues are working with ssh for the latest two years now. So far, only one intervention needed. Due to somebody with a new computer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the steps (and even wrote a vignette for checklist with all steps), but when I try
checklist::new_branch()
(within my local clone of the checklist package I want to make a branch to commit the vignette), it fails with this error:This happens inside
checklist::clean_git()
. I have setgit remote set-url origin [email protected]:inbo/checklist.git
.I have no clue what I did wrong. On the other hand, I think issues such as these can be avoided by switching
git2r
functions to the equivalentgert
functions which has automatic authentication (and which would also allow both SSH and HTTPS).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching for
git2r
togert
is a major change. Something I cannot do on short notice. I'm willing to accept a PR .There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might give it a try, but it will also take some time...