Skip to content

Commit 8cd93d0

Browse files
authored
fix: Fix broken links in readme file (#6)
1 parent 5fbac8d commit 8cd93d0

File tree

4 files changed

+50
-1
lines changed

4 files changed

+50
-1
lines changed

.github/workflows/development.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: 🧹 Run lint
3333
run: yarn lint
3434

35+
- name: 🔗 Run check links
36+
run: yarn run check-links
37+
3538
- name: 🐛 Run tests
3639
run: yarn test:coverage
3740

CONTRIBUTING.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Contributing
2+
3+
Thanks for being willing to contribute!
4+
5+
**Working on your first Pull Request?** You can learn how from this _free_
6+
series [How to Contribute to an Open Source Project on GitHub][egghead]
7+
8+
## Project setup
9+
10+
1. Fork and clone the repo
11+
2. Run `yarn install` to install dependencies
12+
3. Create a branch for your PR with `git checkout -b pr/your-branch-name`
13+
14+
> Tip: Keep your `main` branch pointing at the original repository and make pull
15+
> requests from branches on your fork. To do this, run:
16+
>
17+
> ```
18+
> git remote add upstream https://github.com/thedaviddias/gatsby-source-notion-article.git
19+
> git fetch upstream
20+
> git branch --set-upstream-to=upstream/main main
21+
> ```
22+
>
23+
> This will add the original repository as a "remote" called "upstream," Then
24+
> fetch the git information from that remote, then set your local `main` branch
25+
> to use the upstream main branch whenever you run `git pull`. Then you can make
26+
> all of your pull request branches based on this `main` branch. Whenever you
27+
> want to update your version of `main`, do a regular `git pull`.
28+
29+
## Committing and Pushing changes
30+
31+
Please make sure to run the tests before you commit your changes. You can run
32+
`yarn run test` to run Jest or `yarn run test:watch` on watch mode. Make
33+
sure to include those changes (if they exist) in your commit.
34+
35+
## Help needed
36+
37+
Please checkout the [the open issues][issues]
38+
39+
Also, please watch the repo and respond to questions/bug reports/feature
40+
requests! Thanks!
41+
42+
[egghead]: https://app.egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
43+
[all-contributors]: https://github.com/all-contributors/all-contributors
44+
[issues]: https://github.com/thedaviddias/gatsby-source-notion-article/issues

CONTRIBUTION.md

Whitespace-only changes.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
"author": "David Dias <hello@thedaviddias.dev>",
1818
"scripts": {
1919
"build": "babel src --out-dir dist/ --ignore \"src/__tests__\" --ignore \"src/mockData\" --extensions \".ts\"",
20+
"check-links": "git ls-files | grep md$ | xargs -n 1 markdown-link-check",
2021
"lint": "eslint --fix --ext .ts,.js --max-warnings 0",
2122
"prepare": "cross-env NODE_ENV=production npm run build && npm run typegen",
22-
"test": "jest",
23+
"test": "jest ./src",
2324
"test:coverage": "npm test -- --coverage --watchAll=false ./src",
2425
"test:watch": "jest --watchAll ./src",
2526
"typecheck": "tsc",
@@ -55,6 +56,7 @@
5556
"jest": "26.6.3",
5657
"jest-cli": "26.6.3",
5758
"json-stringify-safe": "5.0.1",
59+
"markdown-link-check": "3.8.7",
5860
"nock": "13.0.11",
5961
"prettier": "2.3.0",
6062
"semantic-release": "17.4.3",

0 commit comments

Comments
 (0)