fabiospampinato / bump

Bump updates the project's version, updates/creates the changelog, makes the bump commit, tags the bump commit and makes the release to GitHub. Opinionated but configurable.
MIT License
410 stars 13 forks source link

[version] Unsupported repository #2

Closed ostrolucky closed 5 years ago

ostrolucky commented 5 years ago
➜  stdinho git:(master) ✗ git tag
0.1
0.2
0.2.1
0.2.3
0.2.4
v0.2.2
➜  stdinho git:(master) ✗ bump
[version] Unsupported repository

project: https://github.com/ostrolucky/stdinho

amallia commented 5 years ago

Same issue

fabiospampinato commented 5 years ago

@ostrolucky there doesn't look like there's actually a problem with bump, it just found nowhere what the current version is, so it tells you that you can't bump it. But you can configure it manually to update arbitrary files, for instance this might be a valid bump.json configuration file:

{
  "files": {
    "README.md": [
      ["^# stdinho ?v?(.*)", "# stdinho v[version]"]
    ]
  }
}

Is there a kind of standard place where the version of the project should be located in PHP projects?

fabiospampinato commented 5 years ago

@amallia same for your repo, something like this for example will work:

{
  "files": {
    "README.md": [
      ["^# PISA: Performant Indexes and Search for Academia ?v?(.*)", "# PISA: Performant Indexes and Search for Academia v[version]"]
    ]
  }
}
fabiospampinato commented 5 years ago

Maybe we could infer the current version from tags 🤔 let's track this here.

simontaylor-trilogy commented 4 years ago

For others which get unsupported repository. You need to ensure you have a line which matches the regex including the base version number in the files statement.

saft1g commented 4 years ago

additional: when incorrect json format is used in bump.json the error "Unsupported Repository" also appears