[GitHub] 10 GitHub actions for your go project management

Sarvsav Sharma
7 min readJun 16, 2024
Source: Google Search

1. Auto assign issues or PR

It is always a good idea, that the issues as well as PR’s are owned by user(s) for quick reviews. To make the life easier, we have a github action from pozil . You can easily add a workflow file to assign the newly opened issues as well as PR’s. Below is an example of the workflow file.

#File: .github/workflows/auto-assign-issues.yml
name: Issue assignment

on:
issues:
types: [opened]

jobs:
auto-assign:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v1
with:
assignees: octocat,octodog
numOfAssignee: 2
allowSelfAssign: false

More details about action can be found on GitHub Marketplace.

2. Labeler

How easy and neat it would be, if we have labels assigned on the PR’s, as it helps to identify what component or part of the codebase has been modified. I have added automation as a label, once there is a modification in .github will happen, and add the label to the PR.

--

--

Sarvsav Sharma

Mostly writes about Go, GitHub, and DevSecOps. Interested in distributed systems. GitHub:sarvsav Maintainer:go-feature-flag/gofeatureflag-lint-action