Skip to content

Show warning if no config was found #5072

Description

@bahrmichael

Context

We placed a mergify config at .github/.mergify.yml. This does not match the expected path .github/mergify.yml. Probably happened because we copied the .mergify.yml from the root of the project.

Now we had a config that could not be found, and the Mergify dashboard showed us an example config (I think). This lead to confusion until we understood that this was an example, and that our config could not be found.

Expected Behavior

I suggest adding a warning that no config was found, and that an example i shown instead. Best with a link to the documentation where the expected file location is explained: https://docs.mergify.com/configuration/#file-used

Scrappy example:

Screenshot 2023-02-20 at 13 42 14

Actual Behavior

If no config was found, it shows an example config.

Steps to Reproduce the Problem

  1. Place a config file at .github/.mergify.yml with custom rules
  2. Check the mergify dashboard
  3. You see an example config, but no info that your configuration was not loaded

Specifications

  • Pull Request URL:
  • Mergify Config URL:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions