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): add the handlers for empty values #2404

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mauromedda
Copy link

@mauromedda mauromedda commented Sep 27, 2024

This commit add the control of the allowed_repositories and the allowed_actions for the actions_permission resources. Without them the API calls will fail because the allowed_actions and the allowed_repository are passed to the API with a null value.

The patch removes them from the HTTP request.

Resolves #2405


Before the change?

After the change?

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

This commit add the control of the allowed_repositories
and the allowed_actions for the actions_permission resources.
Without them the API calls will fail because the allowed_actions and
the allowed_repository are passed to the API with a null value.

The patch removes them from the HTTP request.
@kfcampbell
Copy link
Member

Is there an issue that this resolves? Can you add test cases to validate this behavior for the future?

@mauromedda
Copy link
Author

@kfcampbell I created the issue for it, happy to add further details if required. #2405
I'm going to add the tests for the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Disabling the GH actions at organization or enterprise level is not supported
2 participants