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.

Pull request cannot be activated

See original GitHub issue

Error: Message TF401398: The pull request cannot be activated because the source and/or the target branch no longer exists, or the requested refs are not branches

YAML:

steps:
- task: dependabot@1
  inputs:
    packageManager: "pip"
    openPullRequestsLimit: 1
    versioningStrategy: "auto"
    targetBranch: development

Detailed Logs:

Digest: sha256:64616d4509746920bc7be0348e44a10b0d9ea6e9b87668b91dace9e5e933d1d9
Status: Downloaded newer image for tingle/dependabot-azure-devops:0.2
Using 'dev.azure.com' as hostname
Fetching pip dependency files for organisation/Kep/_git/Kep
Targeting 'development' branch under '/' directory
Using 'auto' versioning strategy
Parsing dependencies information
Checking if flask-appbuilder 3.1.1 needs updating
Requirements to unlock own
Updating flask-appbuilder from 3.1.1 to 3.2.0
Submitting flask-appbuilder pull request for creation. Failed! PR already exists or an error has occurred.
Status: 400.
Message TF401398: The pull request cannot be activated because the source and/or the target branch no longer exists, or the requested refs are not branches
Limit of open pull requests (1) reached.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
zacqedcommented, Mar 17, 2021

@mburumaxwell -

  1. I have removed steps 3 and 4 from the repository.
  2. depend-new branch does exist in the same repository image
  3. Dependabot it not creating any branches in the repo. I searched by “dependabot” and the result is blank

Update:

The reason for above that there was repository existing with the name dependabot. After manually deleting the same and re-running the pipeline it seems to run just fine.

0reactions
zacqedcommented, Mar 22, 2021

@mburumaxwell - Hey thanks for the guidance. I am marking this as closed 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

TF401398: The pull request cannot be activated because ...
TF401398: The pull request cannot be activated because the source and/or the target branch no longer exists, or the requested refs are not ......
Read more >
Activating the Pull Requests · Issue #3004
Activating the Pull Requests and Issues extension failed. Please make sure you have git installed.
Read more >
Pull Request cannot be merged, or not showing latest ...
Cause. Cause#1: The pull request is not up to date with the tip of the source branch, or the tip of the target...
Read more >
Pull requests not triggering build - Build Environment
You can't trigger a build with a pull request unfortunately, not that I know of. The reason is, because there is no commit...
Read more >
Azure DevOps Git REST API - Create Pull Request from tag
The pull request cannot be activated because the source and/or the target branch no longer exists, or the requested refs are not branches....
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