We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b8fa0 commit 801e11fCopy full SHA for 801e11f
1 file changed
.github/workflows/deprecate_packages.yml
@@ -98,8 +98,11 @@ jobs:
98
git config --local user.email "noreply@stdlib.io"
99
git config --local user.name "stdlib-bot"
100
101
+ # Turn `@stdlib` package names in deprecation messages into hyperlinks:
102
+ readme_msg=$(echo $msg | sed -e 's/`\?@stdlib\/\([^ `]*\)`\?/[@stdlib\/\1](https:\/\/github.com\/stdlib-js\/\1)/g')
103
+
104
# Add deprecation notice to the beginning of the `README.md` file:
- sed -i "1 i\## Attention\n\n:warning: **$msg** :warning:\n\n<br>\n\n* * *\n" README.md
105
+ sed -i "1 i\## Attention\n\n:warning: **$readme_msg** :warning:\n\n<br>\n\n* * *\n" README.md
106
107
# Commit the changes:
108
git add README.md
0 commit comments