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

release note generator to clickup tasks #680

Open
wassimbensalem opened this issue Jul 2, 2024 · 1 comment
Open

release note generator to clickup tasks #680

wassimbensalem opened this issue Jul 2, 2024 · 1 comment

Comments

@wassimbensalem
Copy link

wassimbensalem commented Jul 2, 2024

Hi,

I am trying to add a link to my clickup task from the changed the changelog.md file.
The commit message should look something like this:

test: dummy tests

closes #task_id_clickup

The changelog.md is including the closes part but somehow truncating the id ( only taking the first 7 characters), for instance if my clickup task ID is 123456789 , he will use in the changelog file 1234567 as id ( which is wrong).

Any idea to fix this ?

below is my .releaserc file:

{
  "branches": ["main", "next"],
  "plugins": [
    [
      "@semantic-release/commit-analyzer",
      {
        "preset": "angular",
        "releaseRules": [
          { "type": "build", "release": false },
          { "type": "ci", "release": false },
          { "type": "docs", "release": false },
          { "type": "feat", "release": "minor" },
          { "type": "fix", "release": "patch" },
          { "type": "perf", "release": "patch" },
          { "type": "refactor", "release": "patch" },
          { "type": "test", "release": false },
          { "type": "chore", "release": "patch" }
        ],
        "parserOpts": {
          "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
        }
      }
    ],
    [
      "@semantic-release/release-notes-generator",
      {
        "preset": "conventionalcommits",
        "presetConfig": {
          "types": [
            { "type": "feat", "section": "Features" },
            { "type": "fix", "section": "Bug Fixes" },
            { "type": "perf", "section": "Performance Improvements" },
            { "type": "revert", "section": "Reverts" },
            { "type": "docs", "section": "Documentation" },
            { "type": "style", "section": "Styles" },
            { "type": "refactor", "section": "Code Refactoring" },
            { "type": "test", "section": "Tests" },
            { "type": "build", "section": "Build System" },
            { "type": "ci", "section": "Continuous Integration" },
            { "type": "chore", "section": "Chores" }
          ]
        },
        "issueUrlFormat": "https://app.clickup.com/t/{{id}}",
        "issuePrefixes": ["#"]
      }
    ],
    [
      "@semantic-release/changelog",
      {
        "changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
      }
    ],
    [
      "@semantic-release/git",
      {
        "message": "chore: Release ${nextRelease.version}\n\n${nextRelease.notes}"
      }
    ]
  ]
}
@uzi0espil
Copy link

We are as well using clickup issues and we are affected by this.. We are willing to contribute if we know that this will be merged eventually.

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

2 participants