wp-settings-framework/.github/workflows/commitlint.yml
owaisahmed5300 270787dd37 fix: repair data handling and resolve tab data loss
This commit resolves critical bugs in data handling and saving. The
public `get()` method and the tabbed saving mechanism are now reliable.

1.  **Corrected `get()` Method:** The internal logic of the `get()` method
    has been completely rewritten. It was previously non-functional and
    now correctly fetches saved option values from the database, with proper
    fallbacks to default values.

2.  **Tabbed Saving Fix:** A data loss bug on tabbed pages is resolved.
    The `Sanitizer` is now state-aware, merging new input with existing
    saved options to ensure settings on other tabs are preserved.

These fixes were made possible by a complete internal refactoring,
which introduced a new `Config` class for state management and enforced
proper dependency injection throughout the framework.
2025-08-13 01:08:30 +05:00

33 lines
No EOL
930 B
YAML

# .github/workflows/lint.yml
name: Lint Commit Messages
on:
pull_request:
types: [ opened, edited, synchronize ]
jobs:
commitlint:
name: Lint Commits
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install npm dependencies
run: npm install
- name: Validate all commits in PR
uses: wagoid/commitlint-github-action@v6
with:
# When validating all commits in a PR, you need to use the
# base and head refs to determine the range of commits to lint.
# The action automatically gets these from the event payload.
# See: https://github.com/wagoid/commitlint-github-action#validating-all-commits-in-a-pr
first-parent: false