question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom labels specified not used

See original GitHub issue

Hello, we are making use of the custom labels feature released in 0.9.0 so that we can differentiate between PR’s that should be automatically merged and those that should be reviewed. In our case, minor and patch bumps would be automatically merged, while major bumps aren’t. The label we are trying to use is simply “automerge”.

The reason why we currently can’t use the autocomplete and auto approve is because our branch policy requires two reviewers. There are steps after dependabot in the pipeline that will find all PR’s with this label and complete them by bypassing policies using the devops rest api.

Here is the script we’re using in the pipeline:

      docker run --rm -t \
        -e GITHUB_ACCESS_TOKEN=$(dependabot-gh-pat) \
        -e AZURE_HOSTNAME=dev.azure.com \
        -e AZURE_ACCESS_TOKEN=$(dependabot-pat) \
        -e AZURE_ORGANIZATION={redacted} \
        -e AZURE_PROJECT=${{ parameters.project }} \
        -e AZURE_REPOSITORY=${{ parameters.repository }} \
        -e DEPENDABOT_DIRECTORY=${{ parameters.directory }} \
        -e DEPENDABOT_MILESTONE=${{ parameters.parent_wi }} \
        -e DEPENDABOT_PACKAGE_MANAGER=${{ parameters.pkg_mgr }} \
        -e DEPENDABOT_VERSIONING_STRATEGY=auto \
        -e DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=${{ parameters.pr_limit }} \
        -e DEPENDABOT_IGNORE_CONDITIONS='${{ parameters.ignore_cond }}' \
        -e DEPENDABOT_EXTRA_CREDENTIALS={redacted} \
        -e DEPENDABOT_LABELS='["automerge", "dependencies"]' \
        -e AZURE_SET_AUTO_COMPLETE=${{ lower(parameters.autocomplete) }} \
        tingle/dependabot-azure-devops:0.10

I see the following note in the github dependabot docs stating that the labels must already exist, so I ensured the label was added to other PRs first:

You can use labels to override the default labels and specify alternative labels for all pull requests raised for a package manager. You can’t create new labels in the dependabot.yml file, so the alternative labels must already exist in the repository.

After the pipeline completes, we see the dependencies label but not the automerge label. What am I missing?

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

0reactions
mburumaxwellcommented, Jan 31, 2023

@mmoreno79 there’s still no new release for dependabot since 0.215.0 but the new bits are now available here. Could you test using the specific input dockerImageTag: 0.14.2-ci.7?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use custom labels for Shopping ads
Each custom label can only have one value per product. It isn't necessary for an item to have a value for one or...
Read more >
I have no access to edit custom Labels.Can any one tell me ...
To access custom labels, Go To Setup — Create — Custom Labels. Click on New Custom Labels. Enter value for name, value and...
Read more >
Unable to access packaged custom labels from outside the ...
I am able access the custom labels created in my org, using Apex, but not the custom labels from a managed package installed...
Read more >
Can't specify custom labels or versions in Function resource...
UseCase #1: Need to ability to specify custom labels on my functions. ... So I thought I can deploy using the nuctl CLI...
Read more >
DetectCustomLabels - Amazon Rekognition
DetectCustomLabelsLabels only returns labels with a confidence that's higher than the specified value. The value of MinConfidence maps to the assumed threshold ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found