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

No outputs defined #39

Closed
politician opened this issue Jul 5, 2020 · 2 comments
Closed

No outputs defined #39

politician opened this issue Jul 5, 2020 · 2 comments

Comments

@politician
Copy link

politician commented Jul 5, 2020

It would be great to set the output of this action as a workflow accessible output so it can be accessed in subsequent steps.

Example text output:

⧗   input: fix:
✖   subject may not be empty [subject-empty]
⚠   type must be sentence-case [type-case]

✖   found 1 problems, 1 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

⧗   input: hello world
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

✖   found 2 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

Example JSON output (can be used with fromJson())

[
   {
      "id":"a4060537e328962f6808c1fc0232d0a9c4cf761f",
      "message":"fix:",
      "errors":[
         "subject may not be empty [subject-empty]"
      ],
      "warnings":[
         "type must be sentence-case [type-case]"
      ]
   },
   {
      "id":"cb565dfcca3128380b9b3dc274aedbcae34ce5ca",
      "message":"hello world",
      "errors":[
         "subject may not be empty [subject-empty]",
         "type may not be empty [type-empty]"
      ],
      "warnings":[

      ]
   }
]
@wagoid
Copy link
Owner

wagoid commented Jul 19, 2020

Hi @Incorrupt, thanks for the issue! That would definitely be very useful, I'll have a look at it 😃

wagoid added a commit that referenced this issue Jul 21, 2020
wagoid added a commit that referenced this issue Jul 21, 2020
wagoid added a commit that referenced this issue Jul 21, 2020
@wagoid wagoid closed this as completed in 550792f Aug 2, 2020
@wagoid
Copy link
Owner

wagoid commented Aug 2, 2020

@Incorrupt Done! you can see documentation of the output in the readme ✔️

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

No branches or pull requests

2 participants