Skip to content

Fix conflicting actions between GitHub Actions workflows #8546

@t-will-gillis

Description

@t-will-gillis

Overview

We need to add an exception to the "Check Closed Issue For Linked PR" workflow so that the bot does not reopen Skills Issues from inactive members that the "Schedule Monthly" workflow attempts to close.

Action Items

Open check-issue-labels-and-linked-prs.js

  • Add the label Complexity: Prework to the following section. Note that the labelKey 'complexity0' pairs with the labelName "Complexity: Prework":
      // Use labelKeys to retrieve current labelNames from directory
    const [
      nonPrContribution
    ] = [
      'NEW-nonPrContribution'
    ].map(retrieveLabelDirectory);
    
  • Add the labelKeys 'er' and 'epic' for the labelNames "ER" and "epic" in the same section.
  • Then add the labelKey variables in the following section. (You may want to refactor to more cleanly account for the excluded labels)
      // Check if the issue has the labels that will avoid re-opening it.
    if (
      labels.some(
        (label) =>
          label === nonPrContribution || label.toLowerCase().includes('ignore')
      )
    ) {
      console.info(consoleMessageAllowClose);
      return true;
    }
    
  • Optional: If you want to make this into a Complexity: Large issue, create an environment to test GitHub Actions by implementing "Resources/Instructions" below. Ask one of the Merge Team to change the complexity for you.
  • Otherwise make the necessary changes to the JS, then Slack team members requesting confirmation.

Resources/Instructions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New Issue Approval

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions