diff --git a/contribs/github-bot/internal/check/comment.go b/contribs/github-bot/internal/check/comment.go index 434df8f9e76..297395ffe4b 100644 --- a/contribs/github-bot/internal/check/comment.go +++ b/contribs/github-bot/internal/check/comment.go @@ -28,7 +28,7 @@ var ( // Regex for capturing only the checkboxes. checkboxes = regexp.MustCompile(`(?m:^- \[[ x]\])`) // Regex used to capture markdown links. - markdownLink = regexp.MustCompile(`\[(.*)\]\(.*\)`) + markdownLink = regexp.MustCompile(`\[(.*)\]\([^)]*\)`) ) // These structures contain the necessary information to generate diff --git a/contribs/github-bot/internal/config/config.go b/contribs/github-bot/internal/config/config.go index ac1d185f759..c1d89e4cde5 100644 --- a/contribs/github-bot/internal/config/config.go +++ b/contribs/github-bot/internal/config/config.go @@ -27,12 +27,12 @@ type ManualCheck struct { func Config(gh *client.GitHub) ([]AutomaticCheck, []ManualCheck) { auto := []AutomaticCheck{ { - Description: "Maintainers must be able to edit this pull request", + Description: "Maintainers must be able to edit this pull request ([more info](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork))", If: c.Always(), Then: r.MaintainerCanModify(), }, { - Description: "The pull request head branch must be up-to-date with its base", + Description: "The pull request head branch must be up-to-date with its base ([more info](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/keeping-your-pull-request-in-sync-with-the-base-branch))", If: c.Always(), Then: r.UpToDateWith(gh, r.PR_BASE), },