question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure default labels in workflow file

See original GitHub issue

Would 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 and action.yml needs to be adjusted too.

If you want I would create a PR for this feature.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alstrcommented, Aug 26, 2022

Now live in v4.7. 😄

2reactions
alstrcommented, Aug 26, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found