-
Notifications
You must be signed in to change notification settings - Fork 76
Adding ability to have --stdin overwrite --text #64
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
ChaoticWeg
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.
LGTM
|
Looks like tests failed, I'm not familiar with the framework/setup used for testing here, so will defer to @fieu |
|
I'm new to bats so I may have built the test wrong. You can test manually from the command line: echo "this text will be used" | ./discord.sh --username "username test" --text="this text is ignored" --stdin |
|
This is the bats test file that worked for me, without all the other tests in it. |
|
Nevermind. I see I forgot a closing } in the 01 tests file. :-( |
Yup, only just now noticed it myself, lol. That's what I get for reviewing code at 8 AM. |
|
No obvious errors to me, test still fails. Deferring to fieu |
|
Weird. When I pull that single test out separately, it works. I didn't want to run them all on my testing, but I'll run through them to see if I can figure it out. |
|
|
discord.sh cant be found for the pipe
|
Co-authored-by: Tobias <5702338+T0biii@users.noreply.github.com>
|
Thanks for that catch. I had a symlink in my path for discord.sh that was finding the file in my local repo. Good catch! |
|
mh ci still failing maybe the secret for the weebhook is broken? |
|
I'm not sure what to do here so I'll leave it hanging in the ether until someone smarter than me makes decisions. :-) |
|
@fieu Any luck with you having a chance to check out why the automated tests are failing? Works from command line and the PR is pretty simple. Would love to see this go through. |
|
@fieu Sheldon, it's been two months for this relatively simple PR. Any chance you can take a look and push it through? I'm confident that the tests are failing because of the build environment, not the code. |
|
Hey @ericloyd, When I first saw the GitHub Action workflow fail, I was too preoccupied with other things to dig into why it was failing. It was puzzling considering your change was very minor, but I just didn't have the bandwidth to investigate at the time. After some digging (albeit 5 months later), I found out that even when approving a pull request to run the action workflow, the action won't have access to the repository secrets (which we use for the I noticed @T0biii mentioned the secrets might not be working properly in the action, and he was spot on. GitHub does this (as they should) from a security perspective to avoid leaks of secrets. Overall, after doing some testing locally and verifying the pipeline passed, it looks good to me. Again, I apologize for the huge delay, and thank you for your patience and contribution! |
|
We're all good. I know how RL can be. Thanks? |
|
Tagged v2.0.1, thanks again! |


PR adds --stdin option to allow text to be piped in, overriding the --text option. This is per #62