You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/Contributing.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ So please read this guide before contributing. Thanks :)
12
12
<br><br><br><br>
13
13
14
14
## Submitting or editing jokes:
15
-
To submit a joke manually, you can use the form on [this page.](https://sv443.net/jokeapi/v2/#submit)
16
-
To submit it through code, you can make use of the ["submit" endpoint.](https://sv443.net/jokeapi/v2/#submit-endpoint)
15
+
To submit a joke manually, you can use the form on [this page.](https://v2.jokeapi.dev/#submit)
16
+
To submit it through code, you can make use of the ["submit" endpoint.](https://v2.jokeapi.dev/#submit-endpoint)
17
17
18
18
If you instead want to *edit* a joke, you can find them in the `jokes-xy.json` files in [`data/jokes/`](../data/jokes/)
19
19
Please then follow the [code contribution section](#submitting-code) as well.
@@ -27,10 +27,13 @@ Keep in mind, though, that I will not remove jokes based on opinions as that wou
27
27
1.[Read the Code_of_Conduct.md file](./Code_of_Conduct.md) (TLDR: just behave in a friendly manner).
28
28
2.[Click here](https://github.com/Sv443/JokeAPI/fork) to fork the repository. Afterwards, clone or download it and locate the folder where it is contained.
29
29
3. Make the changes you want to make to the code.
30
-
4. Run the script `npm run all` which will run these three commands:
30
+
4. Run the script `npm run all` which will run these four commands:
31
31
-`npm run validate-jokes` to make sure all jokes are formatted correctly.
32
32
-`npm run validate-ids` to verify that all jokes have the correct ID.
33
33
-`npm run lint` to check the code for any warnings or errors.
34
+
-`npm run dep-graph` to generate a new dependency graph.
35
+
-`npm run generate-changelog` to generate a Markdown changelog out of the plaintext one.
36
+
-`npm run test`, which runs the unit tests for JokeAPI. If you are colorblind, you can run the command `npm run test-colorblind` (will turn green into cyan and red into magenta).
34
37
5. Run JokeAPI locally by running the command `node JokeAPI`, request some jokes and test the areas you modified / added to make sure everything still works.
35
38
6. Add yourself to the `contributors` object in the [`package.json`](../package.json) file :)
36
39
<!-- - **If it doesn't exist or is empty** please add it using the second format on [this website](https://flaviocopes.com/package-json/#contributors) -->
@@ -56,7 +59,7 @@ If you want to submit a translation, please follow these steps:
56
59
## Other nice-to-know stuff:
57
60
- I really recommend using [Visual Studio Code](https://code.visualstudio.com/) with the extension [`fabiospampinato.vscode-highlight`](https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-highlight) - it will add custom styling to the syntax highlighting in the editor and make the code easier to read and work with.
58
61
- If you want to generate a dependency graph, you need to install [Graphviz](https://graphviz.gitlab.io/download/) and add the path to the `bin` folder to your `%PATH%` / `$PATH` environment vaiable. Then, run the command `npm run dependency-graph` and open the file [`dev/dependency-graph.html`](../dev/dependency-graph.html) in a browser.
59
-
- If you need to add an authorization token, you can generate one or multiple tokens with the command `npm run add-token [amount]`. If you omit the "amount" parameter, the script will generate a single token. After you run the command, the tokens will be listed in the console and you can now (after restarting JokeAPI) use it in the `Authorization` header to gain unlimited access to JokeAPI.
62
+
- If you need to add an authorization token, you can generate one or multiple tokens with the command `npm run add-token [amount]`. If you omit the "amount" parameter, the script will generate a single token. After you run the command, the tokens will be listed in the console and you can now (after restarting JokeAPI) use it in the `Authorization` header to gain unlimited access to JokeAPI[(better explanation here).](https://jokeapi.dev/#api-tokens)
about: Request your project to be added to the dependent lists in the readme and documentation or suggest an edit to a dependent
4
+
title: 'New dependent: '
5
+
labels: ⚙️ dependent
6
+
assignees: Sv443
7
+
8
+
---
9
+
10
+
<!--
11
+
If this issue is approved, your project will be added to these dependent lists:
12
+
- https://jokeapi.dev/#dependents
13
+
- https://github.com/Sv443/JokeAPI#readme (scroll down all the way)
14
+
-->
15
+
16
+
## Link to the project:
17
+
<!-- Add a single URL to the dependent project here -->
18
+
```
19
+
https://github.com/example/My_Project
20
+
```
21
+
22
+
23
+
<br><br>
24
+
25
+
## Link to my personal website / GitHub page (optional):
26
+
<!-- Add a single URL to your website or GitHub page (or something similar) here -->
27
+
```
28
+
https://github.com/example
29
+
```
30
+
31
+
32
+
<br><br>
33
+
34
+
## Is your project explicit or unsafe for minors to view?
35
+
<!-- Please check the option that fits your project (add an x between the square brackets or submit the issue, then click the checkbox) -->
36
+
-[ ]**Yes**, it contains explicit material
37
+
-[ ]**No**, it doesn't contain explicit material
38
+
39
+
40
+
<br><br>
41
+
42
+
## Notes:
43
+
<!-- If you only want your project to show up on one of the dependent lists or you have some other thing you need the developer(s) to know, put it in this section -->
44
+
45
+
46
+
47
+
<br><br>
48
+
49
+
## Checklist:
50
+
-[ ] I have added my project's name to the title of this issue
51
+
-[ ] I have filled out at least the first URL (second one is optional)
52
+
-[ ] I have specified whether or not my project is explicit
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,12 @@
18
18
<!-- Add some screenshots here, if applicable -->
19
19
20
20
## Checklist
21
-
-[ ] I have read the [Contributing Guide](https://github.com/Sv443/JokeAPI/blob/master/.github/Contributing.md)
22
-
-[ ] I read and accept the [Code of Conduct](https://github.com/Sv443/JokeAPI/blob/master/.github/Code_of_Conduct.md) (TLDR: just behave in a friendly manner)
21
+
-[ ] I have read and followed the [Contributing Guide](https://github.com/Sv443/JokeAPI/blob/master/.github/Contributing.md)
22
+
-[ ] I have read and accept the [Code of Conduct](https://github.com/Sv443/JokeAPI/blob/master/.github/Code_of_Conduct.md) (TLDR: just behave in a friendly manner)
23
23
-[ ] My code follows the general style of this project
24
24
-[] I have commented my code, particularly in hard-to-understand areas
25
25
-[] I have made corresponding changes to the documentation (if applicable)
26
26
-[ ] I ensured that the automated checks that ran on this PR have completed successfully
27
-
-[ ] I added myself to the `package.json` file (optional)
27
+
-[ ] I added myself to the `package.json` file (optional but highly encouraged :)
28
+
29
+
**^ Not completing the checklist or ignoring what it says will invalidate your contribution and may even ban you from contributing altogether ^**
To report a vulnerability or security issue, please directly contact me via [Email](mailto:sven.fehler@web.de) or [Discord](https://sv443.net/discord).
4
+
To report a vulnerability or security issue, please directly contact me via [Email](mailto:contact@sv443.net) or [Discord](https://sv443.net/discord).
5
5
Please **do not** create a GitHub issue!
6
6
7
7
## Supported Versions
8
8
These versions are still supported and will be receiving security updates:
0 commit comments