-
Notifications
You must be signed in to change notification settings - Fork 10
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
Embed for project content? #28
Comments
That does look better 👍 Im not sure if I should just update the existing code to use this format, or maybe it would be best to provide some form of customistation for the embed. 🤔 |
I'm not sure how easy it would be to fit an indefinite number of publish results into a single embed. Ferry only generates at most three plus the mod loader badges. (Speaking of which, it would be cool to have automatic mod loader badges without needing to put the emotes into project configuration, but I don't know if that would be in scope for MPP.) We do limit the changelog to ten lines, though. I think I recall mention in one of the MPP issues of having MPP generate changelogs from GH. Ferry does this, if you're interested. However, Ferry requires the version numbers for the previous published version and the new published version as properties. Even so, it's a messy process. |
I dont have a solid idea for an nice API to allow customising of the webhook, Ill have a play and see what I can come up with. As for the changelogs I think this is worth a new issue to discuss. For Fabric and my own projects ive been using: https://github.com/FabricMC/fabric-action-scripts/blob/main/src/changelog.ts the problem is this is specific to github actions. |
Ive had a play and havent come up with a nice idea for this (gradle makes it kinda pain), my best idea is to have an option to select between diffrent styles? Such as the current one, and the one you suggested in this issue, the API would be something like:
(better names TBD)
Have you got any ideas how this would be done? |
Yeah ... I didn't have something better to suggest. Outside allowing the user to pass in a complete embed definition, which seems likely too technical for the API style you've provided.
Yeah, that works for me. I agree it's probably the simplest option. And then a couple optional settings that get ignored if the style is classic.
In the scope of Minecraft modding, there are only a few loaders; MPP could just keep its own list of the loader badges and emit them at the bottom of the embed or in an extra (optional?) embed based on what loaders are in the settings ( |
The PR for embed support was merged. |
It seems like things added in the PR have to be strings, probably unintentionally. For example, this config almost works[*] (note the quotes and the call to
|
About the hex, I originally made it with optional # and integer support, but @modmuss50 though it would be better to have it only as string. It makes sense, the number support was more to allow scripts that already used integer colors to be able to work easily, but that is a small set of scripts. It has been a while since I had worked on the script so I didn't remember much why I added integer support, and I guess we both forgot to update the docs on it 6e58d58#diff-e61f4a8c2ab2a88e08e1206c53815311505d11e38c13c0dd8e358ccb5755b390L317-R322 |
I have updated the docs to reflect what was merged. |
Not entirely, I think. Two things:
|
Re (1) above, here is an example of what happens if they are not quoted: |
This was also a miss on the documentation, it used to not require it, but it was changed to string as it was proffered than the way it was being done before
I'll work on improving this on the documentation |
I would expect it to work the same as
👍 Thanks! |
I've been working on trying to use MPP in Ferry so I don't have to maintain a hot mess of gradle script to publish Terraformers mods. There are a few things I haven't figured out how to reproduce in MPP's Discord publishing. I'll show how Ferry creates its Discord message below.
The main thing I'm wondering is would you consider using an embed for the project data? This would allow setting a thumbnail on the project content, and it would also allow setting the embed color to the project's color scheme.
Here is the Ferry code for Discord messages:
The text was updated successfully, but these errors were encountered: