GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs/src/workflows at main · github/docs

Expand file tree

/

workflows

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

workflows

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
husky
husky
 
 
lib
lib
 
 
sync-sdk-docs
sync-sdk-docs
 
 
tests
tests
 
 
README.md
README.md
 
 
action-context.ts
action-context.ts
 
 
benchmark-pages.ts
benchmark-pages.ts
 
 
check-content-type.ts
check-content-type.ts
 
 
content-changes-table-comment-cli.ts
content-changes-table-comment-cli.ts
 
 
content-changes-table-comment.ts
content-changes-table-comment.ts
 
 
delete-orphan-translation-files.ts
delete-orphan-translation-files.ts
 
 
enable-automerge.ts
enable-automerge.ts
 
 
find-past-built-pr.ts
find-past-built-pr.ts
 
 
fm-utils.ts
fm-utils.ts
 
 
fr-add-docs-reviewers-requests.ts
fr-add-docs-reviewers-requests.ts
 
 
generate-llms-txt.ts
generate-llms-txt.ts
 
 
get-env-inputs.ts
get-env-inputs.ts
 
 
git-utils.ts
git-utils.ts
 
 
github.ts
github.ts
 
 
issue-report.ts
issue-report.ts
 
 
labeler.ts
labeler.ts
 
 
local-repo-sync.sh
local-repo-sync.sh
 
 
measure-instruction-budget.ts
measure-instruction-budget.ts
 
 
prevent-pushes-to-main.ts
prevent-pushes-to-main.ts
 
 
projects.ts
projects.ts
 
 
purge-fastly-changed-content.ts
purge-fastly-changed-content.ts
 
 
purge-fastly.ts
purge-fastly.ts
 
 
ready-for-docs-review.ts
ready-for-docs-review.ts
 
 
secondary-ratelimit-retry.ts
secondary-ratelimit-retry.ts
 
 
unallowed-contribution-filters.yml
unallowed-contribution-filters.yml
 
 
unallowed-contributions.ts
unallowed-contributions.ts
 
 
wait-for-build.ts
wait-for-build.ts
 
 
walk-files.ts
walk-files.ts
 
 
writers-help-metadata.ts
writers-help-metadata.ts
 
 

README.md

Outline

Workflows

The workflows subject contains automation scripts that support GitHub Actions workflows, CLI tools, and repository automation. These scripts handle tasks like PR labeling, cache purging, content change analysis, and repository maintenance.

Purpose & Scope

This subject is responsible for:

  • PR and issue automation (labeling, metadata, reviewer assignment)
  • Cache management (Fastly edge cache purging)
  • Content validation and reporting (content type checking, change tables)
  • Repository maintenance (orphan file cleanup, syncing)
  • Husky git hooks (pre-commit checks)
  • GitHub Actions support scripts

Note: This directory does not contain a scripts/ folder since every file here would belong in scripts/. Files are organized flat at the top level with supporting utilities in lib/.

Setup & Usage

Running workflow scripts locally

Scripts are registered in package.json:

Script Command Purpose
content-changes-table-comment npm run content-changes-table-comment Analyzes content changes in PRs
check-content-type npm run check-content-type Validates content types
delete-orphan-translation-files npm run delete-orphan-translation-files Removes orphaned translations
enable-automerge npm run enable-automerge Enables PR automerge
purge-fastly npm run purge-fastly Purges Fastly CDN cache (per-language, single-key, or entire cache)
prevent-pushes-to-main (Husky hook) Prevents pushing to main

Running tests

npm run test -- src/workflows/tests

GitHub Actions integration

Many scripts are called from GitHub Actions workflows in .github/workflows/. They typically:

  1. Run automatically on PR events, pushes, or schedules
  2. Use GitHub Actions context (@actions/github, @actions/core)
  3. Require GITHUB_TOKEN environment variable
  4. Post results as PR comments or update PR/issue metadata

Internal documentation feedback

.github/workflows/docs-feedback-internal.yml runs only in github/docs, even though the workflow is maintained in github/docs-internal and mirrored publicly. Applying docs-feedback-internal to an issue or pull request records its title, description, author, and source link as a comment in the single internal feedback tracker, then posts a public handoff explanation and closes the source. It does not copy the conversation or code changes, and never includes the private tracker link in the public handoff comment.

The workflow requires DOCS_BOT_PAT_BASE in github/docs with permission to read and comment on issues in github/technical-content. The repository's GITHUB_TOKEN comments on and closes the public source with issues: write and pull-requests: write. Fork pull requests use pull_request_target without checking out or executing contributor code.

Keep the tracker configured in the workflow open. If recording fails, the source is not closed. Rerun a failed workflow to retry the handoff. Per-source concurrency and comment markers prevent duplicate entries on reruns or when a label is removed and reapplied. Descriptions longer than 60,000 characters are explicitly truncated with a link back to the full source.

Data & External Dependencies

Data inputs

  • GitHub API: PR data, issue data, file changes, commit history
  • Git repository: File contents, frontmatter, diff information
  • Environment variables: GITHUB_TOKEN, FASTLY_TOKEN, BASE_SHA, HEAD_SHA

Dependencies

  • @actions/github, @actions/core - GitHub Actions SDK
  • @octokit/rest - GitHub API client
  • Fastly API - For cache purging
  • Various internal subjects for content parsing and validation

Data outputs

  • PR/issue comments - Content change summaries, validation results
  • PR/issue labels - Applied via GitHub API
  • Cache purges - Fastly CDN invalidations
  • Exit codes - Success/failure for CI/CD

Cross-links & Ownership

Related subjects

  • src/frame - Frontmatter reading and path utilities
  • src/versions - Version detection for content changes
  • src/content-linter - Content validation
  • src/git - Git utilities (if exists)
  • GitHub Actions workflows in .github/workflows/ - Primary consumers

Ownership

  • Team: Docs Engineering

Current State & Next Steps

Known limitations

  • Some scripts require specific environment variables and can't easily run locally without setup
  • Error handling varies across scripts
  • Documentation for individual scripts is sometimes inline-only

Testing guidance

  • Most workflow scripts have limited automated test coverage
  • Test locally before deploying to Actions when possible
  • Use CLI variants (e.g., content-changes-table-comment-cli.ts) for local testing

Adding new workflow scripts

When adding a new script:

  1. Create the .ts file in src/workflows/
  2. Add to package.json scripts if it should be runnable via npm
  3. Document any required environment variables
  4. Add to .github/workflows/ if it should run automatically
  5. Consider creating a -cli.ts variant for local testing
  6. Update this README if the script introduces new patterns

Planned work

  • Standardize error handling and logging across scripts
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.