Skip to content

Conversation

@nadalaba
Copy link
Contributor

@nadalaba nadalaba commented Sep 1, 2024

Description

  • Previous automatic PR labeler doesn't work when triggered from forks because workflows triggered from forks by the events pull_request and pull_request_review have read access only, and can't write to PRs (change labels).

  • This is an attempt to solve this issue by splitting the workflow in 2:
    One with read access only, that gets triggered by those events, and when completed another workflow would run with write access that would perform the change.

  • I added everything I could think of to the list of conditions to update the labels (because removing conditions later is easier than going back to the docs and adding more conditions). You may need to go over this list and remove what you deem unnecessary.

fehmer
fehmer previously approved these changes Sep 3, 2024
Copy link
Member

@fehmer fehmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Miodec Miodec merged commit 6a24dbb into monkeytypegame:master Sep 5, 2024
@Miodec
Copy link
Member

Miodec commented Sep 5, 2024

Thanks

@nadalaba nadalaba deleted the fix-PR-labeler branch September 6, 2024 10:54
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

Successfully merging this pull request may close these issues.

3 participants