Add GitHub Issues notification via GitHub Actions#75
Open
SuperRitchie wants to merge 2 commits intoFullStackWithLawrence:mainfrom
Open
Add GitHub Issues notification via GitHub Actions#75SuperRitchie wants to merge 2 commits intoFullStackWithLawrence:mainfrom
SuperRitchie wants to merge 2 commits intoFullStackWithLawrence:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Type of Change
Resolves
Changes
Added a notification step to the
Python Unit TestsGitHub Actions workflow. The newnotificationsjob runs after thepython-unit-testsjob and usesif: ${{ 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_USERrepository 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 Testsworkflow from the GitHub Actions tab.The
python-unit-testsjob failed due to missing/empty repository secrets in the forked repository, specifically the MySQL configuration. The newnotificationsjob 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.