Repository Events Configuration Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Configure Workflow Triggers and Events

What you'll be asked

  1. Which repository event should you select if you want a workflow to execute every time a developer pushes code to the main branch?
  2. You want to trigger a workflow only when a pull request is opened or synchronized, but specifically exclude changes to the documentation files in the 'docs/' folder. How do you configure this?
  3. Which trigger type allows you to manually execute a workflow from the repository's UI or via an API call?
  4. If you need a workflow to run immediately after another workflow successfully completes, which trigger should you use?
  5. You have a workflow configured with 'on: pull_request: types: [opened]'. If a developer pushes a new commit to an existing open pull request, will the workflow trigger? Why?

Answers and explanations come after you submit.