Automation component release issue: Fix the bugs #3795
Merged
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.
Description
Coming from main PR #3708
This fixes the bugs from dblock/create-a-github-issue#39 (comment)
Testing
Case1: Skip the entire logic for component release issue creation if the global release issue from the build repo does not exists.
https://github.com/prudhvigodithi/opensearch-build/actions/runs/5581536373/jobs/10199796796
Case2: Create the component release only if global release issue from the build repo exists
https://github.com/prudhvigodithi/opensearch-build/actions/runs/5581477087/jobs/10199672521
Case2: Skip if the component release issues already exists
https://github.com/prudhvigodithi/opensearch-build/actions/runs/5581536373/jobs/10199796568
Sample component release issues:
https://github.com/prudhvigodithi/OpenSearch/issues is component release issues and that links back to global release issue part of the build repo,
example for
2.8.0
OpenSearch component issue : prudhvigodithi/OpenSearch#7
opensearch-build repo global release issue: prudhvigodithi#63
Issues Resolved
Part of:
#3349
#3676
opensearch-project/.github#167
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.