Skip to content

Commit 8838a81

Browse files
authored
Merge branch 'main' into ci-presubmit
2 parents 3ad9550 + 1a5a1aa commit 8838a81

10 files changed

Lines changed: 49 additions & 14 deletions

.github/workflows/header-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: 'Checkout Repository'
27-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
27+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2828

2929
- name: Check License Header
3030
uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0

.github/workflows/json-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out code
26-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
26+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2727

2828
- name: Run JSON Lint
2929
run: jq . gemini-extension.json

.github/workflows/markdown-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Check out code
27-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
27+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2828

2929
- name: Link Checker
3030
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0

.github/workflows/package-and-upload-assets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout code at the new tag
42-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
42+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
4343
with:
4444
ref: ${{ github.event.release.tag_name }}
4545

@@ -103,7 +103,7 @@ jobs:
103103
echo "ARCHIVE_PATH=${ARCHIVE_NAME}" >> $GITHUB_OUTPUT
104104
105105
- name: Upload archive as workflow artifact
106-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
106+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
107107
with:
108108
name: ${{ steps.vars.outputs.archive_name }}
109109
path: ${{ steps.create_archive.outputs.ARCHIVE_PATH }}
@@ -117,10 +117,10 @@ jobs:
117117
contents: write
118118
steps:
119119
- name: Checkout code
120-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
120+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
121121

122122
- name: Download all archives from workflow artifacts
123-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
123+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
124124
with:
125125
path: release-archives
126126

.github/workflows/presubmit-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Check out code
25-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
25+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2626

2727
- name: Install Gemini CLI
2828
run: npm install @google/gemini-cli
@@ -34,6 +34,12 @@ jobs:
3434
chmod +x toolbox
3535
3636
- name: Install Extension
37+
<<<<<<< ci-presubmit
3738
run: npx gemini extensions validate .
3839
env:
39-
GEMINI_API_KEY: "placeholder"
40+
GEMINI_API_KEY: "placeholder"
41+
=======
42+
env:
43+
GEMINI_API_KEY: "placeholder"
44+
run: yes | npx gemini extensions install .
45+
>>>>>>> main

.github/workflows/sync-labels.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
issues: 'write'
3030
pull-requests: 'write'
3131
steps:
32-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
32+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3333
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.2.0"
2+
".": "0.2.1"
33
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.2.1](https://github.com/gemini-cli-extensions/postgres/compare/0.2.0...0.2.1) (2026-01-30)
4+
5+
6+
### Features
7+
8+
* add Configuration settings ([#75](https://github.com/gemini-cli-extensions/postgres/issues/75)) ([2df656a](https://github.com/gemini-cli-extensions/postgres/commit/2df656ae1b0e614437d21725e7e96a4c56bd68c9))
9+
310
## [0.2.0](https://github.com/gemini-cli-extensions/postgres/compare/0.1.5...0.2.0) (2026-01-26)
411

512

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,27 @@ gemini extensions install https://github.com/gemini-cli-extensions/postgres
4141

4242
### Configuration
4343

44-
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
44+
You will be prompted to configure the following settings during installation. These settings are saved in an `.env` file within the extension's directory.
45+
46+
* `POSTGRES_HOST`: (Optional) The Postgres host. Defaults to `localhost`.
47+
* `POSTGRES_PORT`: (Optional) The Postgres port. Defaults to `5432`.
48+
* `POSTGRES_DATABASE`: The name of the database to connect to.
49+
* `POSTGRES_USER`: The database username.
50+
* `POSTGRES_PASSWORD`: The password for the database user.
51+
52+
To view or update your configuration:
53+
54+
**List Settings:**
55+
* Terminal: `gemini extensions list`
56+
* Gemini CLI: `/extensions list`
57+
58+
**Update Settings:**
59+
* Terminal: `gemini extensions config postgres [setting name] [--scope <scope>]`
60+
* `setting name`: (Optional) The single setting to configure.
61+
* `scope`: (Optional) The scope of the setting in (`user` or `workspace`). Defaults to `user`.
62+
* Currently, you must restart the Gemini CLI for changes to take effect. We recommend using `gemini --resume` to resume your session.
63+
64+
Alternatively, you can manually set these environment variables before starting the Gemini CLI:
4565

4666
```bash
4767
export POSTGRES_HOST="<your-postgres-host>" # Optional: defaults to localhost
@@ -51,6 +71,9 @@ export POSTGRES_USER="<your-database-user>"
5171
export POSTGRES_PASSWORD="<your-database-password>"
5272
```
5373

74+
> [!NOTE]
75+
> See [Troubleshooting](#troubleshooting) for debugging your configuration.
76+
5477
### Start Gemini CLI
5578

5679
To start the Gemini CLI, use the following command:
@@ -113,7 +136,6 @@ Use `gemini --debug` to enable debugging.
113136

114137
Common issues:
115138

116-
* "failed to find default credentials: google: could not find default credentials.": Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. See [Set up Application Default Credentials](https://cloud.google.com/docs/authentication/external/set-up-adc) for more information.
117139
* "✖ Error during discovery for server: MCP error -32000: Connection closed": The database connection has not been established. Ensure your configuration is set via environment variables.
118140
* "✖ MCP ERROR: Error: spawn /Users/USER/.gemini/extensions/postgres/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
119141
* "cannot execute binary file": The Toolbox binary did not download correctly. Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://googleapis.github.io/genai-toolbox/getting-started/introduction/#installing-the-server) for more information.

gemini-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postgres",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Connect and interact with a PostgreSQL database and data",
55
"mcpServers": {
66
"postgresql": {

0 commit comments

Comments
 (0)