-
Notifications
You must be signed in to change notification settings - Fork 2
CMF-14020 Add cleanup in auto_pr_generation_manifest script #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
575d9ae
CMF-14020 Add cleanup in auto_pr_generation_manifest script
scthunderbolt 48a8dad
Temporary disable label creation in PR
scthunderbolt b3956e6
Temporary switch build_tools_workflows to feature/CMF-14020 branch
scthunderbolt 792c128
Temporary set manifests BASE_BRANCH to develop
scthunderbolt 05c1a73
Enable remote branch delete
scthunderbolt a99ae48
Enable remote branch delete
scthunderbolt c9ec5da
Revert "Temporary set manifests BASE_BRANCH to develop"
scthunderbolt 6312273
Revert "Temporary switch build_tools_workflows to feature/CMF-14020 b…
scthunderbolt 7d8f15c
Revert "Temporary disable label creation in PR"
scthunderbolt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -249,6 +249,17 @@ def create_or_checkout_branch(repo, branch_name, base_branch): | |||||
| print("Error checking out branch: {}".format(str(e))) | ||||||
| sys.exit(1) | ||||||
|
|
||||||
| # Delete the unused branch in the remote manifest repository | ||||||
| def delete_branch(repo, branch_name): | ||||||
| print("Delete unused branch: {}".format(branch_name)) | ||||||
| print(':{}'.format(branch_name)) | ||||||
| try: | ||||||
| remote = repo.remote(name='origin') | ||||||
| remote.push(refspec=(':{}'.format(branch_name))) | ||||||
| except GitCommandError as e: | ||||||
| print("Error delete branch: {}".format(str(e))) | ||||||
|
||||||
| print("Error delete branch: {}".format(str(e))) | |
| print("Error deleting branch {}: {}".format(branch_name, str(e))) |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
print(':{}'.format(branch_name))line looks like leftover debug output and doesn’t add useful context (it duplicates what’s in the refspec). Consider removing it to keep action logs clean.