Skip to content

Use a grey :PRDraft: emoji for the .pr command if the PR is a draft #661

@ToxicKidz

Description

@ToxicKidz

Description

Currently, the .issue | .pr command uses a green open pull request emoji when showing open pull requests. Although, when pull requests are drafts in Github, then the colour of the sign will be grey. For example, #623 is a draft PR, and doing .pr 623 currently looks like this:
green-pr-emoji

However, it really should look like this:
grey-pr-emoji

Reasoning

I think it would make more sense when it is a draft pr that it should be grey instead of green.

Proposed Implementation

After having a :PRDraft: emoji, check if json_data["draft"] is True, and if it is, use the :PRDraft: emoji.

Would you like to implement this yourself?

  • I'd like to implement this feature myself
  • Anyone can implement this feature

Metadata

Metadata

Assignees

Labels

status: approvedThe issue has received a core developer's approvaltype: featureRelating to the functionality of the application.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions