Skip to content

fix(ci): skip publish-skills on fork PRs#604

Merged
jpoehnelt merged 2 commits into
mainfrom
fix/publish-skills-fork-guard
Mar 24, 2026
Merged

fix(ci): skip publish-skills on fork PRs#604
jpoehnelt merged 2 commits into
mainfrom
fix/publish-skills-fork-guard

Conversation

@jpoehnelt
Copy link
Copy Markdown
Contributor

Fork PRs don't have access to repository secrets (CLAWHUB_TOKEN), causing the publish-skills workflow to always fail on external contributions.

Adds the same fork guard pattern used by the smoketest job — skips the job entirely on fork PRs while preserving behavior for same-repo PRs (dry-run), pushes to main, scheduled runs, and manual dispatch.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 24, 2026

⚠️ No Changeset found

Latest commit: 50fc0ee

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@googleworkspace-bot googleworkspace-bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 24, 2026
@googleworkspace-bot
Copy link
Copy Markdown
Collaborator

/gemini review

@jpoehnelt jpoehnelt merged commit 4663021 into main Mar 24, 2026
6 checks passed
@jpoehnelt jpoehnelt deleted the fix/publish-skills-fork-guard branch March 24, 2026 17:50
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation links in skills/gws-drive/SKILL.md, changing some relative URLs to absolute ones. However, one change incorrectly removes critical information regarding the use of files.export for Google Docs, Sheets, and Slides, which should be restored. Additionally, the changes in this pull request appear to be unrelated to its stated goal of fixing a CI workflow, leading to confusion about the PR's scope and making it difficult to review.

Comment thread skills/gws-drive/SKILL.md
- `get` — Gets a shared drive's metadata by ID. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).
- `hide` — Hides a shared drive from the default view. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).
- `list` — Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for shared drives](/workspace/drive/api/guides/search-shareddrives) guide.
- `list` — Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for shared drives](https://developers.google.com/workspace/drive/api/guides/search-shareddrives) guide.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The changes in this file seem unrelated to the pull request's stated goal of fixing a CI workflow (fix(ci): skip publish-skills on fork PRs). The PR description also details a CI change, but no workflow files are included in this pull request's patch. This discrepancy is confusing and makes the PR unreviewable in its current state.

Per repository guidelines, changes should be focused on the primary goal of a pull request to avoid scope creep. Please either:

  • Move these documentation changes to a separate PR with a relevant title and description.
  • Add the missing CI changes to this PR.
  • Update the PR title and description to reflect the content of the changes.
References
  1. Avoid introducing changes that are outside the primary goal of a pull request to prevent scope creep.

Comment thread skills/gws-drive/SKILL.md
- `generateIds` — Generates a set of file IDs which can be provided in create or copy requests. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).
- `get` — Gets a file's metadata or content by ID. For more information, see [Search for files and folders](/workspace/drive/api/guides/search-files). If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](/workspace/drive/api/reference/rest/v3/files/export) instead.
- `list` — Lists the user's files. For more information, see [Search for files and folders](/workspace/drive/api/guides/search-files). This method accepts the `q` parameter, which is a search query combining one or more search terms. This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.
- `get` — Gets a file's metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This change incorrectly removes crucial information. The get method with alt=media cannot be used to download Google Docs, Sheets, and Slides; files.export must be used instead. This information should be restored to avoid user confusion.

If you decide to keep these documentation changes in a PR, please restore this sentence and also update its link to be an absolute URL for consistency.

Suggested change
- `get` — Gets a file's metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive.
- `get` — Gets a file's metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](https://developers.google.com/workspace/drive/api/reference/rest/v3/files/export) instead.

@github-actions github-actions Bot added the gemini: reviewed Gemini Code Assist has reviewed the latest changes label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: skills cla: yes This human has signed the Contributor License Agreement. gemini: reviewed Gemini Code Assist has reviewed the latest changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants