The webhook can be configured on the repo or on the org level
workflow_runs
eventswebhookSecret
configured to the same value as in val town secrets (line 7)(else response is 401: Not verified
)
It will only approve if all of the following conditions are met:
action
is completed
, the workflow_run.conclusion
has to be success
, and the event is related to exactly one pull request202: Ignored (event)
)allowedAuthors
(line 5)202: Ignored (pr author)
)githubApiToken
configured in line 9 needs to have repo
access to the related repository50x: some error message
)202: Ignored (branch protection)
)202: Ignored (pr status)
)202: Ignored (pr checks)
)dryRun
is false
(line 3)200: Would have been approved (dryRun)
)If it approves the PR, it leaves a comment pointing to the website of this val.
Migrated from folder: webhooks/githubWebhookApproveDependencyPRs