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
As a Minder rule author
I want to write a rule that comments on a pull request if there is an evaluation failure
so that I can alert the PR author in the environment they are already using
Background
We already have existing ruletypes that comment on pull requests (e.g trusty and OSV), but there is nothing in the ruletype definition that explicitly states that commenting will be the action taken if the PR is not compliant.
Furthermore, the logic to comment on a PR is internal to Minder and not available to be reused by external authors of new ruletypes.
Acceptance Criteria
Given that I'm a Minder user
and I've written a rule with the alert type pull_request_comment
and the rule is part of a profile on my project
when the rule evaluation fails
then Minder comments on my pull request
Given I have a rule in a profile with the alert type pull_request_comment
and I've defined the review_message in my alert as "This PR has issues"
then Minder comments on my pull request with the message "This PR has issues"
User Story Description
As a Minder rule author
I want to write a rule that comments on a pull request if there is an evaluation failure
so that I can alert the PR author in the environment they are already using
Background
We already have existing ruletypes that comment on pull requests (e.g trusty and OSV), but there is nothing in the ruletype definition that explicitly states that commenting will be the action taken if the PR is not compliant.
Furthermore, the logic to comment on a PR is internal to Minder and not available to be reused by external authors of new ruletypes.
Acceptance Criteria
and I've written a rule with the alert type
pull_request_comment
and the rule is part of a profile on my project
when the rule evaluation fails
then Minder comments on my pull request
pull_request_comment
and I've defined the
review_message
in my alert as "This PR has issues"then Minder comments on my pull request with the message "This PR has issues"
Additional Resources
No response
Tasks
The text was updated successfully, but these errors were encountered: