Skip to content

rajanand02/github

 
 

GitHub Action for GitHub

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:

workflow "Triage" {
  on = "issue"
  resolves = "Apply Triage Label"
}

action "Apply Triage Label" {
  uses = "actions/[email protected]"
  args = "label triage --action=opened" # Only when issues are opened!
  secrets = ["GITHUB_TOKEN"]
}

Commenting on an issue

workflow "Triage" {
  on = "issue"
  resolves = "Comment On New Issues"
}

action "Comment On New Issues" {
  uses = "actions/[email protected]"
  args = "comment "Hello World" --action=opened" # Only when issues are opened!
  secrets = ["GITHUB_TOKEN"]
}

Assigning any newly created issues

workflow "Triage" {
  on = "issue"
  resolves = "Assign MonaLisa"
}

action "Assign MonaLisa" {
  uses = "actions/[email protected]"
  args = "assign @monalisaoctocat --action=opened" # Only when issues are opened!
  secrets = ["GITHUB_TOKEN"]
}

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.

About

Wraps actions-toolkit into an Action for common GitHub automations.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 74.1%
  • Dockerfile 14.7%
  • HCL 11.2%