Skip to content
Myr

📝 Update and simplify docs about help and management (#1778)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by GitHub · parent 6a4d452 · Browse files · 5 files+31 added−351 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+31 added−351 removed

  • other:+31 added−351 removed

5 files+31 added−351 removed

deleted:data/members.yml-4 removed
modified:docs/help-typer.md+28 added-195 removed
deleted:docs/management-tasks.md-117 removed
1# Repository Management Tasks23These are the tasks that can be performed to manage the Typer repository by [team members](./management.md#team).45/// tip67This section is useful only to a handful of people, team members with permissions to manage the repository. You can probably skip it. 😉89///1011...so, you are a [team member of Typer](./management.md#team)? Wow, you are so cool! 😎1213You can help with everything on [Help Typer - Get Help](./help-typer.md) the same ways as external contributors. But additionally, there are some tasks that only you (as part of the team) can perform.1415Here are the general instructions for the tasks you can perform.1617Thanks a lot for your help. 🙇1819## Be Nice2021First of all, be nice. 😊2223You probably are super nice if you were added to the team, but it's worth mentioning it. 🤓2425### When Things are Difficult2627When things are great, everything is easier, so that doesn't need much instructions. But when things are difficult, here are some guidelines.2829Try to find the good side. In general, if people are not being unfriendly, try to thank their effort and interest, even if you disagree with the main subject (discussion, PR), just thank them for being interested in the project, or for having dedicated some time to try to do something.3031It's difficult to convey emotion in text, use emojis to help. 😅3233In discussions and PRs, in many cases, people bring their frustration and show it without filter, in many cases exaggerating, complaining, being entitled, etc. That's really not nice, and when it happens, it lowers our priority to solve their problems. But still, try to breath, and be gentle with your answers.3435Try to avoid using bitter sarcasm or potentially passive-aggressive comments. If something is wrong, it's better to be direct (try to be gentle) than sarcastic.3637Try to be as specific and objective as possible, avoid generalizations.3839For conversations that are more difficult, for example to reject a PR, you can ask me (@tiangolo) to handle it directly.4041## Edit PR Titles4243* Edit the PR title to start with an emoji from [gitmoji](https://gitmoji.dev/).44 * Use the emoji character, not the GitHub code. So, use `🐛` instead of `:bug:`. This is so that it shows up correctly outside of GitHub, for example in the release notes.45* Start the title with a verb. For example `Add`, `Refactor`, `Fix`, etc. This way the title will say the action that the PR does. Like `Add support for teleporting`, instead of `Teleporting wasn't working, so this PR fixes it`.46* Edit the text of the PR title to start in "imperative", like giving an order. So, instead of `Adding support for teleporting` use `Add support for teleporting`.47* Try to make the title descriptive about what it achieves. If it's a feature, try to describe it, for example `Add support for teleporting` instead of `Create TeleportAdapter class`.48* Do not finish the title with a period (`.`).4950Once the PR is merged, a GitHub Action ([latest-changes](https://github.com/tiangolo/latest-changes)) will use the PR title to update the latest changes automatically.5152So, having a nice PR title will not only look nice in GitHub, but also in the release notes. 📝5354## Add Labels to PRs5556The same GitHub Action [latest-changes](https://github.com/tiangolo/latest-changes) uses one label in the PR to decide the section in the release notes to put this PR in.5758Make sure you use a supported label from the [latest-changes list of labels](https://github.com/tiangolo/latest-changes#using-labels):5960* `breaking`: Breaking Changes61 * Existing code will break if they update the version without changing their code. This rarely happens, so this label is not frequently used.62* `security`: Security Fixes63 * This is for security fixes, like vulnerabilities. It would almost never be used.64* `feature`: Features65 * New features, adding support for things that didn't exist before.66* `bug`: Fixes67 * Something that was supported didn't work, and this fixes it. There are many PRs that claim to be bug fixes because the user is doing something in an unexpected way that is not supported, but they considered it what should be supported by default. Many of these are actually features or refactors. But in some cases there's an actual bug.68* `refactor`: Refactors69 * This is normally for changes to the internal code that don't change the behavior. Normally it improves maintainability, or enables future features, etc.70* `upgrade`: Upgrades71 * This is for upgrades to direct dependencies from the project, or extra optional dependencies, normally in `pyproject.toml`. So, things that would affect final users, they would end up receiving the upgrade in their code base once they update. But this is not for upgrades to internal dependencies used for development, testing, docs, etc. Those internal dependencies or GitHub Action versions should be marked as `internal`, not `upgrade`.72* `docs`: Docs73 * Changes in docs. This includes updating the docs, fixing typos. But it doesn't include changes to translations.74 * You can normally quickly detect it by going to the "Files changed" tab in the PR and checking if the updated file(s) starts with `docs/en/docs`. The original version of the docs is always in English, so in `docs/en/docs`.75* `internal`: Internal76 * Use this for changes that only affect how the repo is managed. For example upgrades to internal dependencies, changes in GitHub Actions or scripts, etc.7778/// tip7980Some tools like Dependabot, will add some labels, like `dependencies`, but have in mind that this label is not used by the `latest-changes` GitHub Action, so it won't be used in the release notes. Please make sure one of the labels above is added.8182///8384## Review PRs8586* If a PR doesn't explain what it does or why, if it seems like it could be useful, ask for more information. Otherwise, feel free to close it.8788* If a PR seems to be spam, meaningless, only to change statistics (to appear as "contributor") or similar, you can simply mark it as `invalid`, and it will be automatically closed.8990* If a PR seems to be AI generated, and seems like reviewing it would take more time from you than the time it took to write the prompt, mark it as `maybe-ai`, and it will be automatically closed.9192* A PR should have a specific use case that it is solving.9394* If the PR is for a feature, it should have docs.95 * Unless it's a feature we want to discourage, like support for a corner case that we don't want users to use.96* The docs should include a source example file, not write Python directly in Markdown.97* If the source example(s) file can have different syntax for different Python versions, there should be different versions of the file, and they should be shown in tabs in the docs.98* There should be tests testing the source example.99* Before the PR is applied, the new tests should fail.100* After applying the PR, the new tests should pass.101* Coverage should stay at 100%.102* If you see the PR makes sense, or we discussed it and considered it should be accepted, you can add commits on top of the PR to tweak it, to add docs, tests, format, refactor, remove extra files, etc.103* Feel free to comment in the PR to ask for more information, to suggest changes, etc.104* Once you think the PR is ready, move it in the internal GitHub project for me to review it.105106## Dependabot PRs107108Dependabot will create PRs to update dependencies for several things, and those PRs all look similar, but some are way more delicate than others.109110* If the PR is for a direct dependency, so, Dependabot is modifying `pyproject.toml` in the main dependencies, **don't merge it**. 😱 Let me check it first. There's a good chance that some additional tweaks or updates are needed.111* If the PR updates one of the internal dependencies, for example the group `dev` in `pyproject.toml`, or GitHub Action versions, if the tests are passing, the release notes (shown in a summary in the PR) don't show any obvious potential breaking change, you can merge it. 😎112113## Mark GitHub Discussions Answers114115When a question in GitHub Discussions has been answered, mark the answer by clicking "Mark as answer".116117You can filter discussions by [`Questions` that are `Unanswered`](https://github.com/fastapi/typer/discussions/categories/questions?discussions_q=category:Questions+is:open+is:unanswered).
modified:docs/management.md+3 added-34 removed
1---2include_yaml:3 - data/members.yml4---51# Repository Management23Here's a short description of how the Typer repository is managed and maintained.4
6 unmodified lines
11## Team1213There's a team of people that help manage and maintain the project. 😎1420They have different levels of permissions and [specific instructions](./management-tasks.md).15Learn more about it in [tiangolo.com - GitHub FastAPI](https://tiangolo.com/github-fastapi/).1622Some of the tasks they can perform include:17## External Help1824* Adding labels to PRs.25* Editing PR titles.26* Adding commits on top of PRs to tweak them.27* Mark answers in GitHub Discussions questions, etc.28* Merge some specific types of PRs.2930Joining the team is by invitation only, and I could update or remove permissions, instructions, or membership.3132### Team Members3334This is the current list of team members. 😎3536<div class="user-list user-list-center">37{% for user in members %}3839<div class="user"><a href="https://github.com/{{ user.login }}"><div class="avatar-wrapper"><img src="https://github.com/{{ user.login }}.png"/></div><div class="title">@{{ user.login }}</div></a></div>40{% endfor %}4142</div>4344Additional to them, there's a large community of people helping each other and getting involved in the projects in different ways.4546## External Contributions4748External contributions are very welcome and appreciated, including answering questions, submitting PRs, etc. 🙇‍♂️4950There are many ways to [help maintain Typer](./help-typer.md).19External help is very much appreciated. There are many ways to [help](./help-typer.md). ☕️
modified:mkdocs.yml-1 removed
155 unmodified lines
156 - "":157 - resources/index.md158 - help-typer.md159 - contributing.md160 - management-tasks.md160 - "":161 - about/index.md162 - alternatives.md163 - management.md
68 unmodified lines