mirror of
https://github.com/ceph/go-ceph
synced 2025-01-03 04:12:06 +00:00
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:
parent
5a7d149d50
commit
2390f2c4c2
5
Makefile
5
Makefile
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user