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

RangeError: Invalid time value #9

Open
malingxin opened this issue Nov 4, 2024 · 0 comments
Open

RangeError: Invalid time value #9

malingxin opened this issue Nov 4, 2024 · 0 comments

Comments

@malingxin
Copy link

malingxin commented Nov 4, 2024

maybe need to update changelog version
[RangeError: Invalid time value](semantic-release/release-notes-generator#633)

[9:15:59 AM] [semantic-release] › ✘  Failed step "generateNotes" of plugin "semantic-release-jira-notes"
[9:15:59 AM] [semantic-release] › ✘  An error occurred while running semantic-release: RangeError: Invalid time value
    at committerDate (/opt/app/node_modules/conventional-changelog-writer/index.js:80:30)
    at /opt/app/node_modules/conventional-changelog-writer/lib/util.js:202:17
    at Array.forEach (<anonymous>)
    at processCommit (/opt/app/node_modules/conventional-changelog-writer/lib/util.js:198:31)
    at /opt/app/node_modules/conventional-changelog-writer/index.js:123:32 {
  pluginName: 'semantic-release-jira-notes'
}
RangeError: Invalid time value
    at committerDate (/opt/app/node_modules/conventional-changelog-writer/index.js:80:30)
    at /opt/app/node_modules/conventional-changelog-writer/lib/util.js:202:17
    at Array.forEach (<anonymous>)
    at processCommit (/opt/app/node_modules/conventional-changelog-writer/lib/util.js:198:31)
    at /opt/app/node_modules/conventional-changelog-writer/index.js:123:32 {
  pluginName: 'semantic-release-jira-notes'
}

release.config.js

    ["semantic-release-jira-notes", {
      "jiraHost": "xxxx",
      "preset": "conventionalcommits",
      "parserOpts": {
        "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
      },
      "writerOpts": {
        commitPartial: readFileSync(join(__dirname, './commit.hbs'), 'utf-8')
      },
      "presetConfig": {
        "types": [
          { "type": "feat", "section": "Features" },
          { "type": "fix", "section": "Bug Fixes" },
          { "type": "perf", "section": "Performance Improvements" },
          { "type": "revert", "section": "Reverts" },
          { "type": "docs", "section": "Documentation", "hidden": true },
          { "type": "style", "section": "Styles", "hidden": true },
          { "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
          { "type": "refactor", "section": "Code Refactoring", "hidden": true },
          { "type": "test", "section": "Tests", "hidden": true },
          { "type": "build", "section": "Build System", "hidden": true },
          { "type": "ci", "section": "Continuous Integration", "hidden": true },
          { "type": "improvement", "section": "Improvement", "hidden": false },
          // custom type user story
          { "type": "bug", "section": "Bug" },
          { "type": "task", "section": "Task" },
        ]
      }
    }]
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

No branches or pull requests

1 participant