You've already forked prometheus-fail2ban-exporter-charts
							
							chore(ci): extend logging of add-annotations.sh
This commit is contained in:
		| @@ -81,6 +81,8 @@ function map_type_to_kind() { | ||||
|  | ||||
| COMMIT_TITLES=$(git log "${OLD_TAG}..${NEW_TAG}" --pretty=format:"%s") | ||||
|  | ||||
| echo "INFO: Generate change log entries from ${OLD_TAG} until ${NEW_TAG}" | ||||
|  | ||||
| while IFS= read -r line; do | ||||
|   if [[ "${line}" =~ ^([a-zA-Z]+)(\([^\)]+\))?\:\ (.+)$ ]]; then | ||||
|     TYPE="${BASH_REMATCH[1]}" | ||||
| @@ -92,6 +94,8 @@ while IFS= read -r line; do | ||||
|     DESC="${BASH_REMATCH[3]}" | ||||
|     KIND=$(map_type_to_kind "${TYPE}") | ||||
|  | ||||
|     echo "- ${KIND}: ${DESC}" | ||||
|  | ||||
|     yq --inplace ". += [ {\"kind\": \"${KIND}\", \"description\": \"${DESC}\"}]" "${YAML_FILE}" | ||||
|   fi | ||||
| done <<< "${COMMIT_TITLES}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user