You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Check if PR description exists #45
Hi, I'm wondering if there can be a boolean flag to check if a PR description exists. I'd like to be able to check if a description exists given a specific pattern for PR title :)
This is valid since there is text in the description
This is invalid since there is no text in the description
Currently if the second PR is submitted and the excludeTitle flag is true, the action succeeds with the message No commits found in the payload, skipping check.
Unfortunately that doesn't work. If the description is empty while the excludeTitle flag is set to true, the action skips any checks and displays No commits found in the payload, skipping check.
Unfortunately that doesn't work. If the description is empty while the excludeTitle flag is set to true, the action skips any checks and displays No commits found in the payload, skipping check.
Why do you need to set excludeTitle at all? And did you set excludeTitle to true? Without only the PR descriptioin is takken into account.
Activity
gilbertsoft commentedon Aug 13, 2021
@anthonyma94 can you please provide some more information, I don't fully understand what you are trying to achieve. Some examples may be good...
anthonyma94 commentedon Aug 13, 2021
Sorry about that, I'll include some examples:
This is valid since there is text in the description

This is invalid since there is no text in the description

Currently if the second PR is submitted and the
excludeTitleflag istrue, the action succeeds with the messageNo commits found in the payload, skipping check.gilbertsoft commentedon Aug 13, 2021
If you like to enforce a description something like this may do it:
"$.+\n\n.+"
Does this help or do you still need something else?
anthonyma94 commentedon Aug 16, 2021
Unfortunately that doesn't work. If the description is empty while the
excludeTitleflag is set totrue, the action skips any checks and displaysNo commits found in the payload, skipping check.gilbertsoft commentedon Aug 17, 2021
Why do you need to set
excludeTitleat all? And did you set excludeTitle to true? Without only the PR descriptioin is takken into account.anthonyma94 commentedon Aug 17, 2021
I wanted to check for description based on the title regex. Do you have any suggestions for that?