[x] My pull request has a descriptive title (not a vague title like Update index.md)
Changes:
Changed the auto-translation workflow to be triggered by adding the label auto. This means that only collaborators with the Triage role or higher can start the auto-translation workflow.
With this change, you can now restart the workflow by removing&adding the auto label again, without re-creating the issue. You can also add the auto label to existing issues.
Modified the issue templates so that each language label (japanesechinese etc.) are automatically added when creating a new issue.
I didn't include the auto label in the template because it would bypass the role permission check and break the purpose of this PR.
Confusing part is that the workflow will be triggered for each label, meaning if you add 2 labels auto and japanese on creating a new issue, it will trigger 2 workflow runs, and only the one for auto label will succeed. Workflow runs for other labels will always fail. -> [Edit] Fixed this case to be skipped instead of failure.
Checklist:
Update index.md
)Changes:
auto
. This means that only collaborators with theTriage
role or higher can start the auto-translation workflow.auto
label again, without re-creating the issue. You can also add theauto
label to existing issues.japanese
chinese
etc.) are automatically added when creating a new issue.auto
label in the template because it would bypass the role permission check and break the purpose of this PR.auto
andjapanese
on creating a new issue, it will trigger 2 workflow runs, and only the one forauto
label will succeed. Workflow runs for other labels will alwaysfail. -> [Edit] Fixed this case to be skipped instead of failure.[Edit] Added these changes:
I have tested the behavior in my fork.