Skip to content

Commit

Permalink
add initial README.md, CHANGELOG, and .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed May 3, 2020
1 parent fa4640c commit 01f5707
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 2 deletions.
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Editors
project.xml
project.properties
/nbproject/private/
.buildpath
.project
.settings*
.idea
.vscode
*.sublime-project
*.sublime-workspace
.sublimelinterrc

# Grunt
/node_modules/
none

# Sass
.sass-cache/

# OS X metadata
.DS_Store

# Windows junk
Thumbs.db

# ApiGen
/wc-apidocs/

# Behat/CLI Tests
tests/cli/installer
tests/cli/composer.phar
tests/cli/composer.lock
tests/cli/composer.json
tests/cli/vendor

# Unit tests
/tmp
/tests/bin/tmp
/tests/e2e-tests/config/local-*.json

# Logs
/logs

# Composer
/vendor/

# Built files
/build/
bin/languages
storybook-static/
/wp-content/
Empty file added CHANGELOG.md
Empty file.
41 changes: 39 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
# automations
Various github action automations
# Project management automation

> **Note:** Currently this is experimental while I learn Github actions.
This is a [GitHub Action](https://help.github.com/en/categories/automating-your-workflow-with-github-actions) which contains various automations to assist with project management in a Github repository:

- `todos`: Parses for `@todo` or `@TODO` comments in code and adds as inline review comments for reviews on pull request, and creates issues for each one if they exist when a pull is merged.

# Installation and usage

To use the action, include it in your workflow configuration file:

```yaml
on: pull_request
jobs:
pull-request-automation:
runs-on: ubuntu-latest
steps:
- uses: WordPress/gutenberg/packages/project-management-automation@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
automations: [ todos ]

```

# API

## Inputs

- `github_token`: Required. GitHub API token to use for making API requests. This should be stored as a secret in the GitHub repository.
- `automations`: Optional. You can include a list of specific automations you want to run if you don't want to use them all in a given workflow.

## Outputs

_None._

## Credits

Thanks to the work of the Gutenberg team (particularly @aduth) in providing some inspiration for this approach to bundling various automations together.

0 comments on commit 01f5707

Please sign in to comment.