Skip to content

Commit

Permalink
Added a few suggestions from #6 (#15)
Browse files Browse the repository at this point in the history
* Added a few suggestions from #6

* Update adapt_README.yml

* Update create_README.jl

* Fix create...

* Checking what goes wrong with diff

* New try with direct commit

* Try commit action

* Update README

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
theogf and github-actions[bot] committed Apr 23, 2021
1 parent 197e9b3 commit 7bfb1ff
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/adapt_README.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
version: 1
- run: |
julia -e 'using Pkg; Pkg.add("Latexify"); Pkg.develop(path="."); include("src/create_README.jl")'
- uses: reviewdog/action-suggester@v1
echo $(git diff)
- uses: EndBug/add-and-commit@v7
with:
tool_name: AutoREADME
fail_on_error: true
default_author: github_actions
message: "Update README"
add: README.md
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Don't hesitate to add your worst creations via PR.
| `axes` | 🪓🪓 | 1.2 |
| `broadcast` | 📡 | |
| `cat` | 😻, 😹, 🐈 | |
| `cd` | 💿 | |
| `chop` | 🌳🪓 | 1.2 |
| `clamp` | 🗜️ | |
| `collect` | 🧺 | |
Expand Down Expand Up @@ -51,10 +52,11 @@ Don't hesitate to add your worst creations via PR.
| `show` | ☝️ | |
| `sign` | 🪧, 🚏 | 1.5, 1.5 |
| `tan` | 🧑🏻➡️🧑🏽 | |
| `throw` | c╯°□°ↄ╯ | |
| `throw` | c╯°□°ↄ╯, 🤮 | |
| `time` | 🕛 | |
| `true` | ✅, 👍, 👌 | |
| `vcat` | ⬇️😻, ⬇️😹, ⬇️🐈 | |
| `zip` | 🤐 | |
## REPL

You can use the [EmojiSymbols.jl](https://github.com/wookay/EmojiSymbols.jl) package to super-turbo-charge your REPL experience!
8 changes: 5 additions & 3 deletions src/WatchJuliaBurn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ end
## emojis needing a specific version
const func_to_emojis = Dict(
## Base
:throw => (:(c╯°□°ↄ╯),),
:throw => (:(c╯°□°ↄ╯), :(🤮),),
:map => (:(🗺),),
:broadcast => (:(📡),),
:Dict => (:(📖),),
Expand All @@ -57,9 +57,11 @@ const func_to_emojis = Dict(
:first => (:(🥇),),
:findfirst => (:(🔎🥇),),
:keys => (:(🔑), :(🗝),),
:rand => (:(🎰),:(🎲)),
:rand => (:(🎰),:(🎲),),
:kill => (:(⚰️),),
:run => (:(🏃),),
:cd => (:(💿),),
:zip => (:(🤐),),
## Arrays
:cat => (:(😻), :(😹), :(🐈),),
:vcat => (:(⬇️😻), :(⬇️😹), :(⬇️🐈),),
Expand All @@ -78,7 +80,7 @@ const func_to_emojis = Dict(
:imag => (:(🔮),),
:round => (:(🎠), :(🔵),),
:time => (:(🕛),),
:cot => (:(🧥),:(🥼)),
:cot => (:(🧥), :(🥼)),
:count => (:(🧮),),
:count_ones => (:(🧮1️⃣1️⃣),),
:count_zeros => (:(🧮0️⃣0️⃣),),
Expand Down
4 changes: 3 additions & 1 deletion src/create_README.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ outro = """
You can use the [EmojiSymbols.jl](https://github.com/wookay/EmojiSymbols.jl) package to super-turbo-charge your REPL experience!
"""

write(joinpath(@__DIR__, "..", "README.md"), intro * string(md_ar) * outro)
open(joinpath(@__DIR__, "..", "README.md"), "w") do io
write(io, intro * string(md_ar) * outro)
end

0 comments on commit 7bfb1ff

Please sign in to comment.