Skip to content
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

Fix traceback in release helper #10718

Merged

Conversation

jan-cerny
Copy link
Collaborator

The get_old_stabilization_branch returns a list. The function remove_old_stabilization_branch needs 2 arguments.

Addressing:

[jcerny@fedora utils{stabilization-v0.1.68}]$ ./release_helper.py -c ~/secret.ini -r ComplianceAsCode/content cleanup --branch Traceback (most recent call last):
  File "/home/jcerny/work/git/scap-security-guide/utils/./release_helper.py", line 780, in <module>
    main()
  File "/home/jcerny/work/git/scap-security-guide/utils/./release_helper.py", line 776, in main
    subcmds[args.subcmd](repo, args)
  File "/home/jcerny/work/git/scap-security-guide/utils/./release_helper.py", line 638, in cleanup
    remove_old_stabilization_branch(branch_to_remove)
TypeError: remove_old_stabilization_branch() missing 1 required positional argument: 'branch'

The get_old_stabilization_branch returns a list. The function
remove_old_stabilization_branch needs 2 arguments.

Addressing:
[jcerny@fedora utils{stabilization-v0.1.68}]$ ./release_helper.py -c ~/secret.ini -r ComplianceAsCode/content cleanup --branch
Traceback (most recent call last):
  File "/home/jcerny/work/git/scap-security-guide/utils/./release_helper.py", line 780, in <module>
    main()
  File "/home/jcerny/work/git/scap-security-guide/utils/./release_helper.py", line 776, in main
    subcmds[args.subcmd](repo, args)
  File "/home/jcerny/work/git/scap-security-guide/utils/./release_helper.py", line 638, in cleanup
    remove_old_stabilization_branch(branch_to_remove)
TypeError: remove_old_stabilization_branch() missing 1 required positional argument: 'branch'
@jan-cerny jan-cerny added the Infrastructure Our content build system label Jun 15, 2023
@jan-cerny jan-cerny added this to the 0.1.69 milestone Jun 15, 2023
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@marcusburghardt marcusburghardt self-assigned this Jun 15, 2023
@codeclimate
Copy link

codeclimate bot commented Jun 15, 2023

Code Climate has analyzed commit d525b31 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 52.8% (0.0% change).

View more on Code Climate.

Copy link
Member

@marcusburghardt marcusburghardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@marcusburghardt marcusburghardt merged commit b3343e7 into ComplianceAsCode:master Jun 15, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants