-
Notifications
You must be signed in to change notification settings - Fork 28
Feature: Show head & base ref, cap markdown headings to h4 #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/github.sh
Outdated
|
|
||
| github::get_pr_body() { | ||
| jq --raw-output .pull_request.body "$GITHUB_EVENT_PATH" | ||
| jq --raw-output .pull_request.body "$GITHUB_EVENT_PATH" | sed -r 's/#{1,3}/####/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
someone with more than cursory knowledge of sed might wanna take a look at this 😅
|
|
||
| --- | ||
|
|
||
| ${pr_body//###/####} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flexicon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, but I'm assuming you ran the bash scripts locally and made sure sed is doing what you want it to? 😅
act/docker is acting up actually... 2 secs |

Added the base and head branches. Found myself losing context sometimes & to avoid going between github & teamwork, I'd rather have the branch information in teamwork itself.
Also added the base ref, useful when working in a long standing feature branch
Finally, I've capped all headings to h4 , as the headings in teamwork's markdown are quite big