1
0
mirror of https://codeberg.org/fediverse/fep.git synced 2026-08-05 11:46:04 +00:00
Files
fep/scripts/README.md
T

63 lines
1.3 KiB
Markdown
Raw Normal View History

2023-07-16 07:43:02 +00:00
# tools for fep editors
Please follow the steps in configuration before following "Merge a FEP".
## Merge a FEP
Merge the Pull Request in [https://codeberg.org/fediverse/fep/pulls](https://codeberg.org/fediverse/fep/pulls)
and note the slug.
```bash
python scripts/create_issue.py $SLUG
```
2023-09-06 17:59:44 +00:00
creates the tracking issue and updates the FEP with the information.
Then run
2023-07-16 07:43:02 +00:00
```bash
python scripts/create_readme.py
```
to update the table in `README.md`. You are now ready to commit the
2023-09-06 17:59:44 +00:00
changes to the FEP (added `discussionsTo` to frontmatter) and README.md,
2023-07-16 07:43:02 +00:00
added the new FEP.
Run
```bash
python scripts/create_topic.py $SLUG
```
and following the instructions to create a topic on SocialHub to discuss
the FEP.
2023-09-06 17:59:44 +00:00
Finally, add the link to the SocialHub topic to the tracking issue, created above.
2023-07-16 07:43:02 +00:00
## Configuration
Add a file `config.json` to the directory `scripts` with content
```json
{
"repo": "fep",
"owner": "fediverse",
"token": "CODEBERG_API_TOKEN"
}
```
2023-09-06 17:59:44 +00:00
The API token can be obtained by visiting [https://codeberg.org/user/settings/applications](https://codeberg.org/user/settings/applications) and generating one with scope `write:issue`.
2023-07-16 07:43:02 +00:00
## Setup for running pytest
Ensure dependencies (use a virtualenv)
```bash
pip install pytest
```
Check validity
```bash
pytest
```