Improvements that can be made for Sopel 7.1
dgw opened this issue · comments
sopel-github/sopel_modules/github/github.py
Lines 122 to 128 in 273fed4
This can use the new-to-7.1 sopel.plugin.find
decorator, which "Decorate[s] a function to be called for each time a pattern is found in a line." Doing so will fix the current behavior, which is to show information only about the last issue/PR reference in a given line.
Can also combine it with the Not yet, actually. See sopel-irc/sopel#2378.@url
-decorated callable instead of having a separate one, since Sopel 7.1 rewrote a bunch of logic and added tests to make sure that the triggerable decorator types should all work together.
I will update this comment as I think of more things that can be improved or simplified.