Skip to content

PR template expects commitlint use, but no config included in repo #853

@alxndrsn

Description

@alxndrsn

Describe the bug

PR template at https://github.com/ladjs/.github/blob/49f5497df775ab3649910ee32452d1240644f97b/.github/PULL_REQUEST_TEMPLATE.md#L5 means that PRs in this repo are expected to have used commitlint.

However, it doesn't work when run in the repo:

$ npx -p @commitlint/cli commitlint --last
⧗   input: 7.0.0
✖   Please add rules to your `commitlint.config.js`
    - Getting started guide: https://commitlint.js.org/guides/getting-started
    - Example config: https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/src/index.ts [empty-rules]

✖   found 1 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

Node.js version:

OS version:

Description:

Actual behavior

Doesn't work (see above)

Expected behavior

Should work.

Code to reproduce

npx -p @commitlint/cli commitlint --last

Checklist

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
  • I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions