Skip to content

joshcarp/predicate

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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