Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actions/github
Wraps actions-toolkit into an Action for common GitHub automations.
https://github.com/actions/github
Last synced: about 2 months ago
JSON representation
Wraps actions-toolkit into an Action for common GitHub automations.
- Host: GitHub
- URL: https://github.com/actions/github
- Owner: actions
- License: mit
- Archived: true
- Created: 2019-03-21T22:15:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T15:49:50.000Z (over 4 years ago)
- Last Synced: 2024-09-27T18:34:04.762Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 107
- Watchers: 4
- Forks: 37
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# GitHub Action for GitHub
🚨 **This action is deprecated! Please use [actions/github-script](https://github.com/actions/github-script), instead.**
This action conveniently wraps [actions-toolkit](https://github.com/JasonEtco/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:
```yml
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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: label triage
```## Commenting on an issue
```yml
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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: comment "Hello World"
```## Assigning any newly created issues
```yml
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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: assign @monalisaoctocat
```## Contributing
Check out [this doc](CONTRIBUTING.md).
## License
This action is released under the [MIT license](LICENSE.md).
Container images built with this project include third party materials. See [THIRD_PARTY_NOTICE.md](THIRD_PARTY_NOTICE.md) for details.## Current Status
This action is in active development.