Skip to content

Commit 8a6cabf

Browse files
authored
Merge branch 'main' into feat/259/assign-reviewers
2 parents 6f21c3f + 721fd3e commit 8a6cabf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pkg/github/actions.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,11 @@ func trimContent(content string, tailLines int) (string, int) {
799799
lineCount := 0
800800
if tailLines > 0 {
801801

802-
// Count backwards to find the nth newline from the end
802+
// Count backwards to find the nth newline from the end and a total number of lines
803803
for i := len(content) - 1; i >= 0 && lineCount < tailLines; i-- {
804804
if content[i] == '\n' {
805805
lineCount++
806+
// If we have reached the tailLines, trim the content
806807
if lineCount == tailLines {
807808
content = content[i+1:]
808809
}

script/generate-docs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
# This script generates documentation for the GitHub MCP server.
4+
# It needs to be run after tool updates to ensure the latest changes are reflected in the documentation.
5+
go run ./cmd/github-mcp-server generate-docs

0 commit comments

Comments
 (0)