Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/tag-jira-release/jira_tag_tickets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function get_tickets_in_current_branch() {
echo "Checking for tickets between $(get_current_branch) and $target_branch" >&2
local ticket_info="$($TICKET_STATUS_PATH $(get_current_branch) $target_branch)"
echo "$ticket_info" >&2
echo "$ticket_info" | grep -v '"Done"' | grep -v "Cancelled" | jq -r .url | sort | uniq | sed 's/https:\/\/'$JIRA_DOMAIN'\/browse\///g'
echo "$ticket_info" | grep -v '"Done"' | grep -v "Cancelled" | grep -v '"skip-release-notes"' | jq -r .url | sort | uniq | sed 's/https:\/\/'$JIRA_DOMAIN'\/browse\///g'
}

function existing_version() {
Expand Down
9 changes: 9 additions & 0 deletions .github/actions/tag-jira-release/ticket_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,22 @@ function getTicketInfo() {
fi
}

function hasSkipReleaseNotes() {
commitHash=$1
LOG=$(git show $commitHash | sed '/^diff/,$d')
if [[ "$LOG" =~ \[skip-release-notes\] ]]; then
echo -n ",\"skip-release-notes\":true"
fi
}

while IFS= read -r hash; do
FILE=~/temp/$hash.txt
if [ -f "$FILE" ]; then
while IFS= read -r ticketId; do
if [ "$ticketId" != "" ]; then
echo -n "{\"hash\":\"$hash\","
getTicketInfo $ticketId
hasSkipReleaseNotes $hash
echo "}"
fi
done <<< "$(cat $FILE | sed 's/ /\n/g')"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-actions",
"version": "2.17.0",
"version": "2.18.0",
"description": "Used to store GitHub actions for use across the enterprise",
"scripts": {
"test": "./tooling/scripts/run_tests.sh",
Expand Down