You manage repositories with GitHub and need a PowerShell script to run automatically before rebase operations. Which mechanism should you use to trigger the script?
Choose an answer
Tap an option to check your answer.
Correct answer: a webhook.
Why this is the answer
A webhook is the correct mechanism because it allows GitHub to send an HTTP POST payload to a specified URL when certain events occur, such as a rebase operation. This payload can then trigger an external script, like your PowerShell script, to execute. A package is a collection of compiled code or resources and doesn't inherently trigger actions based on repository events. GitHub Copilot is an AI-powered code completion tool, not a mechanism for event-driven script execution. A gist is a way to share code snippets and doesn't have the functionality to trigger actions on repository events.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed