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

feat: capture output of prepare plugin #3389

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rossreicks
Copy link

@rossreicks rossreicks commented Jul 15, 2024

I would like a way to generate additional notes in my plugin that utilizes the prepare stage.

This way I can update my github plugin config like the following:

releaseNameTemplate:
                    "<%= nextRelease.name %> (<%= nextRelease.prepareOutput.subscriberPackageVersionId %>)"

if there is a different way I can tie into that I would appreciate knowing how. I have attempted to mutate the context but it seems that the context is not a global reference one it reaches the plugin.

@travi
Copy link
Member

travi commented Aug 2, 2024

could you expand on your use case? we've never had a request for this before, so i'm pretty hesitant to accept a change like this for a limited use case. understanding your goal might help us consider alternatives

@rossreicks
Copy link
Author

could you expand on your use case? we've never had a request for this before, so i'm pretty hesitant to accept a change like this for a limited use case. understanding your goal might help us consider alternatives

Understandable! My use case is that I would like to have a deep link to my published package in my github release notes. For example, lets say the npm plugin deploys a package to the registry here, I would like to deep link to this in the changelog.

I'm sure there is a better way, but right now im thinking if the prepare part of the plugin (an unoffical custom plugin) can set the UUID of the release version, I could tie into that to build the deep link

@rossreicks rossreicks closed this Aug 13, 2024
@rossreicks rossreicks reopened this Aug 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants