|
| 1 | +#!/usr/bin/env bash |
| 2 | +# |
| 3 | +# Create and Publish GitHub Release v0.19.0 |
| 4 | +# |
| 5 | +# This script creates and publishes the v0.19.0 release for the GitHub MCP Server. |
| 6 | +# It requires a GitHub token with repo permissions. |
| 7 | +# |
| 8 | +# Usage: |
| 9 | +# export GH_TOKEN=your_github_token |
| 10 | +# ./script/create-release-v0.19.0.sh |
| 11 | +# |
| 12 | +# Or with gh CLI already authenticated: |
| 13 | +# ./script/create-release-v0.19.0.sh |
| 14 | + |
| 15 | +set -e |
| 16 | +set -o pipefail |
| 17 | + |
| 18 | +# Colors for output |
| 19 | +RED='\033[0;31m' |
| 20 | +GREEN='\033[0;32m' |
| 21 | +YELLOW='\033[1;33m' |
| 22 | +NC='\033[0m' # No Color |
| 23 | + |
| 24 | +# Configuration |
| 25 | +REPO="LadyKerr/github-mcp-server" |
| 26 | +TAG="v0.19.0" |
| 27 | +TITLE="GitHub MCP Server v0.19.0" |
| 28 | +TARGET_COMMIT="d216b545e91ca12d6b1bf204e7136aa93254bf82" |
| 29 | + |
| 30 | +# Release notes content |
| 31 | +read -r -d '' RELEASE_NOTES << 'EOF' || true |
| 32 | +# GitHub MCP Server 0.19.0 |
| 33 | +
|
| 34 | +## 📚 Documentation |
| 35 | +
|
| 36 | +- **Improved GHES/GHEC visibility in README** - Restructured documentation to better highlight GitHub Enterprise Server and GitHub Enterprise Cloud configuration, including fixing an error in the example URL. Addresses user feedback about lacking enterprise documentation. [#1210](https://github.com/github/github-mcp-server/pull/1210) by @tonytrg |
| 37 | +
|
| 38 | +## ✨ New Features |
| 39 | +
|
| 40 | +- **Optional unknown toolset handling** - Added ability to ignore unknown toolsets rather than raising an error, providing more flexible configuration options. [#1202](https://github.com/github/github-mcp-server/pull/1202) by @omgitsads |
| 41 | +
|
| 42 | +## 🔧 Maintenance & Refactoring |
| 43 | +
|
| 44 | +- **Consolidated pull request review tools** - Simplified the PR review tool interface by consolidating `create_and_submit_pull_request_review`, `create_pending_pull_request_review`, `submit_pending_pull_request_review`, and `delete_pending_pull_request_review` into a single `pull_request_review_write` tool with method parameters (`create`, `submit_pending`, `delete_pending`). Validated across models with no regressions. [#1192](https://github.com/github/github-mcp-server/pull/1192) by @almaleksia |
| 45 | +
|
| 46 | +- **Simplified Registry release pipeline** - Streamlined the registry publication workflow to use version tag triggers instead of repository dispatch, eliminating the need for elevated permissions. Added 5-minute availability check for Docker images before MCP Registry publication to improve reliability. [#1204](https://github.com/github/github-mcp-server/pull/1204) by @MattBabbage |
| 47 | +
|
| 48 | +--- |
| 49 | +
|
| 50 | +**Full Changelog**: https://github.com/github/github-mcp-server/compare/v0.18.0...v0.19.0 |
| 51 | +EOF |
| 52 | + |
| 53 | +echo -e "${YELLOW}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" |
| 54 | +echo -e "${YELLOW} GitHub MCP Server - Release Creator${NC}" |
| 55 | +echo -e "${YELLOW}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" |
| 56 | +echo "" |
| 57 | +echo "Repository: ${REPO}" |
| 58 | +echo "Tag: ${TAG}" |
| 59 | +echo "Title: ${TITLE}" |
| 60 | +echo "Target Commit: ${TARGET_COMMIT}" |
| 61 | +echo "" |
| 62 | + |
| 63 | +# Check if gh CLI is available |
| 64 | +if ! command -v gh &> /dev/null; then |
| 65 | + echo -e "${RED}✗ Error: gh CLI is not installed${NC}" |
| 66 | + echo "Please install gh CLI from: https://cli.github.com/" |
| 67 | + exit 1 |
| 68 | +fi |
| 69 | + |
| 70 | +echo -e "${GREEN}✓${NC} gh CLI is installed" |
| 71 | + |
| 72 | +# Check if authenticated |
| 73 | +if ! gh auth status &> /dev/null; then |
| 74 | + echo -e "${RED}✗ Error: gh CLI is not authenticated${NC}" |
| 75 | + echo "" |
| 76 | + echo "Please authenticate using one of these methods:" |
| 77 | + echo " 1. gh auth login" |
| 78 | + echo " 2. export GH_TOKEN=your_github_token" |
| 79 | + echo " 3. export GITHUB_TOKEN=your_github_token" |
| 80 | + exit 1 |
| 81 | +fi |
| 82 | + |
| 83 | +echo -e "${GREEN}✓${NC} gh CLI is authenticated" |
| 84 | +echo "" |
| 85 | + |
| 86 | +# Check if release already exists |
| 87 | +if gh release view "${TAG}" --repo "${REPO}" &> /dev/null; then |
| 88 | + echo -e "${YELLOW}⚠ Warning: Release ${TAG} already exists${NC}" |
| 89 | + echo "" |
| 90 | + read -p "Do you want to delete and recreate it? (y/N) " -n 1 -r |
| 91 | + echo |
| 92 | + if [[ $REPLY =~ ^[Yy]$ ]]; then |
| 93 | + echo "Deleting existing release..." |
| 94 | + gh release delete "${TAG}" --repo "${REPO}" --yes |
| 95 | + echo -e "${GREEN}✓${NC} Deleted existing release" |
| 96 | + else |
| 97 | + echo "Aborting." |
| 98 | + exit 1 |
| 99 | + fi |
| 100 | +fi |
| 101 | + |
| 102 | +# Check if tag already exists |
| 103 | +if git ls-remote --tags "https://github.com/${REPO}.git" | grep -q "refs/tags/${TAG}$"; then |
| 104 | + echo -e "${YELLOW}⚠ Warning: Tag ${TAG} already exists${NC}" |
| 105 | + echo "The release will be created using the existing tag." |
| 106 | + echo "" |
| 107 | +fi |
| 108 | + |
| 109 | +# Create temporary file for release notes |
| 110 | +NOTES_FILE=$(mktemp) |
| 111 | +echo "${RELEASE_NOTES}" > "${NOTES_FILE}" |
| 112 | + |
| 113 | +# Create and publish the release |
| 114 | +echo "Creating and publishing release ${TAG}..." |
| 115 | +echo "" |
| 116 | + |
| 117 | +if gh release create "${TAG}" \ |
| 118 | + --repo "${REPO}" \ |
| 119 | + --title "${TITLE}" \ |
| 120 | + --notes-file "${NOTES_FILE}" \ |
| 121 | + --target "${TARGET_COMMIT}"; then |
| 122 | + |
| 123 | + # Clean up |
| 124 | + rm -f "${NOTES_FILE}" |
| 125 | + |
| 126 | + echo "" |
| 127 | + echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" |
| 128 | + echo -e "${GREEN}✓ Successfully created and published release ${TAG}${NC}" |
| 129 | + echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" |
| 130 | + echo "" |
| 131 | + echo "🔗 View release: https://github.com/${REPO}/releases/tag/${TAG}" |
| 132 | + echo "" |
| 133 | +else |
| 134 | + # Clean up on error |
| 135 | + rm -f "${NOTES_FILE}" |
| 136 | + echo "" |
| 137 | + echo -e "${RED}✗ Failed to create release${NC}" |
| 138 | + exit 1 |
| 139 | +fi |
0 commit comments