Skip to content
Open
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
demo.sh
work-history.txt
jira-status.txt
jira-status.txt
work-report.txt
7 changes: 5 additions & 2 deletions history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ write_history() {
local jira_ticket=$2

pr_id=$(echo "$pr_url" | grep -oE '[0-9]+$')

new_history="${jira_ticket},${pr_id}"

echo $new_history >>"${script_dir}/work-history.txt"

echo -e $y Added a work history in work-history.txt: $new_history

work_report="${JIRA_SERVICE_ADDRESS}/browse/$jira_ticket"
echo $work_report >>"${script_dir}/work-report.txt"
echo -e $y Added a work report in work-report.txt: $work_report
}

read_history() {
Expand Down
2 changes: 1 addition & 1 deletion pr-body.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $formatted_output

$2\n

#### Trello Issue Link:\n
#### Jira Link:\n

${JIRA_SERVICE_ADDRESS}/browse/$3\n

Expand Down