Comment Pull Request Under Certain Conditions
Welcome New Users, Display Error Messages and Warnings for Empty Descriptions
workflows:
- name: welcome-user
run:
if: $pullRequestCountBy($author()) == 1
then: $commentOnce("Well done! This is your first contribution.")
- name: comment-on-empty-description
run:
if: $description() == ""
then: $error("The description of the pull request cannot be empty.")
- name: comment-on-pull-request
description: Example comment on pull request
run:
if: $description() != ""
then:
- $info("Thanks for this pull request!")
- $warn("Please make sure the CI is green before merging.")