Commit d775b92
authored
feat: implement
This Pull request implements the `submit-word` script; this script takes
`projectRepoDetails` and `forkedRepoDetails`, more... and the `word` we
intended submit to dictionary; its leverages the github pull request api
and creates a pull request using the changes found on the
`forkedRepoDetails`.
### Changes Made
- Implemented the `submitWord` function in the `submit-word` script;
this function performs the operations creating a pull request to merge
changes from a forked Repo to the main project Repo with the
`projectRepoDetails` and `forkedRepoDetails` params, using the
`userOctokit` instance which must've been pre-authenticated from session
auth token.
- Integrated the `devJargons` app to perform the action of adding the
label `📖 new|edit word` and `💻 via word-editor` to the PR signifying
that the PR was generated from the jargon.dev word-editor.
- Added and integrated a `New word` and `Edit word` PR template into the
`submitWord`; this template added to the `src/lib/templates` dir Exports
2 String i.e. word `title` and `content` which carries placeholders that
are replaced with real `word` data received as params by the
`submitWord` function at point of PR creation via the GitHub rest API.
### Screencast/Screenshot
[screencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.04.08-03_43_46.webm](https://github.com/babblebey/jargons.dev/assets/25631971/c39c0a16-9719-4749-99ad-bf66475d4d33)
📖submit-word script (#25)1 parent e4874c1 commit d775b92
5 files changed
Lines changed: 76 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments