development tooling, dependency management, and documentation#54
development tooling, dependency management, and documentation#54JaclynCodes merged 19 commits intocopilot/add-codeql-analysis-workflowfrom
Conversation
…orkflow Add comprehensive copilot-instructions.md for repository onboarding
…t contain permissions"
Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
Created a template for a custom agent configuration. Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
- Fix jd package import to use lib subpackage - Replace range over int with traditional for loop for Go 1.23 compatibility - Update golangci-lint configuration to use modern syntax - All tests now pass and linting succeeds Co-authored-by: openhands <openhands@all-hands.dev>
Fix failing GitHub Actions
- Update golangci-lint version from v2.x to v1.60.1 in both script and workflow - Fix PATH issue in license scripts to include Go bin directory - Update third-party license files to match current dependencies Co-authored-by: openhands <openhands@all-hands.dev>
Revert "Potential fix for code scanning alert no. 1: Workflow does not contain permissions"
Bumps golang from 1.24.4-alpine to 1.25.4-alpine. --- updated-dependencies: - dependency-name: golang dependency-version: 1.25.4-alpine dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @JaclynCodes, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the project's development environment by updating core tooling and dependencies. It focuses on improving code quality through a major upgrade of the Go linter and modernizing its configuration. Additionally, it ensures the use of the latest Go version for builds, refines dependency management, and boosts the reliability of test and build scripts. The PR also expands documentation with a new agent configuration template and a comprehensive overview of the Ubuntu 24.04 runner, streamlining future development and maintenance efforts. Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request provides a solid set of updates for development tooling, dependency management, and documentation. The modernization of the golangci-lint configuration and the update of the Go version and other dependencies are valuable improvements. I've identified a couple of minor issues in the documentation that should be addressed for accuracy and clarity. Specifically, there's an incorrect version number in the Copilot instructions and a potentially unintentional filename for the new Ubuntu runner README. Overall, these are great changes that will improve the development workflow.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This pull request focuses on modernizing development tooling and dependency management for the GitHub MCP Server. The changes include updating the golangci-lint version, fixing a range loop bug for Go version compatibility, updating dependency references, and adding new configuration templates.
Key changes include:
- Downgrading golangci-lint from v2.2.1 to v1.60.1 with modernized configuration structure
- Fixing a test bug that used Go 1.23+ range-over-integer syntax
- Updating the jd library import path from v2 to lib
Reviewed changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/lint.yml |
Updates golangci-lint version to v1.60.1 |
.github/workflows/close-inactive-issues.yml |
Modifies indentation (appears to be unintentional whitespace change) |
.github/copilot-instructions.md |
Updates linter version documentation (with inconsistency) |
.github/agents/my-agent.agent.md |
Adds new agent configuration template |
.golangci.yml |
Modernizes linter configuration for v1.60.1 compatibility |
Dockerfile |
Updates Go base image version |
script/lint |
Updates golangci-lint version to v1.60.1 |
script/licenses |
Adds GOPATH/bin to PATH for tool execution |
script/licenses-check |
Adds GOPATH/bin to PATH for tool execution |
pkg/github/issues_test.go |
Fixes range loop to use traditional syntax for compatibility |
internal/toolsnaps/toolsnaps.go |
Updates jd library import path |
third-party-licenses.*.md |
Updates dependency version references for jd and mcp-go |
third-party/golang.org/x/exp/LICENSE |
Removes unused dependency license |
third-party/github.com/yudai/golcs/LICENSE |
Removes unused dependency license |
third-party/github.com/josephburnett/jd/lib/LICENSE |
Adds license for updated jd library path |
| script/lint | ||
| ``` | ||
| This runs `gofmt -s -w .` followed by `golangci-lint run` with version v2.2.1. The linter configuration is in `.golangci.yml`. | ||
| This runs `gofmt -s -w .` followed by `golangci-lint run` with version v1.60.1. The linter configuration is in `.golangci.yml`. |
There was a problem hiding this comment.
The golangci-lint version documented here is inconsistent with the actual version being used. The script/lint file and .github/workflows/lint.yml both specify v1.60.1, but this documentation incorrectly states v2.1. This should be updated to v1.60.1 to match the actual tooling version.
There was a problem hiding this comment.
@copilot open a new pull request to apply changes based on this feedback
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
|
@JaclynCodes I've opened a new pull request, #56, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2dc2c0f
into
copilot/add-codeql-analysis-workflow
) * Revert "Potential fix for code scanning alert no. 1: Workflow does not contain permissions" * Update stale action to specific commit version * Add custom agent template for repository Created a template for a custom agent configuration. * Update .github/copilot-instructions.md * Fix failing GitHub Actions - Fix jd package import to use lib subpackage - Replace range over int with traditional for loop for Go 1.23 compatibility - Update golangci-lint configuration to use modern syntax - All tests now pass and linting succeeds * Fix failing GitHub Actions workflows - Update golangci-lint version from v2.x to v1.60.1 in both script and workflow - Fix PATH issue in license scripts to include Go bin directory - Update third-party license files to match current dependencies * Bump golang from 1.24.4-alpine to 1.25.4-alpine (#30) Bumps golang from 1.24.4-alpine to 1.25.4-alpine. --- updated-dependencies: - dependency-name: golang dependency-version: 1.25.4-alpine dependency-type: direct:production update-type: version-update:semver-minor ... * Add files via upload * Update close-inactive-issues.yml * Onboarding (#34) (#41) * Update .github/copilot-instructions.md * Initial plan (#55) * Update .github/agents/my-agent.agent.md * Update .github/workflows/close-inactive-issues.yml * Initial plan (#56) --------- Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This pull request includes several updates to development tooling, dependency management, and documentation. The main focus is on updating the Go linter (
golangci-lint) version and configuration, modernizing dependencies, and improving test and build scripts. There are also updates to licensing documentation and the addition of a new agent configuration file.Tooling and Dependency Updates:
golangci-lintversion fromv2.2.1tov1.60.1in the GitHub Actions workflow (.github/workflows/lint.yml), lint script (script/lint), and documentation (.github/copilot-instructions.md) to ensure compatibility and stability. [1] [2] [3]Dockerfilefromgolang:1.24.4-alpinetogolang:1.25.4-alpineto use the latest Go version for builds.jdlibrary to usegithub.com/josephburnett/jd/libinstead ofjd/v2for consistency with dependency updates.third-party-licenses.darwin.md, includingjd/libandmark3labs/mcp-go.Linter Configuration Improvements:
.golangci.ymlby removing the obsoleteversionfield, restructuring exclusions to useissues.exclude-dirs,exclude-files, andexclude-generated, and updating linter settings for better compatibility with newergolangci-lintversions. [1] [2]Script and Test Fixes:
pkg/github/issues_test.gowhere a range loop incorrectly iterated over an integer instead of a slice, improving test reliability.PATHenvironment variable inscript/licensesandscript/licenses-checkfor correct tool execution. [1] [2]Documentation and Metadata:
.github/agents/my-agent.agent.mdas a template for defining custom agents in the repository.Ubuntu2404-Readme (1).mddocumenting the Ubuntu 24.04 runner environment, including installed software, tools, and environment variables.Licensing Documentation:
Updated third-party license documentation to reflect dependency changes, removing unused packages and updating versions as needed. [1] [2]<!--
Thank you for contributing to GitHub MCP Server!
Please reference an existing issue:
Closes #NUMBERScreenshots or videos of changed behavior is incredibly helpful and always appreciated.
Consider addressing the following:
-->
Closes: