Autolink GITBOOK-NUM in GitHub and GitLab
If you want to automatically resolve your GitBook change request IDs (e.g. GITBOOK-123) in commits to links, you can enable this using GitHub’s Autolink references feature.Setting up autolink in GitHub
See instructions on GitHub’s documentation. Use the following URL format, wherespaceId corresponds to your space’s URL:
GITBOOK-14 into clickable links that take you directly to the change request in GitBook.
Customize the commit message template
When using GitBook with a monorepo, or when you have specific guidelines for commit messages, you might want to customize the message used by GitBook when pushing a commit to Git. The template can contain the following placeholders:{change_request_number}- unique numeric ID for the change request{change_request_subject}- the subject of the change request when merged, orNo subjectif none has been provided.
You can customize this template in your Git Sync configuration to match your team’s commit message conventions.