Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Add SetDocumentationSection plugin #71

Merged
merged 2 commits into from
Feb 15, 2021
Merged

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Feb 13, 2021

Extract sections from labels in the issue, and apply labels to it if the label exsist.


let labels = (await Promise.all(
foundSections.map(async (section) => {
const exist = await context.github.issues.getLabel(
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have to check if the label exists? they are created on the fly if I recall correctly from the labelbot.

Copy link
Member Author

Choose a reason for hiding this comment

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

To keep some sort of control on the labels

Copy link
Member

Choose a reason for hiding this comment

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

in this case, it is based on user input. We don't want invalid user input to create a bunch of random labels.

@ludeeus ludeeus merged commit 24428c3 into master Feb 15, 2021
@ludeeus ludeeus deleted the SetDocumentationSection branch February 15, 2021 22:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants