async _projectEnabled()

in zuul-results-summary/zuul-results-summary.js [190:201]


  async _projectEnabled(project) {
    const configPromise = this.plugin.restApi().get(
        `/projects/${encodeURIComponent(project)}/` +
        `${encodeURIComponent(this.plugin.getPluginName())}~config`);
    try {
      const config = await configPromise;
      return config && config.enabled;
    } catch (error) {
      console.log(error);
      return false;
    }
  }