Zulip Chat Archive

Stream: Zulip meta

Topic: pr emoji


Matthew Ballard (Aug 03 2022 at 19:34):

Is there a "PR submitted" emoji?

Johan Commelin (Aug 04 2022 at 05:26):

Not yet. Feel free to add it (-;

Matthew Ballard (Aug 04 2022 at 18:07):

It seems that this is canonical one.

Matthew Ballard (Aug 04 2022 at 18:07):

I lack permissions to add it.

Johan Commelin (Aug 05 2022 at 04:37):

@Matthew Ballard Done :pull-request: :pull-request: :pull-request: :pull-request: :wink:

Mario Carneiro (Aug 05 2022 at 04:49):

The icon is squahed

Mario Carneiro (Aug 05 2022 at 04:49):

also I would suggest making it purple like github's

Mario Carneiro (Aug 05 2022 at 04:50):

black on transparent is terrible for dark mode users

Kyle Miller (Aug 05 2022 at 04:59):

How is this one? :pr-open:

It's the open pull request icon from GitHub

Mario Carneiro (Aug 05 2022 at 05:03):

github dark mode uses #3fb950 on transparent, does that work on light too?

Johan Commelin (Aug 05 2022 at 05:04):

I agree that it looks better.

Johan Commelin (Aug 05 2022 at 05:04):

I'll delete mine, and free up the :pull-request: emoji tag.

Matthew Ballard (Aug 05 2022 at 14:30):

A natural question: should the closed PR emoji also be added?

Adam Topaz (Aug 05 2022 at 14:51):

I think the :merge: emoji would suffice for that?

Matthew Ballard (Aug 05 2022 at 14:56):

That is merged though

Matthew Ballard (Aug 05 2022 at 14:56):

Like oh I need to work more on this PR so I am closing it for now.

Matthew Ballard (Aug 05 2022 at 14:58):

Like this

Alex J. Best (Aug 05 2022 at 15:00):

People tend not to do that on the mathlib GitHub for whatever reason (maybe they still want ci to make oleans for them) it's far more common to just mark a pr as WIP, or needs-work or needs-adoption or some such.

Eric Wieser (Aug 16 2022 at 12:47):

Perhaps we can ask Zulip to allow separate images for dark/light mode emojis?

Damiano Testa (Jan 21 2025 at 08:07):

Matthew Ballard said:

Like this

Screen Shot 2022-08-05 at 10.58.18 AM.png

Would it be possible to add this emoji?

For context, I am planning to expand the automated emoji reactions on PRs that have been closed and not merged, so that the bot will post this icon on messages that mention the PR.

Damiano Testa (Jan 21 2025 at 08:09):

I don't mind the name, but I can suggest :closed-pr:, for inspiration! :smile:

It is the name that I used in #20902.

Johan Commelin (Jan 21 2025 at 12:27):

:closed-pr:

Eric Wieser (Jan 21 2025 at 13:04):

Can I tempt someone into making a non-ugly transparent one?

Damiano Testa (Jan 21 2025 at 13:04):

I kind of agree with Kim that the emoji is not very pretty (although I find the emoji for :ugly: very inappropriate!).

Damiano Testa (Jan 21 2025 at 13:05):

What about using :broken_heart: ? Or something else that is already available?

Kim Morrison (Jan 21 2025 at 14:18):

The new emoji would be great if it were transparent (or even if it just didn't touch the top and right edges).

Kim Morrison (Jan 21 2025 at 14:19):

(Separately, I'd be happy to learn what's wrong with the :ugly: emoji, I feel I must be missing some cultural knowledge. :-)

Damiano Testa (Jan 21 2025 at 14:34):

Here is an attempt at manually making the background transparent.

Screen Shot 2022-08-05 at 10.58.18 AM_2.png

Damiano Testa (Jan 21 2025 at 14:35):

Wrt to ugly duckling, I think that it is more of a personal view, than cultural knowledge.

I never liked the story and I always felt there must be better ways to learn about bullying and physical differences! :upside_down:

Eric Wieser (Jan 21 2025 at 14:59):

You could start over with https://primer.style/foundations/icons/git-pull-request-closed-16 and draw a red circle under it

Eric Wieser (Jan 21 2025 at 14:59):

Or just recolor it to red

Damiano Testa (Jan 21 2025 at 15:23):

I don't feel that I am very good at this...

imageedit_8_6513378514.png

Eric Wieser (Jan 21 2025 at 16:06):

The trick is to modify the SVG then save to PNG, not save to PNG then recolor

Damiano Testa (Jan 21 2025 at 16:14):

Well, what I did was take a screenshot of the image you linked and then googled for "change color in a picture".

Damiano Testa (Jan 21 2025 at 16:15):

When I copy the SVG, I get something that looks like HTML: I do not know how to convert that to something that I can edit...

Julian Berman (Jan 21 2025 at 16:40):

https://www.vectorpea.com/

Damiano Testa (Jan 21 2025 at 16:45):

Untitled-11.png

Damiano Testa (Jan 21 2025 at 16:45):

Thanks Julian! My best attempt so far...

Damiano Testa (Jan 21 2025 at 20:52):

While the discussion about the emoji rages, the PR got merged. Let's see if the action works.

I am going to use #20750 as a test: I will close it, and let's see if the bot flags it as closed!

Damiano Testa (Jan 21 2025 at 20:54):

It worked!

Damiano Testa (Jan 21 2025 at 21:05):

I will now create a PR that removes the reaction, in case the PR gets re-opened, since I had forgotten about this eventuality.

Damiano Testa (Jan 21 2025 at 21:07):

Meanwhile, I would be happy for some help with the emoji, since the current one does not seem satisfactory! :smile:

Johan Commelin (Jan 22 2025 at 07:28):

:closed-pr:

Damiano Testa (Jan 22 2025 at 07:39):

Thanks, Johan this is much nicer than my attempts!!

Damiano Testa (Jan 22 2025 at 07:42):

By the way, #20941 contains a correction to the script that removes the reaction, when the PR is reopened, in case someone feels like merging it... :smile:

(I'll include a link to the test PR for closure, to see the interaction: do not merge this #20750!)

Damiano Testa (Jan 22 2025 at 08:53):

I hope that #20942 is the last iteration.

The new emoji has the same name, but different emoji_code! So, the script now adds the new emoji, but removes theold one (as you can see from the comment above, where there is only the new closed-pr emoji).

#20942 uses the new emoji_code, so that the script should now add and remove the correct emoji!

Damiano Testa (Jan 22 2025 at 09:04):

It works as intended now!

Damiano Testa (Jan 22 2025 at 09:06):

Well, that only took 5 PRs and two changes to the local emojis. :man_facepalming:

Kevin Buzzard (Jan 22 2025 at 10:56):

I can't really see the merge emoji in dark mode btw ;-)

Kevin Buzzard (Jan 22 2025 at 10:56):

Screenshot_20250122-105610_Zulip.png

Damiano Testa (Jan 22 2025 at 11:45):

Kevin, I'm sure that 7 PRs and 4 emoji changes on Zulip can fix that.


Last updated: May 02 2025 at 03:31 UTC