Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Make relatedTicket mandatory in the PR's description #94

Merged
merged 4 commits into from
Jul 29, 2020

Conversation

atomiix
Copy link
Contributor

@atomiix atomiix commented Jun 30, 2020

Questions Answers
Description? This PR aims to make the "Fixed ticket" field of the PR's description mandatory
Type? new feature
BC breaks? no
Deprecations? no
Fixed ticket? Partially fixes PrestaShop/prestashop-retro#67
How to test? Tests must pass

Copy link
Contributor

@matks matks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I am very sorry but I am against this PR as it is.

I have checked the last 10 PRs submitted, see all of these examples, from both PrestaShop team and the community, they are all relevant and have no ticket linked:

Requiring a ticket for all of these issues is irrelevant and will just make the contribution process heavier and more annoying. Not everything has to be written in a ticket. If I upgrade symfony from v3.4.27 to v3.4.28 should I create a ticket for it ?

You see what I mean 😉 I advocate here for some pragmatism.

We can improve this PR by finding a better message. Something like "a ticket is very important, if your PR fixes an issue it must be reported" or "it is possible to send a PR without a related ticket but it might not be considered a priority".

The idea is to highlight the benefits and needs of a ticket while allowing relevant PRs to avoid needing one 😉

@@ -142,11 +142,13 @@ public function isARefacto()
}

/**
* @Assert\NotBlank(message = "Each pull request should have a ticket linked. Please link it to an existing issue or create a new issue so that it can be reviewed and tested.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @Assert\NotBlank(message = "Each pull request should have a ticket linked. Please link it to an existing issue or create a new issue so that it can be reviewed and tested.")
* @Assert\NotBlank(message = "Each pull request should have a ticket linked. Please link it to an existing issue or [create a new issue](https://github.com/PrestaShop/PrestaShop/issues/new/choose) so that it can be reviewed and tested.")

Copy link
Member

@Progi1984 Progi1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LouiseBonnard
Copy link

Hi @atomiix, the message has been reworded, cf. PrestaShop/prestashop-retro#67 (comment).

@LouiseBonnard
Copy link

@matks, I don't have the right to request your review so here is a little ping to ask for your review, thanks!

@matks
Copy link
Contributor

matks commented Jul 24, 2020

@matks, I don't have the right to request your review so here is a little ping to ask for your review, thanks!

Here we go 😊 it's ✅

@atomiix atomiix merged commit 5e5030e into PrestaShop:master Jul 29, 2020
@atomiix atomiix deleted the related_ticket branch July 29, 2020 08:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add bots to improve productivity and engagement
5 participants