Code 1: Github Issues Automation

How to automate the closing of an issue in Github Projects via a Commit Message
coding
github
Author

Tony Phung

Published

February 20, 2024

1. The Setup

Testing the automation of closing a GitHub Issue via a VSCode Commit Message shown in youtube tutorial: How to Use GitHub for Automated Kanban Project Management

High level steps:

  • Create Issue
  • Attach associated Repo
  • Attach associated Project
  • Attach any relevant Tags
  • Do required changes to your repo files
  • Commit with “resolve #” associated to Issue

[Important]: to include “resolve #58” in Commit Message in order to tell Github to automatically resolve it.

2. Issue is Open

3. Issue is Closed successfully

Actions: Commmited, Staged and Pushed.

[SUCCESS]: Issue #58 has indeed been automatically closed without a manual intervention on the kanban board!

4. A Tick ☑️ as a little reward for work done

5. Resolve Multiple Issues at once!

I attempted to close two issues at once with a single commmit message.

Commit message: “test resolve #59 #60” - Does not work

Commit message: “test double resolve #60 resolve #61” - Did work

There’s probably a better way but this will do.