mikestead / bitbucket-semver Goto Github PK
View Code? Open in Web Editor NEWAuto-generate a Semver version based on merged pull requests since the previous release
License: Other
Auto-generate a Semver version based on merged pull requests since the previous release
License: Other
Not sure how to contact you in a different way. The Bitbucket Plugin stopped working with Bitbucket 6.x. We're happy to help out fixing, but would need access to the repo.
2019-10-04 13:12:34,313 WARN [ThreadPoolAsyncTaskExecutor::Thread 36] c.a.plugin.osgi.factory.OsgiPlugin Ignoring the bean container that was just created fo r plugin mikestead.bitbucket.bitbucket-semver. The plugin is in an invalid state, DISABLED, that doesn't support a transition to enabled. Most likely, it was d isabled due to a timeout. 2019-10-04 13:12:35,262 ERROR [UpmAsynchronousTaskManager:thread-4] QXR6795 @1V2O9QRx792x657x0 ldgbbz 172.27.220.145 "POST /rest/plugins/1.0/ HTTP/1.1" c.a.p.m anager.DefaultPluginManager There was an error loading the descriptor 'Semver PR Label' of plugin 'mikestead.bitbucket.bitbucket-semver'. Disabling. java.lang.NoClassDefFoundError: com/atlassian/bitbucket/hook/repository/RepositoryMergeRequestCheck at java.lang.ClassLoader.defineClass1(Native Method) at com.atlassian.plugin.module.ClassPrefixModuleFactory.getModuleClass(ClassPrefixModuleFactory.java:44) at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.guessModuleClass(PrefixDelegatingModuleFactory.java:145) at com.atlassian.plugin.module.PrefixDelegatingModuleFactory$$FastClassBySpringCGLIB$$e05be356.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at com.atlassian.stash.internal.plugin.OsgiSafeProxyProvider$1.invoke(OsgiSafeProxyProvider.java:95) at com.atlassian.plugin.module.PrefixDelegatingModuleFactory$$EnhancerBySpringCGLIB$$6a5e4311.guessModuleClass(<generated>) ... com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:63) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1115) .... caused by: java.lang.ClassNotFoundException: com.atlassian.bitbucket.hook.repository.RepositoryMergeRequestCheck at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ... 68 common frames omitted
Hey guys,
I cannot use this script because this error
Cannot read property 'filter' of undefined
I think is referring to this line
do {
res = await getTagsPage(start, 20, options);
// filter out any tags which aren't semver
const tags = res.values.filter(tag =>
SEMVER_TAG_PATTERN.test(tag.displayId)
Cheers,
I would like to generate a version for a hotfix using a release branch created from a tag specifying an older version.
Based on the documentation I would expect that the --current
flag can override the default behavior of using the latest tag from Bitbucket. In other words, that getTagChain(options)
returns the matched tag provided by options.current
and not sortSemver(versions)[0]
(where versions
contains all tags from the top of the list until the tag specified by --current
is found).
master
branch with 3 commits
major
pull request tagged 1.0.0
minor
pull request tagged 1.1.0
release/1.0
branch created from the commit tagged 1.0.0
with 1 commit
patch
pull requestbbsemver --branch release/1.0
returns 1.0.1
bbsemver --branch release/1.0
returns 1.1.1
bbsemver --branch release/1.0 --current 1.0.0
returns 1.1.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.