feat: add --auto-file-issue flag to create GitHub Issues on test failure#429
Open
A-d-i-t-y wants to merge 1 commit into
Open
feat: add --auto-file-issue flag to create GitHub Issues on test failure#429A-d-i-t-y wants to merge 1 commit into
A-d-i-t-y wants to merge 1 commit into
Conversation
When microcks test fails in GitHub Actions CI, this flag automatically creates a structured GitHub Issue containing: - Failed operations list - Test endpoint and runner details - Exact reproduction command - Link to full test results on Microcks UI New flags added: - --auto-file-issue: enable automatic issue creation - --github-token: GitHub personal access token - --github-repo: target repository in owner/repo format Closes microcks#428 Signed-off-by: Aditya <aaaditya1909@gmail.com>
Author
|
Hi @Harsh4902 @lbroudoux @Vaishnav88sk, I have raised this PR to implement the --auto-file-issue flag as discussed. When microcks test fails in GitHub Actions CI, this automatically creates a structured GitHub Issue with failed operations, reproduction command, and a link to full results on Microcks UI. Would love your feedback! |
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.
Summary
Adds --auto-file-issue flag to the test command that automatically
creates a structured GitHub Issue when contract tests fail in CI.
Problem
When microcks test fails in GitHub Actions CI, developers only see
a red check and plain text logs buried in CI output. There is no
automatic way to track, reproduce, or assign test failures.
Solution
Three new flags added to the test command:
Example Usage
microcks test 'Beer API:1.0' $URL POSTMAN
--microcksURL=$MICROCKS_URL
--auto-file-issue
--github-token=$GITHUB_TOKEN
--github-repo=org/repo
Example Issue Created Automatically
Title: [Microcks] Test Failed: Beer API v1.0
Files Changed
Closes #428