Skip to content

Latest commit

 

History

History
91 lines (60 loc) · 4.14 KB

CONTRIBUTING.md

File metadata and controls

91 lines (60 loc) · 4.14 KB

Contributing to Tirith (StackGuardian Policy Framework)

Thank you for taking the time to contribute! 🎉 Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

The following is a set of guidelines for contributing to Tirith on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

Join the StackGuardian Community

We'd love for you to join our community! Join our Slack to ask questions, share ideas, and connect with other contributors. Follow us on LinkedIn to stay updated on the latest news and announcements.

Contribution types

Report Bugs

We use GitHub issues to track bugs at https://github.com/stackguardian/tirith/issues. Please use Bug report issue template.

Fix Bugs and implement features

All contributions to solve GitHub issues tagged with "bug", "enhancement" and "help wanted" are most welcome and greatly appreciated.

Documentation

Trith could always use more documentation, whether as part of the official Tirith docs, in docstrings, or even on the web in blog posts, articles, and such.

Submit Feedback

Please use GitHub Discussions to submit feedback and engage with community StackGuardian/feedback#8.

Basic guidelines

Commits

  • Use the imperative, present tense («change», not «changed» or «changes») to be consistent with generated messages from commands like git merge.
  • Describe the changes you have made

Examples

Good example:

  • Commit Message:
    Add feature to calculate total monthly cost for AWS resources

  • Description:
    Implement a function that calculates the total monthly cost for AWS resources. Update the documentation to reflect this new feature.

    Why it’s Good:

    Clarity: Clearly states the action and the feature.
    Specificity: Specifies what the feature is and what it affects (AWS resources).
    Consistency: Uses imperative, present tense, aligning with best practices.

Bad Example:

  • Commit Message:
    Fixed some stuff
  • Description:
    Made changes to the code to fix issues. Updated a few things here and there. Why it’s Bad:

    Vague: Does not explain what was fixed.
    Lacks Detail: Provides no insight into what "stuff" refers to or how it was changed.
    Does not use imperitve present tense.

Pull Requests

  • Stay Updated: Make sure your PR is based on the latest code from the main branch.
  • Clear Title and Description: Try to include a clear, descriptive title and a detailed explanation of your changes.
  • Reference Issues: If applicable, link to related issues and PRs.
  • Pass Tests: Ensure all tests pass before submitting your PR.
  • Be Open to Feedback: We're all here to help each other improve, so please be open to feedback and ready to make adjustments.

Creating Issues

  • Search First: It helps to check if your problem or feature request has already been discussed before opening a new issue.
  • Be Detailed: When you open a new issue, providing as much detail as possible really helps. Feel free to use our templates for bugs and feature requests.
  • Be Respectful: Let's all be kind and considerate in our communication.

Solving Issues

  • Limit yourself to solving a maximum of four good first issues. Once you've reached this limit, consider tackling other types of issues.
  • Please work on only one issue at a time.
  • Please ask for assignee before working, and if there's no update for about a week on a particular issue, we'll remove the assignee.

Thank you for taking the time to help improve our project!

If you have commit access:

  • Do NOT use git push --force.
  • Do NOT commit to other contributor's branches without their consent.
  • Use Pull Requests if you are unsure and to suggest changes to other maintainers.