Git Product home page Git Product logo

bitbucket-semver's People

Contributors

mikestead avatar mtribes-sdk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bitbucket-semver's Issues

Support for versions below the latest version in master

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).

Steps to reproduce

  • Given a master branch with 3 commits
    • Initial commit
    • Merge commit from a major pull request tagged 1.0.0
    • Merge commit from a minor pull request tagged 1.1.0
  • And a release/1.0 branch created from the commit tagged 1.0.0 with 1 commit
    • Merge commit from a patch pull request

Expected behaviour

bbsemver --branch release/1.0 returns 1.0.1

Actual behaviour

bbsemver --branch release/1.0 returns 1.1.1
bbsemver --branch release/1.0 --current 1.0.0 returns 1.1.1

Companion Bitbucket Plugin stopped working

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

Cannot read property 'filter' of undefined

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,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.