-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix callback/selective task print being long #7374
Fix callback/selective task print being long #7374
Conversation
Compare against all text on the line rather than simply the task_name var, which does not include 3 formatting characters in the string
This comment was marked as outdated.
This comment was marked as outdated.
Hi @AidanHouck , Thank you for the contribution! Please add a changelog fragment. |
/rebuild |
changelogs/fragments/7374-fix-selective-callback-taskname-length.yml
Outdated
Show resolved
Hide resolved
5c6813f
to
132029e
Compare
132029e
to
a618f7d
Compare
CI failures are unrelated and should get fixed by #7385. |
/rebuild_failed |
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.
LGTM
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #7390 🤖 @patchback |
* Fix callback/selective task print being long Compare against all text on the line rather than simply the task_name var, which does not include 3 formatting characters in the string * Add changelog fragment --------- Co-authored-by: Aidan Houck <AidanHouck@users.noreply.github.com> (cherry picked from commit 479e7df)
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #7391 🤖 @patchback |
@AidanHouck thanks for your contribution! |
* Fix callback/selective task print being long Compare against all text on the line rather than simply the task_name var, which does not include 3 formatting characters in the string * Add changelog fragment --------- Co-authored-by: Aidan Houck <AidanHouck@users.noreply.github.com> (cherry picked from commit 479e7df)
…int being long (#7390) Fix callback/selective task print being long (#7374) * Fix callback/selective task print being long Compare against all text on the line rather than simply the task_name var, which does not include 3 formatting characters in the string * Add changelog fragment --------- Co-authored-by: Aidan Houck <AidanHouck@users.noreply.github.com> (cherry picked from commit 479e7df) Co-authored-by: Aidan Houck <92699100+AidanHouck@users.noreply.github.com>
…int being long (#7391) Fix callback/selective task print being long (#7374) * Fix callback/selective task print being long Compare against all text on the line rather than simply the task_name var, which does not include 3 formatting characters in the string * Add changelog fragment --------- Co-authored-by: Aidan Houck <AidanHouck@users.noreply.github.com> (cherry picked from commit 479e7df) Co-authored-by: Aidan Houck <92699100+AidanHouck@users.noreply.github.com>
* Fix callback/selective task print being long Compare against all text on the line rather than simply the task_name var, which does not include 3 formatting characters in the string * Add changelog fragment --------- Co-authored-by: Aidan Houck <AidanHouck@users.noreply.github.com>
SUMMARY
When printing the task name section of command output, previously the line was always 3 chars longer than
line_length
which is meant to limit width. This was due to the length check simply looking at thetask_name
, and not including the 3 formatting characters added in the string directly (# {0}
).To fix this, I pulled these characters out into a separate variable then did the length check on that.
bugfixes:
ISSUE TYPE
COMPONENT NAME
selective
ADDITIONAL INFORMATION
Note that there are many other checks in this plugin that also do not properly follow the
line_length
variable for one reason or another. I will submit fixes for those later in a separate PR as they are not as trivial to resolve.