-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/public' into edits/fetch-wallet-changes
- Loading branch information
Showing
23 changed files
with
421 additions
and
824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules | |
.idea/ | ||
.env | ||
.history/ | ||
.env.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
k8s/ | ||
pnpm-lock.yaml | ||
**/*.mdx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,167 @@ | ||
# Contribution Guidelines | ||
|
||
This Documentation cannot be built without your skills and knowledge. | ||
Contributions to this repository are welcome. As a contributor, here are the guidelines we would like you to follow: | ||
|
||
- [Code of Conduct](#coc) | ||
- [Question or Problem?](#question) | ||
- [Issues and Bugs](#issue) | ||
- [Feature Requests](#feature) | ||
- [Submission Guidelines](#submit) | ||
- [Coding Rules](#rules) | ||
- [Commit Message Convention](#commit) | ||
- [Merging Pull Requests](#merge) | ||
|
||
## <a name="coc"></a> Code of Conduct | ||
|
||
<!-- markdown-link-check-disable --> | ||
|
||
Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md). | ||
|
||
<!-- markdown-link-check-enable --> | ||
|
||
## <a name="question"></a> Question or Problem? | ||
|
||
Ideally reach out to us on the dev-advocacy-slack channel. | ||
<!-- markdown-link-check-disable --> | ||
|
||
## <a name="issue"></a> Found a Bug? Or something missing? | ||
Please use [GitHub Discussions](https://github.com/fetchai/uAgents/discussions) for support related questions and general discussions. Do NOT open issues as they are for bug reports and feature requests. This is because: | ||
|
||
If there is something not right, whether it be the code, grammar or worse a broken link open up an issue and we'll allocate time to fix in upcomming sprints. You of course can also [submit a Pull Request](#submit-pr) with a fix. | ||
<!-- markdown-link-check-enable --> | ||
|
||
- Questions and answers stay available for public viewing so your question/answer might help someone else. | ||
- GitHub Discussions voting system ensures the best answers are prominently visible. | ||
|
||
## <a name="issue"></a> Found a Bug? | ||
|
||
If you find a bug in the source code [submit a bug report issue](#submit-issue). | ||
Even better, you can [submit a Pull Request](#submit-pr) with a fix. | ||
|
||
## <a name="feature"></a> Missing a Feature? | ||
|
||
You can _request_ a new feature by creating a feature request issue. | ||
You can _request_ a new feature by [submitting a feature request issue](#submit-issue). | ||
If you would like to _implement_ a new feature: | ||
|
||
- For a **Major Feature**, first [open an issue](#submit-issue) and outline your proposal so that it can be discussed. | ||
- **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr). | ||
|
||
## <a name="submit"></a> Submission Guidelines | ||
|
||
### <a name="submit-issue"></a> Submitting an Issue | ||
|
||
<!-- markdown-link-check-disable --> | ||
|
||
Before you submit an issue, please search the [issue tracker](https://github.com/fetchai/uAgents/issues). An issue for your problem might already exist and the discussion might inform you of workarounds readily available. | ||
|
||
For bug reports, it is important that we can reproduce and confirm it. For this, we need you to provide a minimal reproduction instruction (this is part of the bug report issue template). | ||
|
||
You can file new issues by selecting from our [new issue templates](https://github.com/fetchai/uAgents/issues/new/choose) and filling out the issue template. | ||
|
||
<!-- markdown-link-check-enable --> | ||
|
||
### <a name="submit-pr"></a> Submitting a Pull Request (PR) | ||
|
||
Before you submit your Pull Request (PR) consider the following guidelines: | ||
|
||
1. All Pull Requests should be based off of and opened against the `main` branch. | ||
|
||
<!-- markdown-link-check-disable --> | ||
|
||
2. Search [Existing PRs](https://github.com/fetchai/uAgents/pulls) for an open or closed PR that relates to your submission. | ||
You don't want to duplicate existing efforts. | ||
<!-- markdown-link-check-enable --> | ||
|
||
3. Be sure that an issue exists describing the problem you're fixing, or the design for the feature you'd like to add. | ||
|
||
<!-- markdown-link-check-disable --> | ||
|
||
4. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the [repository](https://github.com/fetchai/uAgents). | ||
<!-- markdown-link-check-enable --> | ||
|
||
5. In your forked repository, make your changes in a new git branch created off of the `main` branch. | ||
|
||
6. Make your changes, **including test cases and documentation updates where appropriate**. | ||
|
||
7. Follow our [coding rules](#rules). | ||
|
||
<!-- markdown-link-check-disable --> | ||
|
||
8. Run all tests and checks locally, as described in the [development guide](DEVELOPING.md), and ensure they pass. This saves CI hours and ensures you only commit clean code. | ||
<!-- markdown-link-check-enable --> | ||
|
||
9. Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit). | ||
|
||
10. Push your branch to GitHub. | ||
|
||
11. In GitHub, send a pull request to `fetchai:main`. | ||
|
||
#### Reviewing a Pull Request | ||
|
||
<!-- markdown-link-check-disable --> | ||
|
||
The repository maintainers reserve the right not to accept pull requests from community members who haven't been good citizens of the community. Such behavior includes not following our [code of conduct](CODE_OF_CONDUCT.md) and applies within or outside the managed channels. | ||
|
||
<!-- markdown-link-check-enable --> | ||
|
||
When you contribute a new feature, the maintenance burden is transferred to the core team. This means that the benefit of the contribution must be compared against the cost of maintaining the feature. | ||
|
||
#### Addressing review feedback | ||
|
||
If we ask for changes via code reviews then: | ||
|
||
1. Make the required updates to the code. | ||
|
||
2. Re-run the tests and checks to ensure they are still passing. | ||
|
||
3. Create a new commit and push to your GitHub repository (this will update your Pull Request). | ||
|
||
#### After your pull request is merged | ||
|
||
After your pull request is merged, you can safely delete your branch and pull the changes from the (upstream) repository. | ||
|
||
## <a name="rules"></a> Coding Rules | ||
|
||
To ensure consistency throughout the source code, keep these rules in mind as you are working: | ||
|
||
<!-- markdown-link-check-disable --> | ||
|
||
- All code must pass our code quality checks (linters, formatters, etc). See the [development guide](DEVELOPING.md) section for more detail. | ||
<!-- markdown-link-check-enable --> | ||
|
||
- All features **must be tested** via unit-tests and if applicable integration-tests. Bug fixes also require tests, because the presence of bugs usually indicates insufficient test coverage. Tests help to: | ||
|
||
1. Prove that your code works correctly, and | ||
2. Guard against future breaking changes and lower the maintenance cost. | ||
|
||
- All public features **must be documented**. | ||
- Keep API compatibility in mind when you change any code. Above version `1.0.0`, breaking changes can happen across versions with different left digit. Below version `1.0.0`, they can happen across versions with different middle digit. Reviewers of your pull request will comment on any API compatibility issues. | ||
|
||
## <a name="commit"></a> Commit Message Convention | ||
|
||
This project uses Conventional Commits to generate release notes and to determine versioning. Please follow the [Conventional Commits v1.0.0](https://www.conventionalcommits.org/en/v1.0.0/). The commit types must be one of the following: | ||
|
||
- **chore**: Commits that don't directly add features, fix bugs, or refactor code, but rather maintain the project or its surrounding processes. | ||
- **ci**: Changes to our CI configuration files and scripts | ||
- **docs**: Changes to the documentation | ||
- **feat**: A new feature | ||
- **fix**: A bug fix | ||
- **refactor**: A code change that neither fixes a bug nor adds a feature | ||
- **test**: Adding missing tests or correcting existing tests | ||
- **revert**: Reverts a previous commit that introduced an issue or unintended change. This essentially undoes a previous commit. | ||
- **style**: Changes that only affect code formatting or style, without affecting functionality. This ensures consistency and readability of the codebase. | ||
- **perf**: Changes that improve the performance of the project. | ||
|
||
Commit messages should adhere to this standard and be of the form: | ||
|
||
```bash | ||
git commit -m "feat: add new feature x" | ||
git commit -m "fix: fix bug in feature x" | ||
git commit -m "docs: add documentation for feature x" | ||
git commit -m "test: add test suite for feature x" | ||
``` | ||
|
||
Further details on `conventional commits` can be found [here](https://www.conventionalcommits.org/en/v1.0.0/). | ||
|
||
## <a name="merge"></a> Merging Pull Requests | ||
|
||
## <a name="submit-issue"></a> Updating Docs: | ||
When merging a branch, PRs should be squashed into one conventional commit by selecting the `Squash and merge` option. This ensures Release notes are useful and readable when releases are created. | ||
|
||
Please create a branch from master, update or add files into the directory you think they're best placed. Open a PR, and someone from the docs team will review. | ||
See [Merge strategies](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#squash-and-merge-your-commits) from the official GitHub documentation. |
Oops, something went wrong.