Skip to content

Release messages are being posted in related MRs #858

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

Open
privetkuku opened this issue Jun 2, 2025 · 0 comments
Open

Release messages are being posted in related MRs #858

privetkuku opened this issue Jun 2, 2025 · 0 comments

Comments

@privetkuku
Copy link

Hello!
When I run pnpm semantic-release on main, I get messages like "🎉 This MR is included in version" in closed/merged MRs. Same happens if I run canary releases, MRs without stable version also get a mention from semantic-release.
I would expect if I run release on main other MRs stay intact. If I run canary release on MR "my new feature", my merged but unreleased MR "my old feature" would not have "🎉 This MR is included in version" message. Is there a way to achieve this?
My release config:

import { Options } from 'semantic-release';

const config: Options = {
    branches: [
        'main',
        {
            name: process.env.CI_COMMIT_REF_NAME!,
            prerelease: 'canary-${Math.random().toString(36).substring(2, 15)}',
        },
    ],
    tagFormat: '${version}',
    plugins: [
        '@semantic-release/commit-analyzer',
        [
            '@semantic-release/release-notes-generator',
            {
                preset: 'conventionalcommits',
                presetConfig: {
                    issuePrefixes: ['prefix-'],
                    issueUrlFormat: 'https://test.com/{{prefix}}{{id}}',
                },
            },
        ],
        '@semantic-release/changelog',
        '@semantic-release/npm',
        [
            '@semantic-release/git',
            {
                assets: ['CHANGELOG.md', 'package.json', 'README.md'],
                message: 'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}',
            },
        ],
        '@semantic-release/gitlab',
    ],
};

export default config;
@privetkuku privetkuku changed the title Release posts messages in merged MRs Release messages are being posted in related MRs Jun 2, 2025
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