Skip to content

feat(action): PAT support for triggering PR workflows #3

feat(action): PAT support for triggering PR workflows

feat(action): PAT support for triggering PR workflows #3

# Example workflow for using canopy-code in your project.
# Copy this file to your project's .github/workflows/ directory.
#
# Prerequisites:
# 1. A canopy.yml config file in your repo root (optional, sensible defaults apply)
# 2. Repository Settings > Actions > Workflow permissions > "Read and write permissions"
name: Canopy
on:
push:
branches: [main]
jobs:
canopy:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # full history needed for git churn analysis
- uses: bruno-portfolio/canopy-code@main
# with:
# token: ${{ secrets.CANOPY_PAT }} # PAT required if repo has required status checks on PRs
# strategy: push # 'pr' (default) or 'push' for repos without branch protection
# output-svg: docs/canopy.svg
# output-html: docs/canopy.html
# config: canopy.yml
# commit-message: "docs: update canopy visualization"