# How to Automate GitHub Actions with gitStream | LinearB Blog

> Learn how gitStream makes it easy to automate GitHub Actions and manage code review workflows.

_This is a markdown rendering of a live HTML page on linearb.io, generated for AI/LLM consumption — it is not a markdown-only site. To get the full HTML page instead, request this URL with an explicit `Accept: text/html` header (no wildcard, no markdown preference)._

[Blog](https://linearb.io/blog)

/

How to Automate GitHub Actions with gitStream

# How to Automate GitHub Actions with gitStream

![Photo of Ben Lloyd Pearson](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/blp_headshot_1_ee25d527aa?_a=BAVMn6ID0)

By [Ben Lloyd Pearson](https://linearb.io/blog/how-to-automate-github-actions-with-gitstream#ben-lloyd-pearson)

|

September 19, 2023

![automate_github_actions_5b8342dd53](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/automate_github_actions_5b8342dd53?_a=BAVMn6ID0)

[GitHub Actions](https://github.com/features/actions) is a workflow automation feature from GitHub that allows developers to create custom workflows directly in their code repositories to automate CI/CD pipelines, code linting, unit testing, and more. GitHub Actions helps developers streamline their software development processes, ensure that code meets their organization’s standards, and seamlessly deploy code to production environments. The [GitHub Marketplace](https://github.com/marketplace?type=actions) contains a plethora of Actions you can add to your repo to automate a wide range of tasks.

This article will focus [gitStream](http://docs.gitstream.cm), a workflow automation tool that uses YAML to optimize your code review process.gitStream can automatically apply and manage PR labels, identify and auto-assign code reviewers, and auto-merge PRs to unblock the development process and maximize developer productivity.

## CI Orchestration

One of the most powerful ways gitStream can automate GitHub actions is through CI Orchestration. With gitStream, you will no longer be required to run all CI services for every PR, reducing the amount of time your team spends waiting on things to finish so you can spend more time on productive work. 

With gitStream, you can skip unnecessary status checks for PRs that don’t affect code that is relevant to that CI pipeline and trigger them only when necessary.

![dispatch_github_action.png](https://assets.linearb.io/image/upload/v1720000000/dispatch_github_action_17da3abe8d.png)

Learn how to use gitStream to [orchestrate your GitHub Actions workflows](http://linearb.io/blog/build-intelligent-ci-pipelines-gitstream-ci-orchestration).

## Automatic Label Management

There are quite a few options on the GitHub Actions marketplace for managing PR labels, however, they all come with various limitations that are either challenging or even impossible to work around. gitStream makes it extremely simple to create custom rules for applying labels that take a variety of inputs to better set context.

For example, gitStream is capable of estimating the amount of time a PR will take to review and can automatically apply labels to the PR that indicate a precise number of minutes. Most other automatic PR labeling workflows rely on one-size-fits all approaches that don’t always account for the complexity of every component that is changes. Read the docs for [estimated time to review labels](https://docs.gitstream.cm/automations/provide-estimated-time-to-review/).

![ApplyETRLabel(Light)-AutomationOnly (1).png](https://assets.linearb.io/image/upload/v1720000000/Apply_ETR_Label_Light_Automation_Only_1_5c099b6203.png)

gitStream can also identify the resources that a PR changes and automatically [apply labels that indicate which components are affected](https://docs.gitstream.cm/automations/standard/label-management/#label-modified-resources). This can help reviewers more easily identify PRs that affect areas of the codebase that they are responsible for overseeing. You can take this a step further and indicate the precise amount of changes that happen to each resource. For example, if you want to[ label based on the relative percentage](https://docs.gitstream.cm/automations/standard/label-management/#percent-based-labels-for-modified-resources) of changes for specific resources.

![label-resources-percent (1).png](https://assets.linearb.io/image/upload/v1720000000/label_resources_percent_1_3154403302.png)

gitStream can also help you quickly identify which PRs are awaiting additional changes from the author by [labeling PRs that have unresolved requests for changes](https://docs.gitstream.cm/automations/standard/label-management/#label-the-number-of-unresolved-code-review-threads).

![label-unresolved-threads.png](https://assets.linearb.io/image/upload/v1720000000/label_unresolved_threads_b99226be52.png)

Check out the gitStream docs for more examples about [automating GitHub PR labels.](https://docs.gitstream.cm/automations/standard/label-management) 

## Code Review Auto-Assignment

Identifying and assigning PR reviewers can be a tedious assignment, particularly for large repos that have dozens or hundreds of contributors. GitHub has CODEOWNERS which allows you to define basic rules to assign PR reviewers, but we’ve covered in the past how it [often fails to completely meet the needs of software development teams](https://linearb.io/blog/its-time-for-code-experts). 

gitStream also lets you assign reviewers based on the [changed resources](https://docs.gitstream.cm/automations/standard/review-assignment/#review-sensitive-files), and it can also notify specific people or teams based on a [watch list of files and directories](https://docs.gitstream.cm/automations/standard/review-assignment/#notify-watcher). But, where gitStream really shines is in how it provides a much deeper level of automatic code review assignment that accounts for details found in the PR. For example, you can have an automation that identifies the person with the highest level of code expertise for the PR and [assign them for review](https://docs.gitstream.cm/automations/standard/review-assignment/assign-code-experts/). 

![AssignCodeExperts(Light)-AutomationOnly.png](https://assets.linearb.io/image/upload/v1720000000/Assign_Code_Experts_Light_Automation_Only_2801859a01.png)

Alternatively, you can use gitStream to [distribute code reviews](https://docs.gitstream.cm/automations/standard/review-assignment/share-knowledge/) across a team to increase horizontal code knowledge.

![share-knowledge.png](https://assets.linearb.io/image/upload/v1720000000/share_knowledge_bb84a7765b.png)

You can also use gitStream to trigger reviews based on the results of third-party tools like [SonarCloud](https://docs.gitstream.cm/integrations/sonar/#review-sonar-alerts). Or establish custom-review policies based on the [source or destination branches](https://docs.gitstream.cm/automations/standard/review-assignment/#branch-based-review-policies). All of these features serve to help your team move away from one-size-fits-all code review policies that don’t meet the requirements of every PR.

Read the gitStream docs on [review assignment](https://docs.gitstream.cm/automations/standard/review-assignment/) to learn more.

## Auto-Merge PRs

Some PRs have such a low risk that it might make sense to unblock them entirely and merge them without any further review. One common use case is [automatically merging PRs from Dependabot](https://docs.gitstream.cm/integrations/dependabot/) to ensure that your dependencies are always up to date with the latest security fixes without requiring manual intervention.

There are many other situations where PRs might contain safe changes, such as documentation, tests, images and other minor assets, dependency version bumps, and more. gitStream allows you to [set custom auto-merge policies](https://docs.gitstream.cm/automations/approve-safe-changes/) for these situations and more to help you team reduce review noise for things that should bypass the standard review process.

![approve-safe-changes.png](https://assets.linearb.io/image/upload/v1720000000/approve_safe_changes_d09d49332a.png)

## Branch, PR, and Security Policy Enforcement

It’s good practice to follow PR or branch naming conventions that are descriptive and support your team’s workflow automations. For example, gitStream can help you ensure that all PRs [contain a reference](https://docs.gitstream.cm/automations/label-missing-project-tracker/) to your team’s project management solution or to automatically link to a project tracking resource that is referenced in the [PR title or branch name](https://docs.gitstream.cm/automations/standard/link-issue-tracker/). You can also use gitStream to [enforce semantic PR title requirements](https://docs.gitstream.cm/automations/standard/enforce-pr-title/) to improve the consistency of PR titles.

![enforce-pr-title.png](https://assets.linearb.io/image/upload/v1720000000/enforce_pr_title_01c9cd24ab.png)

Lastly, gitStream also lets you set custom rules to flag the use of deprecated APIs, functions, classes, or other software components and [automatically request changes](https://docs.gitstream.cm/automations/change-deprecated-components/).

## Intelligently Manage GitHub Actions with gitStream

gitStream offers a comprehensive solution to optimize your GitHub Actions workflows, including CI orchestration, PR label management, dynamic code review assignment, and PR auto-merge policies. gitStream makes it easy to reduce the amount of time you spend reviewing code so you can get back to productive work.

[Build your first automation with gitStream in as little as two minutes.](https://linearb.io/platform/gitstream)

## Improve developer productivity with LinearB

Find us on

[](https://www.linkedin.com/company/linearb)
[](https://devinterrupted.substack.com/)

![blp_headshot_1_ee25d527aa](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/blp_headshot_1_ee25d527aa?_a=BAVMn6ID0)

## Ben Lloyd Pearson

Ben hosts Dev Interrupted, a podcast and newsletter for engineering leaders, and is Director of DevEx Strategy at LinearB. Ben has spent the last decade working in platform engineering and developer advocacy to help teams improve workflows, foster internal and external communities, and deliver better developer experiences.

### Connect with

[](https://www.linkedin.com/in/benlloydpearson)
[](https://substack.com/@benlloydpearson)

## Your next read

[![Cover image for Slack turns channels into the context engine for agentic AI](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Blog_Post_Name_2400x1256_077524ba8b?_a=BAVMn6ID0)](https://linearb.io/blog/slack-jaime-delanghe-mcp-agent-context-channels)

Workflow

[Slack turns channels into the context engine for agentic AI](https://linearb.io/blog/slack-jaime-delanghe-mcp-agent-context-channels)

Slack Chief Product Officer Jaime DeLanghe breaks down how channels serve as the foundational context layer for human-agent collaboration. Learn why Slack is...

[![Cover image for Code generation is faster than ever, but shipping value isn't](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Blog_AI_code_review_bottleneck_2400x1256_d73333ea46?_a=BAVMn6ID0)](https://linearb.io/blog/code-generation-faster-shipping-isnt)

Workflow

[Code generation is faster than ever, but shipping value isn't](https://linearb.io/blog/code-generation-faster-shipping-isnt)

Your team writes more code than ever, but less reaches production. AI moved the bottleneck to code review. Here's how to measure it and unblock your pipeline.&n...

[![Cover image for AI as a value multiplier: a human-centric approach to engineering leadership](https://assets.linearb.io/image/upload/c_limit,w_2560/f_auto/q_auto/v1/Blog_Servant_Leadership_2400x1256_0cfd4e2a0c?_a=BAVMn6ID0)](https://linearb.io/blog/ai-as-value-multiplier-human-centric-leadership)

Workflow

[AI as a value multiplier: a human-centric approach to engineering leadership](https://linearb.io/blog/ai-as-value-multiplier-human-centric-leadership)

Super.com's Matt Culver explains why AI should be used as a value multiplier, not a cost-cutter, advocating for a human-centric approach to engineering...

## Structured data

_Machine-readable metadata (JSON-LD) embedded in the page for search/AI context — not content rendered on the page itself._

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "LinearB",
  "url": "https://linearb.io",
  "logo": "https://assets.linearb.io/image/upload/v1715628027/logo-mark-lg.svg",
  "description": "LinearB is the engineering productivity platform that helps engineering leaders prove AI is improving throughput without sacrificing delivery confidence, flow efficiency, or developer experience.",
  "sameAs": [
    "https://www.linkedin.com/company/linearb"
  ],
  "award": [
    {
      "@type": "Award",
      "name": "LinearB is a Leader in the 2026 Gartner® Magic Quadrant™ for Developer Productivity Insight Platforms",
      "dateAwarded": "2026",
      "awardedBy": {
        "@type": "Organization",
        "name": "Gartner®"
      }
    },
    {
      "@type": "Award",
      "name": "Great Place to Work Certification",
      "dateAwarded": "2025-2027",
      "awardedBy": {
        "@type": "Organization",
        "name": "Great Place to Work"
      }
    },
    {
      "@type": "Award",
      "name": "America's Best Startup Employers 2025",
      "dateAwarded": "2025",
      "awardedBy": {
        "@type": "Organization",
        "name": "Forbes Magazine"
      }
    }
  ],
  "hasCertification": [
    {
      "@type": "Certification",
      "name": "SOC 1 Type 2"
    },
    {
      "@type": "Certification",
      "name": "SOC 2 Type 2"
    },
    {
      "@type": "Certification",
      "name": "GDPR Compliance certification"
    },
    {
      "@type": "Certification",
      "name": "ISO 27001"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to Automate GitHub Actions with gitStream",
  "url": "https://linearb.io/blog/how-to-automate-github-actions-with-gitstream",
  "author": {
    "@type": "Person",
    "name": "Ben Lloyd Pearson"
  },
  "datePublished": "2023-09-19T15:19:34.308Z",
  "dateModified": "2023-09-19T15:19:34.308Z",
  "image": "https://assets.linearb.io/image/upload/v1720000000/automate_github_actions_5b8342dd53.png",
  "publisher": {
    "@type": "Organization",
    "name": "LinearB",
    "logo": "https://assets.linearb.io/image/upload/v1777485755/linearb-logo-2026.png"
  },
  "description": "Learn how gitStream makes it easy to automate GitHub Actions and manage code review workflows."
}
```

## More on linearb.io

### Top navigation

- [Book a Demo](https://linearb.io/book-a-demo)
- [AI Code Reviews — Catch security risks, bugs, and spec mismatches](https://linearb.io/platform/ai-code-reviews)
- [AI & Productivity Insights — See how AI tools affect cycle time and delivery speed](https://linearb.io/platform/ai-developer-productivity-insights)
- [Measure AI Impact — Track AI adoption and tie it to delivery outcomes](https://linearb.io/use-case/measure-ai-impact)
- [MCP Server — Chat with your data to spot patterns and boost output](https://linearb.io/platform/mcp-server)
- [Resource Allocation — Cost initiatives and shape your investment strategy](https://linearb.io/platform/resource-allocation)
- [Cost Capitalization — Capitalize engineering costs with audit-ready reports](https://linearb.io/platform/cost-capitalization)
- [Dev Team Management — Set targets and tie throughput to business outcomes](https://linearb.io/platform/goals-and-reporting)
- [DevOps Workflow Automation — Policy-based PR routing, approvals, and tests](https://linearb.io/platform/ai-workflow-governance)
- [AI Powered Support — Unify AI and human code delivery in one clear view](https://linearb.io/use-case/ai-powered-support)
- [Optimization — Surface friction with feedback and MCP insights](https://linearb.io/platform/developer-experience)
- [Reporting — Spot what's working and what needs attention](https://linearb.io/use-case/measuring-developer-experience)
- [Surveys — Turn developer feedback into actionable signals](https://linearb.io/platform/developer-surveys)
- [Platform overview](https://linearb.io/platform/overview)
- [Register now](https://linearb.io/event/engineering-productivity-gap)
- [Customers](https://linearb.io/customers)
- [Pricing](https://linearb.io/pricing)
- [Why choose LinearB — Explore your data. Measure performance. Act to improve it.](https://linearb.io/why-linearb)
- [APEX framework — The operating model for AI-era engineering teams](https://linearb.io/resources/apex-framework)
- [Anti-FAQ — The questions other vendors won't answer](https://linearb.io/why-linearb/anti-faq)
- [Security — Enterprise-grade compliance and zero code access](https://linearb.io/security)
- [Build vs. buy — The hidden cost of building it yourself](https://linearb.io/resources/build-vs-buy)
- [Dev Interrupted Podcast — Conversations with engineering leaders](https://linearb.io/dev-interrupted/podcasts)
- [Reports & Guides — Deep dives on productivity and delivery](https://linearb.io/resources)
- [Webinars — Expert sessions on productivity and AI](https://linearb.io/resources?category=workshops)
- [Metrics Benchmarks — See how your engineering org stacks up](https://linearb.io/resources/software-engineering-benchmarks-report)
- [Blog — Product updates and practical insights](https://linearb.io/blog)
- [Help Center — Documentation, setup, and support](https://linearb.helpdocs.io)
- [API Docs](https://docs.linearb.io/api-overview)
- [Status](https://www.linearbstatus.com/)
- [Integrations](https://linearb.io/integrations)
- [LinearB is a Leader in the 2026 Gartner® Magic Quadrant™ for Developer Productivity Insight Platforms](https://linearb.io/resources/gartner-magic-quadrant-dpi-platforms-2026)
- [Sign in](https://app.linearb.io/login)
- [Enterprise](https://linearb.io/solutions/enterprise)
- [Contact](https://linearb.io/contact-us)
- [About us](https://linearb.io/about-us)
- [Careers](https://linearb.io/careers)
- [Service agreement](https://linearb.io/services-agreement)
- [Privacy policy](https://linearb.io/privacy-policy)
- [DPA](https://linearb.io/data-processing-agreement)
- [Security FAQ](https://linearb.io/security-faq)
- [Substack](https://devinterrupted.substack.com/)

### Footer

_Additional links from the site footer, not repeated from the top navigation above._

- [GitHub](https://github.com/linear-b)
- [LinkedIn](https://www.linkedin.com/company/linearb)
- [Twitter](https://twitter.com/LinearB_Inc)