Skip to content
pie-chart

GitHub Action

github issue automation

v0.0.7 Latest version

github issue automation

pie-chart

github issue automation

Run checks within github issues

Installation

Copy and paste the following snippet into your .yml file.

              

- name: github issue automation

uses: joshcarp/predicate@v0.0.7

Learn more about this action in joshcarp/predicate

Choose a version

predicate

Add predicates to github issues and automatically close issues if a predicate is met.

Use

  • Install this action on your repo with schedule trigger:
name: github issue automation
on:
  workflow_dispatch:
  schedule:
    - cron:  '* * * * *'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: joshcarp/predicate@v0.0.6
  • When an issue is created with a predicate codeblock the issue will be closed when the predicate exits with a 0 exit code

Predicate example


``` predicate
curl https://google.com

```


``` predicate
cat README.md | grep foobar

```


Example

img.png