actions / labeler

An action for automatically labelling pull requests
MIT License
1.99k stars 419 forks source link

Label PR coming from other repository using workflow-dispatch #799

Closed auwimosendsafely closed 3 months ago

auwimosendsafely commented 4 months ago

Description: Labeler should be able to label a PR from another repository

Justification: We are trying to follow the model where our github actions are stored in one central repository and the other repositories have callers to the central one so that we only have to make changes to one file when updating an action that many of our repos use. This is done using the workflow-dispatch trigger. External configuration paths help with this somewhat, as we can at least store those centrally, but currently there is still more duplicate code required than optimal.

gowridurgad commented 3 months ago

Hello @auwimosendsafely We appreciate your suggestion for a new feature! We'll make sure to address it when we have the opportunity.

auwimosendsafely commented 3 months ago

I was following a pattern incorrectly. workflow_dispatch should not be used in the situation I was describing, workflow_call should. Labeler is working as I want it to with this functionality. As such, I am closing this ticket