All automations are required to have both a @task and @on decorator to be registered with the blocks push command.
@task(name="my-automation")
@on("github.pull_request")
def automation(event):
    pass
The order of the decorators can be interchanged.
For the full list of supported arguments, see @task and @on decorators.