nexushoratio / userscripts

Random userscripts for browsers.
GNU General Public License v3.0
2 stars 0 forks source link

Write a `pre-push` git hook. #171

Closed nexushoratio closed 1 year ago

nexushoratio commented 1 year ago

Yesterday I types git push rather than git stash push and pushed code that was not ready (mostly neither the app nor the library did not have their versions updated).

Put checks into place that any *.js* file being pushed has appropriate updated version lines.

nexushoratio commented 1 year ago

Case in point: I just noticed that lib/base.js has this:

// @version     6
  const version = 5;