text: /**
   * ----------------------------------------------------------------------------------------------------
   * Get a Discussion Comment [Run]
   *
   * @description - Get a discussion comment using the Github API
   *
   * @author    Buildable Technologies Inc.
   * @access    open
   * @license   MIT
   * @docs      https://docs.github.com/enterprise-server@3.3/rest/reference/teams#get-a-discussion-comment
   *
   * ----------------------------------------------------------------------------------------------------
   */
  
  const axios = require("axios");
  
  /**
   * The Node’s executable function
   *
   * @param {Run} input - Data passed to your Node from the input function
   */
  const run = async (input) => {
    const {
      GITHUB_API_TOKEN,
      GITHUB_API_USERNAME,
      org,
      team_slug,
      discussion_number,
      comment_number,
    } = input;
  
    verifyInput(input);
  
    try {
      const { data } = await axios({
        method: "get",
        url: `https://api.github.com/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments/${comment_number}`,
        auth: { password: GITHUB_API_TOKEN, username: GITHUB_API_USERNAME },
      });
  
      return data;
    } catch (error) {
      return {
        failed: true,
        message: error.message,
        data: error.response.data,
      };
    }
  };
  
  /**
   * Verifies the input parameters
   */
  const verifyInput = ({
    GITHUB_API_TOKEN,
    GITHUB_API_USERNAME,
    org,
    team_slug,
    discussion_number,
    comment_number,
  }) => {
    const ERRORS = {
      INVALID_GITHUB_API_TOKEN:
        "A valid GITHUB_API_TOKEN field (string) was not provided in the input.",
      INVALID_GITHUB_API_USERNAME:
        "A valid GITHUB_API_USERNAME field (string) was not provided in the input.",
      INVALID_ORG: "A valid org field (string) was not provided in the input.",
      INVALID_TEAM_SLUG:
        "A valid team_slug field (string) was not provided in the input.",
      INVALID_DISCUSSION_NUMBER:
        "A valid discussion_number field (number) was not provided in the input.",
      INVALID_COMMENT_NUMBER:
        "A valid comment_number field (number) was not provided in the input.",
    };
  
    if (typeof GITHUB_API_TOKEN !== "string")
      throw new Error(ERRORS.INVALID_GITHUB_API_TOKEN);
    if (typeof GITHUB_API_USERNAME !== "string")
      throw new Error(ERRORS.INVALID_GITHUB_API_USERNAME);
    if (typeof org !== "string") throw new Error(ERRORS.INVALID_ORG);
    if (typeof team_slug !== "string") throw new Error(ERRORS.INVALID_TEAM_SLUG);
    if (typeof discussion_number !== "number")
      throw new Error(ERRORS.INVALID_DISCUSSION_NUMBER);
    if (typeof comment_number !== "number")
      throw new Error(ERRORS.INVALID_COMMENT_NUMBER);
  };
  