Skip to content

Commit 9e8c35b

Browse files
authored
Merge pull request #394 from NLeSC/376_version_control
add version control to Best Practices chapter
2 parents d98f8d6 + c1bb8c6 commit 9e8c35b

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/link-checker-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
- name: Check all this file's additions for broken links
3636
run: |
3737
export base_sha=$(git rev-parse ${{ github.sha }}^)
38-
git diff -U0 ${base_sha} ${{ github.event.pull_request.head.sha }} -- ${{ matrix.file }} | grep -v "+++" | grep "^+" | cut -c 2- | ./lychee -
38+
git diff -U0 ${base_sha} ${{ github.event.pull_request.head.sha }} -- ${{ matrix.file }} | grep -v "+++" | grep "^+" | cut -c 2- | ./lychee --exclude nlesc.sharepoint.com -

.github/workflows/link-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
id: lychee
1717
with:
1818
# note: args has a long default value; when you override it, make sure you don't accidentally forget to include the default options you want! see https://github.com/lycheeverse/lychee-action/blob/master/action.yml
19-
args: --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --accept '100..=103,200..=299, 429'
19+
args: --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --accept '100..=103,200..=299, 429' --exclude nlesc.sharepoint.com
2020
env:
2121
# This token is included to avoid github.com requests to error out with status 429 (too many requests). It only works for GitHub requests (also other GitHub REST API calls), not for the rest of the web.
2222
GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}}

best_practices/overview.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ An easy way to make sure you did not forget anything important is to use a well
88
Great examples can be found via [FAIR Software NL](https://fair-software.nl/recommendations/checklist).
99
[The Turing Way](https://book.the-turing-way.org) has specific topical checklists at the end of each of their chapters.
1010

11+
## Version control
12+
13+
Use a version control tool like `git` to track changes in your codebase.
14+
This allows you to retrace your steps when debugging, keep your repository clean, easily collaborate with others asynchronously and more.
15+
More info: [The Turing Way chapter on Version Control](https://book.the-turing-way.org/reproducible-research/vcs), [RSQkit chapter on Version Control](http://everse.software/RSQKit/version_control).
16+
17+
**@ NLeSC:** we always use version control and we preferably use GitHub as our online repository and collaboration platform (see the [Project Management Protocol on our intranet](https://nlesc.sharepoint.com/sites/home/SitePages/Project-procedures.aspx)).
18+
1119
## Know your tools
1220

1321
In addition to the advice on the best practices above, knowing the

0 commit comments

Comments
 (0)