跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Setup putior CI/CD

技能 已验证 活跃

Set up GitHub Actions CI/CD to automatically regenerate putior workflow diagrams on push. Covers workflow YAML creation, R script for diagram generation with sentinel markers, auto-commit of updated diagrams, and README sentinel integration for in-place diagram updates. Use when workflow diagrams should always reflect the current state of the code, when multiple contributors may change workflow-affecting code, or when replacing manual diagram regeneration with an automated CI/CD pipeline.

目的

Automate the regeneration of workflow diagrams to ensure they always reflect the current state of the code, especially in collaborative environments or when replacing manual processes.

功能

  • GitHub Actions workflow YAML creation
  • R script for diagram generation with sentinel markers
  • Auto-commit of updated diagrams
  • README sentinel integration for in-place diagram updates
  • Customizable source directories and branches

使用场景

  • When workflow diagrams must always match the code.
  • For projects with CI/CD seeking automated documentation updates.
  • In multi-contributor environments changing workflow-affecting code.
  • To replace manual diagram regeneration with an automated pipeline.

非目标

  • Manual diagram generation.
  • Diagrams unrelated to the R code's workflow annotations.
  • Integration with CI/CD systems other than GitHub Actions.

工作流

  1. Create GitHub Actions workflow YAML
  2. Write R script for diagram generation and update
  3. Configure auto-commit with necessary permissions and guards
  4. Add sentinel markers to the target file (e.g., README.md)
  5. Test the pipeline by triggering a commit and verifying diagram updates

实践

  • Workflow automation
  • CI/CD setup
  • Documentation synchronization

先决条件

  • GitHub repository with putior annotations in source files
  • Target file for diagram output (e.g., README.md, docs/workflow.md)
  • R environment with 'putior' and 'r-lib/actions/setup-r' installed

安装

/plugin install agent-almanac@pjt222-agent-almanac

质量评分

已验证
98 /100
about 21 hours ago 分析

信任信号

最近提交1 day ago
星标14
许可证MIT
状态
查看源代码