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

DRAFT: doc: update commit message guideline in Contributing page #265 #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sun-mota
Copy link
Contributor

@sun-mota sun-mota commented Oct 31, 2024

Alaska Airlines Pull Request

Fixes: #265

Summary:

A little cleaner explanation on prefix and level association

Type of change:

Please delete options that are not relevant.

  • New capability
  • Revision of an existing capability
  • Infrastructure change (automation, etc.)
  • Other (please elaborate)

Checklist:

  • My update follows the CONTRIBUTING guidelines of this project
  • I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.

Thank you for your submission!

-- Auro Design System Team

Summary by Sourcery

Documentation:

  • Revise the commit message guidelines in the CONTRIBUTING.md file to provide clearer instructions on prefix and level association for Conventional Commits.

A little cleaner explanation on prefix and level association
@sun-mota sun-mota self-assigned this Oct 31, 2024
@sun-mota sun-mota requested a review from a team as a code owner October 31, 2024 22:39
Copy link
Contributor

sourcery-ai bot commented Oct 31, 2024

Reviewer's Guide by Sourcery

The PR updates the Contributing guidelines to provide a clearer and more structured explanation of the conventional commits system. The changes focus on improving readability and organization of the commit message guidelines, particularly around version level associations (MAJOR, MINOR, PATCH) and commit types.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Restructured the conventional commits documentation
  • Improved formatting and organization of version level sections (MAJOR, MINOR, PATCH)
  • Added explicit examples for each version level
  • Clarified the requirements for triggering a MAJOR version update
.github/CONTRIBUTING.md
Enhanced the commit types documentation
  • Converted commit types list to a more detailed table format
  • Added version level associations for each commit type
  • Reorganized commit types by version impact
.github/CONTRIBUTING.md
Improved the Git commit message guidelines section
  • Simplified the imperative mood examples
  • Reformatted the commit message structure explanation
  • Streamlined the 'If applied, this commit will...' examples
.github/CONTRIBUTING.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sun-mota sun-mota linked an issue Oct 31, 2024 that may be closed by this pull request
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @sun-mota - I've reviewed your changes - here's some feedback:

Overall Comments:

  • The documentation for MAJOR version releases needs correction. Any commit type can trigger a MAJOR version when accompanied by a BREAKING CHANGE footer - it's not limited to or required to use the 'perf:' prefix. Please update this to avoid confusion.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@sun-mota sun-mota changed the title doc: update commit message guideline in Contributing page #265 DRAFT: doc: update commit message guideline in Contributing page #265 Oct 31, 2024
Comment on lines +99 to +101
Clean your room
Close the door
Take out the trash
Copy link
Member

Choose a reason for hiding this comment

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

Removing the - turns this into a single string

Clean your room Close the door Take out the trash A properly formed Git commit subject line should always be able to complete the following sentence:
Suggested change
Clean your room
Close the door
Take out the trash
- Clean your room
- Close the door
- Take out the trash

For a MAJOR release, you MUST follow this template. The use of `perf:` and `BREAKING CHANGE:` are needed in order to push a major release.
To trigger a **MAJOR** version update, use the following structure:

- **Prefix with `perf:`**
Copy link
Member

Choose a reason for hiding this comment

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

This prefix is not strictly required. The commit must preface with either perf, fix or feat

| Type | Description | Version Level |
|------------------|---------------------------------------------------------------------------------------------------------------|---------------|
| `perf` | Code change that improves performance | MAJOR |
| **`BREAKING CHANGE`** | Non-backward compatible change (must be in the body, not in title) | MAJOR |
Copy link
Member

Choose a reason for hiding this comment

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

this isn't actually a commit type that you preface a commit with.

Comment on lines +88 to +89
| `refactor` | Code change that neither fixes a bug nor adds a feature | PATCH |
| `style` | Code changes that don't affect logic (whitespace, formatting, etc.) | PATCH |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| `refactor` | Code change that neither fixes a bug nor adds a feature | PATCH |
| `style` | Code changes that don't affect logic (whitespace, formatting, etc.) | PATCH |
| `refactor` | Code change(s) that neither fixes a bug nor adds a feature | PATCH |
| `style` | Code change(s) that don't affect logic (whitespace, formatting, etc.) | PATCH |

| `fix` | Bug fixes | PATCH |
| `refactor` | Code change that neither fixes a bug nor adds a feature | PATCH |
| `style` | Code changes that don't affect logic (whitespace, formatting, etc.) | PATCH |
| `test` | Adds or corrects tests | PATCH |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| `test` | Adds or corrects tests | PATCH |
| `test` | Adds or corrects test(s) | PATCH |


Imperative mood simply means _“spoken or written as if giving a command or instruction”_. A few examples are:
Once you have completed your feature update, please commit all changes to the branch. All commit messages should use an imperative mood.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Once you have completed your feature update, please commit all changes to the branch. All commit messages should use an imperative mood.
Once you have completed your code change, commit all changes to a development branch. All commit messages should use an imperative mood.

Comment on lines +99 to +101
Clean your room
Close the door
Take out the trash
Copy link
Member

Choose a reason for hiding this comment

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

These should start lower case

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.

Update Contributing page more straight forward
3 participants