GitHub logo
Google Drive logo

Workflow template

Save new GitHub pull requests as Google Drive text files

Save a newly opened GitHub pull request as a UTF-8 text snapshot in Google Drive. Include its full description, repository, author, branches, draft flag, creation time and source link.

How it works

From a PR opening to a text snapshot in Drive

1 Trigger · 1 Action
GitHub1 · Trigger

Pull Request

Receive opened pull_request events from the selected repository. Draft PRs are included; later edits, commits, reviews and state changes do not trigger this prepared recipe.

Google Drive2 · Action

Save GitHub pull request as a text file

Create GitHub-{repository ID}-PR-{number}.txt containing source metadata and the full PR body. Save to the selected Parent folder, or My Drive if no folder is selected.

The result

A text file containing the PR’s opening description

The file captures the event’s description and metadata. Markdown remains plain source text, with branch names and the draft flag alongside it.

Example file: GitHub-10096-PR-96.txt

GitHub pull request #96: Review the Freiburg release checklist Repository: example-studio/release-guide Opened by: alex-example Created: 2026-09-17T11:00:00Z Draft: false Source branch: docs/freiburg-release Target branch: main Source: https://github.com/example-studio/release-guide/pull/96 Description Prepare the Freiburg release checklist. Grüße "Freiburg" — review notes - Confirm ownership - Review the handoff notes

Fictional PR. This saves the description, not the code diff, review comments or linked attachment files.

Before activation

Set up your workflow

  1. Choose the GitHub repository

    Connect the FastHook GitHub App and grant access to the repository. Select it in the trigger browser and leave opened selected in Actions. Draft PRs are included.

  2. Choose a Drive folder or My Drive

    Connect Google Drive and optionally select Parent folder in the file action. Leaving it empty saves to My Drive. Review folder access because the full PR description and branch details will be copied there.

  3. Open a small fictional PR after activation

    Wait for the trigger to connect, then open a PR with a short fictional description. Inspect the filename, source and target branches, draft value and body in the created text file.

Details and limitations
  • One snapshot at opening. Only opened events received after activation create files, including draft PRs. Existing PRs are not imported. Edits, new commits, reviews, closures and reopenings do not create or update a file.

  • Description text rather than a code backup. The UTF-8 text/plain file preserves Markdown source in the PR body. Code changes, comments and linked attachments are not downloaded. The Drive text-file action is limited to 20,000 characters, so large descriptions can exceed it.

  • Filename identity does not provide deduplication. Repository ID and PR number identify the source across repositories. The action creates a new file on each run rather than replacing an existing one; reruns can produce duplicate filenames.

  • Destination permissions apply. Files inherit the selected folder’s access and the workflow adds no public sharing. People with destination access can read copied PR text even if they cannot open the private GitHub source.

Questions about this template

Does this save draft PRs or wait until review is requested?

It saves opened PRs, including drafts, with their draft flag. It does not wait for ready-for-review or assign a reviewer.

Is the code diff included in the file?

No. The file contains the full PR description and source metadata. Code changes, review comments and linked attachments are not downloaded.

Where is the file saved when Parent folder is empty?

It is created in the connected account’s My Drive. Select a Parent folder if you need another destination.

Will later commits update this snapshot?

No. Later commits, edits, reviews and state changes are outside the opened filter. Each run creates a separate file, so manually rerunning the opening event can create another copy.

Explore connected apps