Configure default labels in workflow file
See original GitHub issueWould it be possible to configure the default labels using the workflow file?
In my case, I would like to add the automatic-todo
and bot
labels to every issue I have created without having to write multiline comments with the same content each time.
As far as I understand your code changing line 457 to the code bellow should do the trick for a single custom default label.
labels=[os.getenv('INPUT_LABEL', 'todo')],
Of course the
README.md
andaction.yml
needs to be adjusted too.
If you want I would create a PR for this feature.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Creating a label assignment program using the workflow canvas
Configure the default label settings so that all new contacts are automatically assigned at least one label upon creation. Ensure that administrator security ......
Read more >Labels - Cromwell - Read the Docs
For default labels applied by the Google backend, Cromwell will modify workflow/task/call names to fit the schema, according to the following rules: Any...
Read more >Get started with sensitivity labels - Microsoft Purview
Files in SharePoint to be automatically labeled with a default sensitivity label, Configure a default sensitivity label for a SharePoint document library.
Read more >Manage Drive labels - Google Workspace Admin Help
Role, File access, Action user can take ; Admin, any type of access, Create new labels and manage the label taxonomy ; User,...
Read more >Issue boards - GitLab Docs
You add your labels, and then create the corresponding list for your existing issues. ... You can tailor GitLab issue boards to your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now live in
v4.7
. 😄I’ve just pushed a commit for this functionality. I’ve not created an actual release for it yet but will do soon.
Example usage (add to
workflow.yml
):IDENTIFIERS: '[{"name": "TODO", "labels": ["help wanted"]}, {"name": "FIXME", "labels": ["bug"]}]'
Must be valid JSON with double quoted keys/values.
If you don’t want to define default labels, you can just set
labels
to an empty list.