github / accessibility-alt-text-bot

An action to remind users to add alt text on Issues, Pull Requests, and Discussions
MIT License
76 stars 13 forks source link

[accessibility-alt-text-bot] Support for Discussions #11

Closed khiga8 closed 1 year ago

khiga8 commented 1 year ago

Currently this action has support for Issues and Pull Requests. Let's add support for Discussions!

kendallgassner commented 1 year ago

I actually think we just need to use the discussions dispatch:

discussion:
    types: [created, edited]
discussion_comment:
    types: [created, edited] 

And possibly add event.discussion as well

 if: ${{ github.event.issue || github.event.pull_request }}
kendallgassner commented 1 year ago

Ah, I see we will need some additional logic to gather the right params.

Reference: action.yml line 13