makefile: add api-promote target

The intended workflow is to update the Go source code and then run `make
api-promote` which will detect the changes to the ceph_preview tag(s) in
the sources and then promote apis from preview to stable in the
tracking json.

I explicitly do not want apiage.py (or the makefile) to make changes to
the source code. The contributor may or may not want to make changes
incrementally, also some times a preview function may be moved to
another source file. Plus, I simply think this is a job for a human.
But we can avoid having to edit the JSON and markdown files afterward.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2022-08-22 14:12:02 -04:00 committed by mergify[bot]
parent 5a7d149d50
commit 2390f2c4c2

View File

@ -268,6 +268,11 @@ api-check: implements-json
api-update: implements-json api-update: implements-json
./contrib/apiage.py --mode=update --placeholder-versions ./contrib/apiage.py --mode=update --placeholder-versions
api-promote: implements-json
./contrib/apiage.py --mode=promote \
--current-tag="$$(git describe --tags --abbrev=0)"
./contrib/apiage.py --mode=write-doc
api-fix-versions: api-fix-versions:
./contrib/apiage.py --mode=fix-versions \ ./contrib/apiage.py --mode=fix-versions \
--current-tag="$$(git describe --tags --abbrev=0)" --current-tag="$$(git describe --tags --abbrev=0)"