Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since today fetching metadata fails #184

Closed
MichaIng opened this issue Mar 23, 2022 · 4 comments
Closed

Since today fetching metadata fails #184

MichaIng opened this issue Mar 23, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@MichaIng
Copy link

MichaIng commented Mar 23, 2022

Not sure whether something changed on dependabot end, but fetching metadata suddenly fails since earlier today, observed on all three dependabot pull requests we received today:

Run dependabot/[email protected]
  with:
    github-token: ***
Parsing Dependabot metadata
Error: PR does not contain metadata, nothing to do.

E.g. here: https://github.com/ravenclaw900/DietPi-Dashboard/actions/runs/2028340724

Probably related to today's core release? dependabot/dependabot-core#4898

@mwaddell
Copy link
Contributor

@MichaIng,fetch-metadata expects the branchname of dependabot branches to use the form:
dependabot/{ecosystem}/{directory}/{dependency}

However, starting 4 days ago, your branchnames are all:
{4 character hex code}dependabot/{ecosystem}/{directory}/{dependency}

This occurred the same day that you created a new branch called dependabot - I was not aware that doing that would impact the names of the generated branches, but it does seem unlikely this is a coincidence. If you remove the dependabot branch from your repo, does the issue go away?

@MichaIng
Copy link
Author

Great find, this totally makes sense. No I haven't recognised that dependabot branches have some 4 hex char prefix now that the dependabot branch exists, and indeed this will be the issue. I'll report back once the related PR has been merged and following dependabot PRs metadata work, but I'm pretty sure that's it 👍🙂.

@brrygrdn
Copy link
Contributor

This is a slightly under-documented behaviour in Dependabot core, having a branch named dependabot effectively blocks the use of dependabot/ in the git file system so we rescue it by using a random prefix for your branches.

@MichaIng
Copy link
Author

MichaIng commented Apr 11, 2022

Thanks for the clarification. Is this a general behaviour in Git or GitHub that a branch name prevents the creation of branches name/*, as sort of a namespace blocker?

EDIT: Ah I forgot to mark this as closed, the action works very well since the branch was removed, as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants