Git Product home page Git Product logo

adhocore / please Goto Github PK

View Code? Open in Web Editor NEW
86.0 2.0 6.0 173 KB

please is semver release made easy, detects current version from API or tags and next version from commits, creates detailed changelogs that are configurable.

Home Page: https://github.com/adhocore/please

License: MIT License

Shell 100.00%
please release release-management php-release phar-release release-anything semver semver-release npm-publish generate-changelog

please's Issues

Invalid numeric literal at line 1, column 2

root:/var/www/project# please --vfile --chlog --version 1.11.1
Repository crazyfactory/logistics
Log file /tmp/PLZ.bXl2hirNbc
Updating master ...
  Done
Getting latest releases ...
parse error: Invalid numeric literal at line 1, column 2

Env:
docker container: php-fpm
token auth: public_repo, repo_deployment

Support events

  • please --before-github "bash cmd"
  • please --before-npm "bash cmd"
  • please --after-finish "bash cmd"

npm publish

support npm publish if there's package.json (not marked private)

Auto determine release version

currently it is based on major/minor arg

should be based on first word of any of the commit message:

fix: => patch no need because this is default
feat: => minor <-- this will be fixed :)
bc: => major (confirm bc) no need because bump major has to be conscious decision and should use: please major --flags

Not working on Mac

I'm getting the following when trying to use it.

/usr/local/bin/please: line 26: syntax error near unexpected token '>'

I'll try to look into this myself and send a PR this weekend.

Major version bump fails if the last version begins with `v` eg `v1.5.4`

expected

please major should release v2.0.0

actual

please major releases v1.0.0

reason

the issue is major part v1 is treated as 0 as it is not numeric

solution

  • if latest VERSION starts with v, set V=1 and strip v (i.e replace with empty string)
  • determine NEXT_VERSION as usual
  • if V == 1, prepend v to the NEXT_VERSION

Private repo issue

Some git api endpoints (see below) are curled without auth header which might affect private repos

curl --silent "https://api.${GH_REPO}/releases/latest

What permissions?

The readme says:

Make sure to set only bare minimum permission scopes for this token.

What permissions should be set?

portablity

don't rely on php except for phar compile

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.