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

Export issue and issueCommand from core #853

Open
kimburgess opened this issue Jun 25, 2021 · 0 comments
Open

Export issue and issueCommand from core #853

kimburgess opened this issue Jun 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@kimburgess
Copy link

Describe the enhancement
The core package defines the very useful issueCommand and issue functions, however these are currently available for internal use only.

Code Snippet
Exporting these would allow common usage scenarios such as

core.info(`::add-matcher::${Path.join(some_base_path, 'foo.json')}`)

(or worse)

To be more cleanly expressed as

core.issue('add-matcher', Path.join(some_base_path, 'foo.json'))

Additional information
This will also isolate usage from any changes to the underlying command structure (see #110), as well as ensuring any required escaping is applied.

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

No branches or pull requests

1 participant