Skip to content
This repository has been archived by the owner. It is now read-only.
Wraps actions-toolkit into an Action for common GitHub automations.
JavaScript Dockerfile HCL
Branch: master
Clone or download

Latest commit

Latest commit 8436f27 Apr 13, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Initial commit Mar 29, 2019
.gitignore Initial commit Mar 29, 2019
CODE_OF_CONDUCT.md Initial commit Mar 29, 2019
CONTRIBUTING.md Initial commit Mar 29, 2019
Dockerfile Initial commit Mar 29, 2019
LICENSE.md Initial commit Mar 29, 2019
README.md Update README.md Apr 13, 2020
THIRD_PARTY_NOTICE.md Initial commit Mar 29, 2019
entrypoint.js Initial commit Mar 29, 2019
package-lock.json Initial commit Mar 29, 2019
package.json Initial commit Mar 29, 2019

README.md

GitHub Action for GitHub

🚨 This action is deprecated! Please use actions/github-script, instead.

This action conveniently wraps actions-toolkit, making it simple to do things like label, assign, and comment on issues on GitHub.

Here are a few use cases for this action:

Applying a "triage" label on any new issue:

name: Triage
on:
  issues:
    types: [opened]
jobs:
  applyTriageLabel:
    name: Apply Triage Label
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Apply Triage Label
        uses: actions/github@v1.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: label triage

Commenting on an issue

name: Triage
on:
  issues:
    types: [opened]
jobs:
  commentOnNewIssues:
    name: Comment On New Issues
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Comment On New Issues
        uses: actions/github@v1.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: comment "Hello World"

Assigning any newly created issues

name: Triage
on:
  issues:
    types: [opened]
jobs:
  assignMonaLisa:
    name: Assign MonaLisa
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Assign MonaLisa
        uses: actions/github@v1.0.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          args: assign @monalisaoctocat

Contributing

Check out this doc.

License

This action is released under the MIT license. Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.

Current Status

This action is in active development.

You can’t perform that action at this time.