Skip to content
21 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1//! GitHub Actions on g1t. A repository's `.g1t/workflows/*.yml`, written
2//! exactly as GitHub's `.github/workflows`, run on
3//! g1t as they are: this crate reads them ([`workflow`]), evaluates their
4//! `${{ }}` expressions ([`expr`]), matches their branch and path filters
5//! ([`filter`]), expands their matrices ([`matrix`]), and says which g1t
6//! events are which GitHub events ([`events`]).
7//!
8//! It has no I/O, so the actions service (in a Worker) and the sandbox
9//! (in a container) share it: the service decides what runs, the sandbox
10//! runs the steps, and both read workflows and expressions the same way.
11
12pub mod cron;
13pub mod events;
14pub mod expr;
15pub mod filter;
A repository can run a managed workflow: one installed by g1t's own services without a file in the repository. It is listed, started, run and re-run like any workflow in `.g1t/workflows/`, under the path `managed/<name>.yml`, and a workflow of the same `name:` in the repository runs in its place, so moving one into the repository is committing its source. The Actions page says a managed workflow is managed by g1t rather than linking to a file. Nothing installs one yet; the deploy workflow deployments will install, which calls g1t's reusable deploy workflow with a project's settings as its inputs and reports as `g1t / deploy`, is written and tested but not installed.16pub mod managed;
Merge branch 'worktree-agent-a3abfcce648e87dca'17pub mod mask;
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API18pub mod matrix;
Merge branch 'worktree-agent-a3abfcce648e87dca'19pub mod permissions;
Merge branch 'worktree-agent-a641fa0e2e4fffccb' into claude/cool-newton-7nm8r920pub mod syntax;
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API21pub mod workflow;

This file's history is long; its oldest lines are credited to the oldest commit read.