Closed Suleman70 closed 3 months ago
pictures for the PR description please. before and after. thanks
Is there no better purple color for completed? It seems too bright for me and doesn't match the color that GitHub uses.
Reference image:
while we're at it, also change other colors to be github themed
while we're at it, also change other colors to be github themed
What do you mean exactly? The other ones are GitHub themed already, no?
I am not sure whether it is possible with GHIssue to determine whether an PR has been merged or not.
For example this is an PR that has been closed and merged:
Its "closed" but has no state reason, so i am not sure how to detect whether it was merged
The classes: GHIssue and its inner static class: PullRequest dont have any relevant fields to determine this.
Does anyone have suggestions?
while we're at it, also change other colors to be github themed
Is there any particular color that i should change? The green could be darker, but the red and gray looks good.
I am not sure whether it is possible with GHIssue to determine whether an PR has been merged or not.
For example this is an PR that has been closed and merged:
Its "closed" but has no state reason, so i am not sure how to detect whether it was merged
The fields in GHIssue and its inner static class: PullRequest dont have any relevant fields to determine this.
Does anyone have suggestions?
I might be out of context but we use kohsuke github api for java right?
I found this GHPullRequest#isMerged
method:
https://github-api.kohsuke.org/apidocs/org/kohsuke/github/GHPullRequest.html#isMerged()
I am not sure whether it is possible with GHIssue to determine whether an PR has been merged or not. For example this is an PR that has been closed and merged:
Its "closed" but has no state reason, so i am not sure how to detect whether it was merged The fields in GHIssue and its inner static class: PullRequest dont have any relevant fields to determine this. Does anyone have suggestions?
I might be out of context but we use kohsuke github api for java right? I found this
GHPullRequest#isMerged
method: https://github-api.kohsuke.org/apidocs/org/kohsuke/github/GHPullRequest.html#isMerged()
Thank you so much, I will look into this.
It should now work for pull requests.
It should now work for pull requests.
"it should"? did you test it?
It should now work for pull requests.
"it should"? did you test it?
Yes. Ill Update the BEFORE and AFTER's with new Info
This is for issue #1074 - Make the github embed have more accurate colors
What I have Done:
Before:
After:
![image](https://github.com/Together-Java/TJ-Bot/assets/101219745/30f73094-813a-4aa0-b52e-8585608e33b4)
Before:
After:
![image](https://github.com/Together-Java/TJ-Bot/assets/101219745/d7128e59-7c19-4700-8929-49a4f4a9f038)
3.For PR's that are "drafts", they become gray but lighter than "not planned" issues, so that it could be differentiated.
Before:
After:
![image](https://github.com/Together-Java/TJ-Bot/assets/101219745/b12156bd-ffb4-4e9a-8ad1-e81f0b1ccc19)
Before:
After:
![image](https://github.com/Together-Java/TJ-Bot/assets/101219745/627af7af-5f75-43b6-b2f8-67d2015718ef)