View on GitHub

ABAP package version shield

shield.io lambda to detect version of abap package, serialized by abapGit

ABAP package version shield

There is an amazing service shields.io that produces github status badges. In particular, it can retrieve shield configuration from another API. This piece of code implements such API endpoint for extracting abap package version.

shield sample

The service is available at shield.abap.space domain. In order to add a badge to your repository add the following line at the top of your root readme file.

![abap package version](https://img.shields.io/endpoint?url=https://shield.abap.space/version-shield-json/$TYPE/$OWNER/$REPO/$PATH/$CONSTANT_NAME)

where:

For example: https://img.shields.io/endpoint?url=https://shield.abap.space/version-shield-json/github/sbcgua/mockup_loader/src/zif_mockup_loader.intf.abap/version for the following target file.

example

Notes

Badge customizing

Shields.io allows to override some of parameters e.g. label and color - see more in their documentation. For example: https://img.shields.io/endpoint?url=...&label=version&color=red to display the shield in red and with shorter “version” label instead of “abap package version”.

N.B. Please report bugs if found :)

Badge constructor

beta, pls report issue if any!