DEV Community

Fidal Mathew
Fidal Mathew

Posted on • Updated on

Add issue labels using Github-Actions

For the DEV Github Actions Hackathon 2021, I wrote a workflow to Add documentation label to each new issue on your repo!

My Workflow

Here's the workflow -

name: GitHub Actions Doc Issue
      - reopened
      - opened
    runs-on: ubuntu-latest
      issues: write
      - name: Label Urgent
        uses: andymckay/labeler@5c59dabdfd4dd5bd9c6e6d255b01b9d764af4414
            bodyContains: 'documentation'
            add-labels: "documentation"

            repo-token: ${{ secrets.GITHUB_TOKEN }}
Enter fullscreen mode Exit fullscreen mode

Yaml File or Link to Code-

Check out Github Repository here

Submission Category:

Wacky Wildcards

Additional Resources/Info

I made this workflow which will provide "documentation" issue label to any new issue that is produced in the repository.
The main purpose of this reduce the time for labeling issues for maintainers. It is also helpful to people who want to contribute to open source and documentation related issues are a great way to start your journey.

I wasn't familiar with Github-Actions and how powerful it is, I tried out different things using Github-Actions and there's a lot more that I need to explore and learn.
It was a great learning experience and I will definitely use Github-Actions to ease my development workflow and try to build
some in the near future.

Thank you for this opportunity!

Discussion (0)