The project is in a healthy, maintained state
A ruboty plugin to trigger GitHub Actions workflows via chat
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 2.0
>= 6.0
>= 1.3
 Project Readme

ruboty-github_actions

A ruboty plugin to trigger GitHub Actions workflows via chat.

Installation

Add this line to your ruboty project's Gemfile:

gem "ruboty-github_actions"

And then execute:

$ bundle

Usage

Set a credential

Register a GitHub Personal Access Token for a user:

ruboty github actions set credential <user> <token>

Example:

ruboty github actions set credential alice ghp_xxxxxxxxxxxx

The credential is stored in the ruboty brain.

Fallback credential

If the user has no credential saved by this plugin, the GitHub access token saved by ruboty-qiita-github (stored under the github key in the brain) is used as a fallback. A credential saved via set credential always takes precedence.

Dispatch a workflow

Trigger a workflow run:

ruboty github actions run <repo> <workflow> <branch> [key=value,key2=value2 ...]

Example:

ruboty github actions run tomoasleep/myapp deploy main env=production

The workflow runs as the user who sent the message.

Configuration

Environment variable Description
RUBOTY_GITHUB_ACTIONS_API_URL GitHub API base URL (optional, for testing/local emulation)

Development

Run the test suite:

$ bundle exec rspec