Skip to content

fix: replace - with _ #246

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 2 commits into from
May 3, 2025
Merged

fix: replace - with _ #246

merged 2 commits into from
May 3, 2025

Conversation

Omochice
Copy link
Contributor

@Omochice Omochice commented May 3, 2025

fixes #245

Omochice added 2 commits May 4, 2025 02:12
The input of action is kebab-case, but the endpoint of the rest api expects snake_case.
@Copilot Copilot AI review requested due to automatic review settings May 3, 2025 17:33
@Omochice Omochice requested a review from a team as a code owner May 3, 2025 17:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the inconsistent use of delimiters in permission keys by replacing dashes with underscores.

  • Updated snapshot file to reflect the new permission key formatting.
  • Modified the permissions extraction function to replace dashes with underscores using replaceAll.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/snapshots/index.js.md Updated snapshot output to reflect underscore usage in keys.
lib/get-permissions-from-inputs.js Adjusted key processing to convert dashes to underscores.

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

Great catch thank you! I'll make sure someone from @actions gets it merged

@parkerbxyz parkerbxyz merged commit 3336784 into actions:main May 3, 2025
2 checks passed
create-app-token-action-releaser bot pushed a commit that referenced this pull request May 3, 2025
## [2.0.6](v2.0.5...v2.0.6) (2025-05-03)

### Bug Fixes

* replace `-` with `_` ([#246](#246)) ([3336784](3336784))
@create-app-token-action-releaser

🎉 This PR is included in version 2.0.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Requesting permission-pull-requests results in 422 error
3 participants