Contributing
Thank you for your interest in contributing to Truth Satellite API! This guide outlines how to report issues, submit pull requests, and contribute code while maintaining security and best practices.
πΉ How to Contribute
β Report Bugs & Issues β Open a GitHub issue for any problems. β Suggest Features β Request improvements or new functionalities. β Submit Code Contributions β Fork the repository and submit a pull request. β Improve Documentation β Help enhance API documentation and SDKs.
πΉ Reporting Issues
Before submitting an issue, please: β Check if the issue has already been reported. β Provide clear, detailed descriptions of the problem. β Include API endpoint, request parameters, and response examples if relevant.
π¨ Issue Submission Format
### Issue Title: API returns incorrect response for `/facts`
**Description:**
When requesting financial intelligence using `/facts?category=finance`, the response occasionally includes unrelated data.
**Steps to Reproduce:**
1. Call `/facts?category=finance`
2. Observe unexpected entries in the response
**Expected Behavior:**
The response should contain only finance-related intelligence reports.
πΉ Code Contribution Guidelines
β Follow the existing code structure and naming conventions. β Ensure all new features include relevant unit tests. β Write clear commit messages explaining the purpose of changes. β Keep pull requests small and focused (one feature or fix at a time).
π¨ Git Commit Message Format
feat(api): Added support for AI-powered risk assessment queries
πΉ Submitting a Pull Request (PR)
Before submitting a PR: β Ensure all changes are thoroughly tested. β Reference the related GitHub issue in your PR description. β Follow the projectβs code style guidelines. β Do not include API keys or sensitive data in PRs.
π¨ Creating a Pull Request
git checkout -b feature-new-api-endpoint
git commit -m "feat(api): Added support for advanced filters in intelligence queries"
git push origin feature-new-api-endpoint
πΉ Code Style Guidelines
β Use PEP 8 (Python) for formatting Python code. β Use ESLint rules (JavaScript) for JavaScript contributions. β Maintain consistent indentation (4 spaces for Python, 2 spaces for JS). β Avoid unnecessary dependencies and keep code lightweight.
π¨ Python Code Style (PEP 8 Compliant)
class TruthAPI:
def __init__(self, api_key):
self.api_key = api_key
self.base_url = "https://api.truthsatellit.space"
def get_facts(self, category="general", limit=10):
headers = {"Authorization": f"Bearer {self.api_key}"}
response = requests.get(f"{self.base_url}/facts", headers=headers, params={"category": category, "limit": limit})
return response.json()
πΉ Running Tests Locally
Before submitting code, run tests to ensure stability.
π¨ Code Example: Running Python Tests
pytest tests/
πΉ Security Disclosures
If you discover a security vulnerability, DO NOT report it in a public GitHub issue. Instead, immediately contact: π© security@truthsatellit.space
Security issues should be reported privately to prevent exploits before fixes are released.
πΉ Contact & Support
For general questions or assistance with contributions: π© Email: support@truthsatellit.space π Website: https://truthsatellit.space
Last updated