I’ve an application that expose a REST API. I now want to automatically publish the API changelog on every new releases. Please note that I want the changelog of the API. Not the changelog of the application.
I thought to use this workflow:
- I create a folder
.changelog
in my repo - If a MR changes something on the API the developer must to create a file in
.changelog
with the description of the change. - During the CD I want to call a specific API (it’s a third party service) where I
POST
the content of the new files that have been created into.changelog
So, 2 questions
- Is there a way to add a check in the pipeline that check that a new file has been added in the MR if the MR has a particular label ?
- Can someone give me an example about calling an external API with the content of a file in the repo ?
–
Simone