Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lovely-papers-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"google-workspace-developer-tools": patch
---

Fix broken readme link.
5 changes: 5 additions & 0 deletions .changeset/odd-insects-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"google-workspace-developer-tools": patch
---

Automatically fetch APIs via Discovery Service
52 changes: 52 additions & 0 deletions .github/workflows/update-apis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Update APIs
on:
schedule:
- cron: "0 0 * * *" # Runs every day at midnight
workflow_dispatch: # Allows manual triggering
jobs:
update-apis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- run: npm ci
- run: npm run fetch-apis
- name: Check for changes
id: changes
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
with:
files: src/apis.ts
- name: Create Changeset
if: steps.changes.outputs.any_changed == 'true'
run: |
cat <<EOF > .changeset/update-apis.md
---
"google-workspace-developer-tools": patch
---

Update APIs and scopes via the Discovery service
EOF
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
if: steps.changes.outputs.any_changed == 'true'
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "fix: update APIs via Discovery service"
title: "fix: update APIs via discovery service"
body: "This PR updates the APIs based on the latest Discovery documents."
branch: "update-apis"
delete-branch: true
2 changes: 1 addition & 1 deletion .vscode-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
import { defineConfig } from "@vscode/test-cli";

export default defineConfig({
files: "out/test/**/*.test.js",
files: "out/test/**/*.test.cjs",
});
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You can install the Google Workspace Developer Tools extension in a few ways.

Install the extension from your preferred marketplace:

- [Visual Studio Marketplace](- https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)
- [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)
- [Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools)

### Using the Command Line
Expand Down
Loading