sbcgua / abap-package-version-shield

shield.io lambda to detect version of abap package, serialized by abapGit
https://sbcgua.github.io/abap-package-version-shield
8 stars 4 forks source link
abap badge hacktoberfest lambda shields

Known Vulnerabilities Version

ABAP package version shield

Usage

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

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

Interactive badge constructor is available at this repository github page