Skip to content

Conversation

@mariux
Copy link
Member

@mariux mariux commented May 12, 2020

Problem statement

When disabling issues via has_issues = false the module will still import Github issue labels. which creates a bunch of unneeded resources.

Implemented solution

This changes the default of this behavior to only create/import issues when issues are enabled or issue labels are specified.
A new argument issue_labels_create was added to disable issue label creation completely or to force creating issue labels even if has_issues == false

Breaking Change

This could be considered a breaking change as it might delete issue_labels that have been imported before.
You could prevent this by actively setting issue_labels_create = true.

@mariux mariux requested a review from soerenmartius as a code owner May 12, 2020 22:52
@mariux mariux force-pushed the mariux/do-not-always-create-issue-labels branch from cdebbf6 to 000f75d Compare May 12, 2020 23:20
@mariux mariux force-pushed the mariux/do-not-always-create-issue-labels branch from 000f75d to dda270f Compare May 12, 2020 23:33
Copy link
Member

@soerenmartius soerenmartius left a comment

Choose a reason for hiding this comment

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

lgtm! Please see my comment for clarification

variable "issue_labels_create" {
description = "Specify whether you want to force or suppress the creation of issues labels."
type = bool
default = null
Copy link
Member

Choose a reason for hiding this comment

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

Wasn't set enabled per default previously?

Copy link
Member Author

Choose a reason for hiding this comment

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

from description up there:

This changes the default of this behavior to only create/import issues when issues are enabled or issue labels are specified.

;)

@mariux mariux merged commit 0cb40f9 into master May 13, 2020
@mariux mariux deleted the mariux/do-not-always-create-issue-labels branch May 13, 2020 10:27
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