Coder Social home page Coder Social logo

Comments (16)

KocproZ avatar KocproZ commented on August 15, 2024 3

Hello,
I made it that changeset won't show if there is no repo tied to the job.
I added a custom field called notes too. It looks like this:
screenshot_2019-02-27_18 28 49_357x227
Let me know if this is what you had in mind.
Also, if you want to test this already grab hpi file from here

from discord-notifier-plugin.

LLlKuIIeP avatar LLlKuIIeP commented on August 15, 2024 1

Sorry, it really works. However, not as in this thread on the screenshots. Can I somehow indicate not id, but by nicknames?

from discord-notifier-plugin.

melt7777 avatar melt7777 commented on August 15, 2024

Thank you very much for this great feature request and implementation!

~ melt
getpimp.org | miner.farm

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

Great! Just what I was looking for. Maybe add ability to not show changeset even if repo is in? Sometimes you don't want to announce changes.

Thanks for working on this! :)

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

Sorry to bump this but have you thought of proposed change above?
Also when can we expect updated version to be pushed to Jenkins' repos?

from discord-notifier-plugin.

KocproZ avatar KocproZ commented on August 15, 2024

Sorry, I forgot about this.
I think checkbox to hide changeset is a good idea, easy to add too.
I'm going to add it and push changes to jenkins today or tomorrow.

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

Thank you a lot for working on this. :)

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

Ok, I've checked and almost everything is perfect. Except for the fact how embeds work on discord. I intended to use that extra notes to tag people that needed to see that build was out @here or different.

But, you can't tag people in discord's embeds. It won't send any kind of notification.

So my question would be - could we add some extra message that would be outside of the embed? Or let us choose whether we want the notes to appear in embed or not?

Thanks in advance! I really appreciate your hard work on this! :)

from discord-notifier-plugin.

melt7777 avatar melt7777 commented on August 15, 2024

Hello @furai, I was wondering if you placed their full Discord Tag into the comment, this is sometimes required for Discord to provide a Mention link. Example: Instead of @melt you would tag @melt#2019

See if this allows the Mention Link to be created for you.

PS Thank you very much KocproZ :)

Thanks!
~ melt
getpimp.org | miner.farm

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

I can tag, it just does not mention/give notification. That's how embeds in discord work. That's why I'm asking for additional note outside of embed.

EDIT: https://discordapp.com/developers/docs/resources/channel#message-object
This apparently says that there is special field which allows to mention people.

from discord-notifier-plugin.

KocproZ avatar KocproZ commented on August 15, 2024

Hello again,
Adding a note outside an embed wouldn't work, there would be the same problem.
Basically to tag people from webhook or bot you have to tag them by their discord id.
You can get that by either tagging someone with \ (For example \@username#1234), or by enabling developer mode, then right clicking someone > copy id.
When you have their discord id, you put it between <@>, like this: <@123450000001234567>.
Hope it helps!

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

What about whole roles? I have "tester" role. And this notification is sent to the "testers" channels and I'd like it to mention preferably @here or that role. Maybe the fields mentioned in the message-object can be used for that?

EDIT: I've done some more testing on my own - nothing in embed causes a notification to pop up. If you want to tag someone it has to be done in content outside of the embed.

from discord-notifier-plugin.

KocproZ avatar KocproZ commented on August 15, 2024

Ok, now I get it, sorry for misunderstanding.
I will move the notes to the webhook content.
Also, to mention roles you have to put role id between <@&>, like this: <@&12345678900000>.

EDIT: link to hpi, please confirm if this is working

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

Yes, I tested with those IDs (<@&>) inside embed message sent by me using curl on my server with other people. They confirmed that they weren't tagged. Discord was smart enough to convert ID to the name of the group.

Sorry for the confusion with other message-object link.

I can't test right now but I trust you did good job with it so just release it.

Thanks again for dealing with me and coding all of this! :)

from discord-notifier-plugin.

furai avatar furai commented on August 15, 2024

Tested. Everything works perfectly! Thanks a ton!

One thing you might want to look into is this line:
https://github.com/jenkinsci/discord-notifier-plugin/blob/master/src/main/resources/nz/co/jammehcow/jenkinsdiscord/WebhookPublisher/help-notes.html#L2

from discord-notifier-plugin.

LLlKuIIeP avatar LLlKuIIeP commented on August 15, 2024

Are you sure what works? As soon as I tried it, it does not work.

from discord-notifier-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.