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

Provide some useful outputs; labels, policy #336

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

jamacku
Copy link
Member

@jamacku jamacku commented Apr 17, 2024

labels

List of labels that were set based on the provided policy. The output is a stringified JSON array.

policy

Policy that was used to set labels on issue. Value is a stringified JSON object.

@jamacku jamacku added the type: feature New feature or request label Apr 17, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 17, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 35 lines in your changes are missing coverage. Please review.

Project coverage is 42.40%. Comparing base (f2f60ec) to head (5c448a2).

Files Patch % Lines
src/action.ts 0.00% 14 Missing and 1 partial ⚠️
src/schema/output.ts 0.00% 11 Missing and 1 partial ⚠️
src/labeler.ts 46.66% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
- Coverage   45.45%   42.40%   -3.05%     
==========================================
  Files           8        9       +1     
  Lines         341      382      +41     
  Branches       31       32       +1     
==========================================
+ Hits          155      162       +7     
- Misses        182      215      +33     
- Partials        4        5       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

> List of labels that were set based on the provided policy. The output is a stringified JSON array.
@jamacku jamacku force-pushed the policy-output branch 4 times, most recently from 228808a to 5c448a2 Compare April 18, 2024 10:49
@jamacku jamacku marked this pull request as ready for review April 18, 2024 11:23
> Policy that was used to set labels on issue. Value is a stringified JSON object.
@jamacku
Copy link
Member Author

jamacku commented Apr 18, 2024

Tested manually in the Demo repository:

Outputs works as expected

@jamacku jamacku merged commit e4a460c into redhat-plumbers-in-action:main Apr 18, 2024
5 checks passed
@jamacku jamacku deleted the policy-output branch April 18, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to store the output of the policy for later step in the workflow?
2 participants