Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
johnymontana committed Feb 24, 2025
1 parent 0e30f9e commit 12cfe62
Showing 1 changed file with 14 additions and 29 deletions.
43 changes: 14 additions & 29 deletions modus-gh-issue-summarizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,23 @@ Discussion.
First, install Modus CLI:

```bash
npm install -g @hypermodeinc/modus
npm install -g @hypermodeinc/modus-cli
```

We'll be using Go for this project so you'll also want to make sure you have
[Go](https://go.dev/doc/install) and [TinyGo](https://tinygo.org/getting-started/install/) installed
as well.

### 2️⃣ Clone the Repository

```bash
git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
cd YOUR_REPO
```

### 3️⃣ Start the Modus Dev Server
### 2️⃣ Start the Modus Dev Server

```bash
modus dev
```

### 4️⃣ Test the API Locally
### 3️⃣ Test the API Locally With Your GitHub Repository

To test the API locally you'll need a public GitHub repository and a GitHub issue number to use for
the knowledge base article.

Go to: `http://localhost:8686/explorer`

Expand All @@ -53,34 +49,23 @@ can also post the KB Article as a Discussion. To do so, pass a GitHub API token

## 🚀 Deploying to Hypermode

To deploy the function to Hypermode:

TODO: deploy to Hypermode steps
See [the Hypermode docs for instructions](https://docs.hypermode.com/deploy) to deploy this project
to Hypermode.

Once deployed, copy your Hypermode endpoint, which will be used in the GitHub Action.

--

## 🔧 Setting Up the GitHub Action

This action allows the KB article to be generated automatically when an issue is closed.

### 1️⃣ Clone the Project & Deploy to Hypermode

If you haven't already:

```bash
git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git
cd YOUR_REPO
```

Copy your Hypermode endpoint as specified in the Hypermode console.
This action allows the KB article to be generated automatically when an issue is closed. Be sure to
follow the step above to deploy your Modus project to Hypermode.

### 2️⃣ Add the GitHub Action
### 1️⃣ Add the GitHub Action

Copy the issue-summarizer.yml file into in your repository:
Copy the `workflows/issue-summarizer.yml` file into in your repository:

### 3️⃣ Add Your Hypermode API Key to GitHub Secrets
### 2️⃣ Add Your Hypermode API Key to GitHub Secrets

1. Go to your GitHub repository.
2. Navigate to Settings → Secrets and variables → Actions.
Expand All @@ -89,7 +74,7 @@ Copy the issue-summarizer.yml file into in your repository:
5. Paste your Hypermode API key.
6. Save.

### 4️⃣ Done! 🎉
### 3️⃣ Done! 🎉

Now, every time a GitHub issue is closed, a KB article will be generated and posted as a GitHub
Discussion.
Expand Down

0 comments on commit 12cfe62

Please sign in to comment.