GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — WorldWindJava/travis/changelog.sh at develop · mbdev87/WorldWindJava

Expand file tree

/

changelog.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
32 lines (28 loc) · 1.52 KB
/

changelog.sh

Copy path

File metadata and controls

32 lines (28 loc) · 1.52 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Writes a change log to stdout using the GitHub API and the milestone associated with the specified Git tag
# Write Markdown headers for the Git tag and release date
echo "##${TRAVIS_TAG}"
echo "######Released on $(date '+%Y-%m-%d')"
# Query GitHub API for a milestone matching the Git tag
GITHUB_API_URL="https://api.github.com/repos/${TRAVIS_REPO_SLUG}"
MILESTONE_ARRAY=( \
$(curl --silent "${GITHUB_API_URL}/milestones?state=all" \
| jq --arg title "${TRAVIS_TAG}" '.[] | select(.title == $title) | .number') \
) > /dev/null
# When GitHub has a milestone matching the Git tag, write milestone related information to the change log
if [[ "${#MILESTONE_ARRAY[@]}" -ne 0 ]]; then
# Write the milestone description to the change log
MILESTONE_DESCRIPTION=( \
$(curl --silent "${GITHUB_API_URL}/milestones/${MILESTONE_ARRAY[0]}" \
| jq .description) \
) > /dev/null
MILESTONE_DESCRIPTION=${MILESTONE_DESCRIPTION[*]#\"}
echo ${MILESTONE_DESCRIPTION[*]%\"}
# Write the milestone's associated issues to the change log with each issue on a separate line with the issue
# title, issue number, and a link to the issue on GitHub.com, all in markdown format: .title ([#.number](.html_url))
ISSUE_ARRAY=$(curl --silent "${GITHUB_API_URL}/issues?state=all&milestone=${MILESTONE_ARRAY[0]}" | jq -c '.[] | [.title, .number, .html_url]') >> /dev/null
while read line
do
echo ${line} | sed 's#\["\(.*\)",\(.*\),"\(.*\)"\]#- \1 ([\#\2](\3))#'
done <<< "${ISSUE_ARRAY[*]}"
fi
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.