QuestionQ1

Author and manage workflows

What is the output of the following event-trigger block in a workflow?

Question Image

  • A It throws a workflow syntax error, pointing to the types definition in issue_comment event.
  • B It runs the workflow when an issue or issue comment in the workflow's repository is created or modified.
  • C It runs the workflow when an issue is edited or when an issue comment created.
  • D It runs the workflow when an issue is created or edited, or when an issue or pull request comment is created.
  • E It throws a workflow syntax error, pointing to the types definition in issues event.
Explanation

GitHub Actions supports the issues event with the opened and edited activity types, and the issue_comment event with the created activity type. The issue_comment event applies to comments on both issues and pull requests. Consequently, the workflow runs when an issue is created (opened) or edited, or when a comment is created on an issue or pull request.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!