Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(contribution-guideline): Update contribution guidelines #4

Merged
merged 7 commits into from
Nov 6, 2023

Conversation

rodneyosodo
Copy link
Contributor

@rodneyosodo rodneyosodo commented Nov 6, 2023

Summary by CodeRabbit

  • New Features

    • Introduced a new look for the active state of buttons in the app.
  • Bug Fixes

    • Fixed the color dependency of SVG images on the isActive property.
  • Documentation

    • Added templates for bug reports, feature requests, and pull requests.
    • Introduced a Code of Conduct, contributing guidelines, a security policy, and a support guide.
  • Chores

    • Set up Dependabot for weekly updates.
    • Implemented continuous integration and spell check workflows.
  • Tests

    • Removed a test case checking the counter functionality of the app.

This commit updates the contribution guideline document for the project. The document now requires contributors to agree to distribute their work under the GNU GENERAL PUBLIC LICENSE. Additionally, it encourages improving comments, writing tests, and allows contributions of varying complexity.

The changes ensure that contributors are aware of the licensing requirements and provide clear guidelines for their contributions.

Signed-off-by: Rodney Osodo <[email protected]>
…l request guidelines, and spell check workflow script

- Added new files to directory
- Included code snippet for feature request template
- Made code changes in two files
- Provided guidelines for creating pull requests
- Added script for Flutter project with spell check workflow

Signed-off-by: Rodney Osodo <[email protected]>
The appearance of buttons and icons in the mobile application's control panel and home page has been modified to enhance visibility and improve usability. This change aims to make it easier for users to interact with the application.

A test has also been added to verify the functionality of the counter increment in the application.

No further details provided in the Git diff.

Signed-off-by: Rodney Osodo <[email protected]>
Added a new file SECURITY.md that provides information on how to report security vulnerabilities in the nairobi-traffic-pcb project. The file includes instructions on reporting vulnerabilities through GitHub issues and provides guidelines on the information to include in the report. This will help users and contributors to responsibly disclose security issues and ensure prompt response and resolution.

Signed-off-by: Rodney Osodo <[email protected]>
This commit adds a new SUPPORT.md file to provide guidelines and insights on where to find assistance with the nairobi-traffic-pcb projects. The file includes information on formulating questions, conducting searches, providing relevant code samples, and the importance of investing effort in framing questions effectively. It also includes a note to read the code of conduct before participating in the community.

The purpose of this commit is to improve the documentation and support resources for the project.

Signed-off-by: Rodney Osodo <[email protected]>
Copy link

coderabbitai bot commented Nov 6, 2023

Warning

Rate Limit Exceeded

@rodneyosodo has exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 12 minutes and 29 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per repository.
Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.
Please see our FAQ for further information.

Commits Files that changed from the base of the PR and between 5f28022 and 1d4a506.

Walkthrough

The project "nairobi-traffic-pcb" has undergone a series of enhancements, primarily focusing on improving the project's GitHub workflows and community health files. The changes include the addition of issue templates, Dependabot configuration, pull request template, GitHub Actions workflows, and community guidelines. Additionally, minor adjustments have been made to the mobile application's UI components.

Changes

File(s) Summary
.github/ISSUE_TEMPLATE/*.yml Added bug report and feature request templates.
.github/ISSUE_TEMPLATE/config.yml Configured issue templates and added a link to GitHub Discussions.
.github/dependabot.yml Added Dependabot configuration for weekly updates.
.github/pull_request_template.md Added a pull request template.
.github/workflows/*.yaml Added GitHub Actions workflows for continuous integration and spell checking.
CODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md, SUPPORT.md Added community health files including a code of conduct, contributing guidelines, a security policy, and a support guide.
mobile/.../mode_widget.dart, devices.dart Updated UI components in the mobile application.
mobile/.../widget_test.dart Removed a test case and its associated import statements.

Poem

🍂 As the leaves fall this November day, 🍁

In the world of code, we've found our way. 🌐

With templates and checks, and guidelines too, 📝

Our project's health is feeling brand new! 💪

From Nairobi's traffic to the PCB, 🚦

We've made changes for all to see. 👀

So here's to the coders, in light or in dark, 🌞🌚

Lighting up the world with their spark! 💥


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between e11ca61 and 5f28022.
Files selected for processing (14)
  • .github/ISSUE_TEMPLATE/bug_report.yml (1 hunks)
  • .github/ISSUE_TEMPLATE/config.yml (1 hunks)
  • .github/ISSUE_TEMPLATE/feature_request.yml (1 hunks)
  • .github/dependabot.yml (1 hunks)
  • .github/pull_request_template.md (1 hunks)
  • .github/workflows/ci.yaml (1 hunks)
  • .github/workflows/spell-check.yml (1 hunks)
  • CODE_OF_CONDUCT.md (1 hunks)
  • CONTRIBUTING.md (1 hunks)
  • SECURITY.md (1 hunks)
  • SUPPORT.md (1 hunks)
  • mobile/nairobitrafficpcb/lib/pages/control_panel/widgets/mode_widget.dart (1 hunks)
  • mobile/nairobitrafficpcb/lib/pages/home/widgets/devices.dart (1 hunks)
  • mobile/nairobitrafficpcb/test/widget_test.dart (1 hunks)
Files skipped from review due to trivial changes (9)
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .github/ISSUE_TEMPLATE/config.yml
  • .github/dependabot.yml
  • .github/pull_request_template.md
  • .github/workflows/ci.yaml
  • CONTRIBUTING.md
  • SECURITY.md
  • SUPPORT.md
  • mobile/nairobitrafficpcb/lib/pages/control_panel/widgets/mode_widget.dart
Additional comments: 4
CODE_OF_CONDUCT.md (1)
  • 1-128: The addition of a Code of Conduct is a good practice for open source projects. It sets the tone for how contributors should interact and what behavior is acceptable. This particular Code of Conduct is comprehensive and covers a wide range of scenarios. Ensure that all contributors are aware of this Code of Conduct and agree to abide by it.
.github/ISSUE_TEMPLATE/feature_request.yml (1)
  • 1-39: The feature request template is well-structured and covers all the necessary aspects of a feature request. It ensures that the user provides enough information for the developers to understand the request. The use of checkboxes and text areas makes the template interactive and easy to use. The validation requirements ensure that necessary information is not left out. The ability to attach files is a good addition as it allows users to provide additional context if necessary.
mobile/nairobitrafficpcb/test/widget_test.dart (1)
  • 5-12: The test case 'Counter increments smoke test' has been removed. Ensure that the functionality it was testing is either no longer needed or is covered by another test. If not, consider adding a new test case.
-  testWidgets('Counter increments smoke test', (WidgetTester tester) async {});
+  // Add new test case here if needed
mobile/nairobitrafficpcb/lib/pages/home/widgets/devices.dart (1)
  • 56-60: The color property of the SvgPicture.asset widget has been removed. This means that the SVG image will no longer change color based on the isActive property of the device object. Ensure that this change aligns with the intended design and user experience.
- SvgPicture.asset(
-   'assets/svg/light.svg',
-   color: device.isActive ? Colors.white : Colors.black,
-   height: 30,
- ),
+ SvgPicture.asset(
+   'assets/svg/light.svg',
+   height: 30,
+ ),

.github/workflows/spell-check.yml Outdated Show resolved Hide resolved
Updated the project directory path in the CI workflow to the correct location for the Flutter project. Previously, it was set to "nairobi-traffic-pcb" but it should be "mobile/nairobitrafficpcb" to match the actual project structure.

Signed-off-by: Rodney Osodo <[email protected]>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 5f28022 and 170fd48.
Files selected for processing (2)
  • .github/workflows/ci.yaml (1 hunks)
  • .github/workflows/spell-check.yml (1 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/ci.yaml
Additional comments: 1
.github/workflows/spell-check.yml (1)
  • 1-22: The spell check workflow looks good. It's triggered on push, pull request, schedule, workflow dispatch, and repository dispatch events. It uses the latest version of Ubuntu and the actions/checkout@v4 action to fetch the repository code. The codespell-project/actions-codespell@v2 action is used to perform spell checking.

Updated the version of actions-codespell from master to v2 in the spell-check workflow.

Signed-off-by: Rodney Osodo <[email protected]>
@rodneyosodo rodneyosodo merged commit 13b5665 into main Nov 6, 2023
3 checks passed
@rodneyosodo rodneyosodo deleted the contrib branch November 6, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant