Skip to content

Improve conventionnal commits#5

Merged
baxyz merged 4 commits into
mainfrom
improve-conventionnal-commits
May 4, 2026
Merged

Improve conventionnal commits#5
baxyz merged 4 commits into
mainfrom
improve-conventionnal-commits

Conversation

@baxyz

@baxyz baxyz commented May 3, 2026

Copy link
Copy Markdown
Contributor

Description

Please include a summary of what this PR does and why it's needed.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring
  • Test improvement

Related Issues

Closes #(issue number)

How Has This Been Tested?

Describe the tests you ran and how to reproduce them:

  • Test A
  • Test B

Checklist

  • My code follows the code style of this project
  • I have updated the documentation accordingly
  • I have added tests for my changes
  • All new and existing tests passed locally
  • My commits follow the conventional commit format

Screenshots (if applicable)

Add screenshots for UI changes.

Additional Context

Add any other context about the PR here.

baxyz and others added 2 commits May 3, 2026 19:14
- introduce vscode-settings input for custom settings path
- implement auto-detection of scopes from settings.json

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings May 3, 2026 19:16
@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown

✅ PR Validation Passed

All checks passed!


📋 Pipeline Status

Job Status
🧾 Conventional Commits passing
🐚 ShellCheck passing
🧪 Action Tests passing

🤖 Generated by @helpers4 CI • 2026-05-04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the conventional-commits GitHub Action by allowing it to auto-load the allowed scope list from a VS Code settings.json file, reducing duplication between editor configuration and CI.

Changes:

  • Add a new vscode-settings input and wire it through to the validation script.
  • Update the validation script to auto-detect conventionalCommits.scopes when scopes input is empty.
  • Update documentation and the repo PR validation workflow to rely on VS Code settings for scopes.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
conventional-commits/scripts/validate.sh Adds auto-detection of scopes via jq from a configurable VS Code settings path.
conventional-commits/action.yml Introduces the vscode-settings input and passes it to the script via env.
conventional-commits/README.md Documents the new input and adds usage examples for auto-reading scopes.
.github/workflows/pr-validation.yml Removes hard-coded scopes to rely on auto-detection from .vscode/settings.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread conventional-commits/scripts/validate.sh
Comment thread conventional-commits/README.md Outdated
Comment on lines 19 to 22
uses: helpers4/action/conventional-commits@main
with:
checkout: "true"
scopes: "conventional-commits|deps|CI-CD"
pr-comment: "error"
Comment thread conventional-commits/scripts/validate.sh Outdated
baxyz and others added 2 commits May 4, 2026 19:21
@baxyz baxyz merged commit a395122 into main May 4, 2026
6 checks passed
@baxyz baxyz deleted the improve-conventionnal-commits branch May 13, 2026 20:19
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.

2 participants