Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rstudio/issuetriager

R package and GitHub workflow action for triaging issues
https://github.com/rstudio/issuetriager

actions

Last synced: 5 days ago
JSON representation

R package and GitHub workflow action for triaging issues

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# issuetriager GitHub Action

![package test](https://github.com/rstudio/issuetriager/actions/workflows/check-standard.yml/badge.svg)
![package test](https://github.com/rstudio/issuetriager/actions/workflows/render-rmarkdown.yml/badge.svg)

The goal of issuetriager is to streamline the triage process for projects that
have frequent issues reported on GitHub. Normal use is inside of a GitHub workflow
that is triggered to run when issues are opened, analyze the text, and use the
results for automatic labeling, closing, or notification about issues.

This action indicates whether the phrase was found within the text or not.

## Inputs

## `check-phrase`

**Required** The phrase to search for in the issue body. Default `"I'm stuck because of this issue.: True"`.

## `issue-body`

**Required** The text body that you want to search for the phrase. Default `"${{ github.event.issue.body }}"`.

## Outputs

## `contains-phrase`

Whether the check phrase was found

## Example usage

```
on:
issues:
types: [opened]

jobs:
triage:
runs-on: ubuntu-latest
name: A job to triage issues
steps:
- name: check the text
id: triage
uses: rstudio/issuetriager@v1
with:
check-phrase: 'this is a blocking issue'
issue-body: ${{ github.event.issue.body }}
# Use the output from the `triage` step
- name: Label the issue as blocking
run: echo "The time was ${{ steps.hello.outputs.time }}"
if: ${{ steps.triage.outputs.contains-phrase }}
uses: andymckay/labeler@master
with:
add-labels: "blocking"
```

## Development

Clone this repo from GitHub, and open the project in RStudio IDE.

```
# CTRL-SHIFT-L to load the package

# SHIFT-CMD-T to run tests
```

## Code of Conduct

Please note that the issuetriager project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.