Skip to content

Add GitHub Issues notification via GitHub Actions#75

Open
SuperRitchie wants to merge 2 commits intoFullStackWithLawrence:mainfrom
SuperRitchie:main
Open

Add GitHub Issues notification via GitHub Actions#75
SuperRitchie wants to merge 2 commits intoFullStackWithLawrence:mainfrom
SuperRitchie:main

Conversation

@SuperRitchie
Copy link
Copy Markdown

@SuperRitchie SuperRitchie commented May 5, 2026

Pull Request Template

Type of Change

  • New feature
  • Bug fix
  • Documentation
  • Refactor
  • Chore

Resolves

  • N/A

Changes

Added a notification step to the Python Unit Tests GitHub Actions workflow. The new notifications job runs after the python-unit-tests job and uses if: ${{ always() }} so it still executes even when the test job fails.

If the unit tests pass, the workflow writes a success message to the GitHub Actions summary. If the unit tests fail, the workflow creates a GitHub issue using the GitHub CLI and assigns it to the configured NOTIFY_USER repository variable, or to the workflow actor by default.

The workflow also includes the required permissions for reading repository contents and creating issues.

Testing

Tested by manually running the Python Unit Tests workflow from the GitHub Actions tab.

The python-unit-tests job failed due to missing/empty repository secrets in the forked repository, specifically the MySQL configuration. The new notifications job still ran successfully after the failed test job and created a GitHub issue notification, confirming that the failure notification workflow works as expected.

Screenshots

N/A

Dependencies

No new project dependencies were added. The workflow uses the existing GitHub-hosted runner, GitHub Actions context variables, the built-in GITHUB_TOKEN, and the GitHub CLI available in the runner environment.

Breaking Changes

No breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant