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

Unable to parse last release value #1269

Closed
DuMaM opened this issue Nov 15, 2022 · 2 comments
Closed

Unable to parse last release value #1269

DuMaM opened this issue Nov 15, 2022 · 2 comments

Comments

@DuMaM
Copy link

DuMaM commented Nov 15, 2022

Hi,
I have problems with my release drafter.

Run release-drafter/release-drafter@v5
"pull_request_target.opened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
"pull_request_target.reopened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
"pull_request_target.synchronize" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
"pull_request_target.edited" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
jenkinsci/crowd2-plugin: Found 11 releases
{ name: 'event', id: '3474339958' }
jenkinsci/crowd2-plugin: No draft release found
{ name: 'event', id: '3474339958' }
jenkinsci/crowd2-plugin: Last release: crowd2-3.2.1
{ name: 'event', id: '3474339958' }
jenkinsci/crowd2-plugin: Fetching parent commits of refs/heads/master since 2022-11-14T13:05:1[6](https://github.com/jenkinsci/crowd2-plugin/actions/runs/3474339958/jobs/5807394626#step:2:7)Z
{ name: 'event', id: '34[7](https://github.com/jenkinsci/crowd2-plugin/actions/runs/3474339958/jobs/5807394626#step:2:8)433995[8](https://github.com/jenkinsci/crowd2-plugin/actions/runs/3474339958/jobs/5807394626#step:2:9)' }
jenkinsci/crowd2-plugin: Creating new release
{ name: 'event', id: '347433[9](https://github.com/jenkinsci/crowd2-plugin/actions/runs/3474339958/jobs/5807394626#step:2:10)958' }

Even though it discover latest release, somehow this GH action is unable to match this pattern:

version-template: '$MAJOR.$MINOR.$PATCH'
tag-template: 'crowd2-$NEXT_PATCH_VERSION'
name-template: 'Crowd 2 Plugin $NEXT_PATCH_VERSION'

I guess the problem is a tag name here. Which have a 2 at the end of the app name, and this confuses parser.
At the end GH Action creates for me a Crowd 2 Plugin 2.0.1 , no matter what I do 😢

@DuMaM
Copy link
Author

DuMaM commented Nov 29, 2022

I tried with – tag-prefix property, and it worked like a charm.
I don't why i missed that option.

@DuMaM DuMaM closed this as completed Nov 29, 2022
@almereyda
Copy link

Would you have an example of how setting tag-prefix worked for you? Unfortunately the documentation is really sparse, and devoid of references to tag-prefix.

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