PR for version update is created after previous one is closed when using github-action on self-hosted runner #32494
Replies: 4 comments 2 replies
This comment has been hidden.
This comment has been hidden.
-
you're doing something wrong with your configuration. |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Most likely cause is a misconfigured "username". Renovate queries the list of PRs based on username, so if it's wrong then it won't find the previous PR |
Beta Was this translation helpful? Give feedback.
-
tl;dr - What's the right way to be able to ignore specific versions when using the action instead of the app?
My understanding is that if I close a PR for a specific version update, that will not be opened again in the future - this is from reading https://docs.renovatebot.com/key-concepts/pull-requests/ - "Renovate does not need to maintain any database/state about open or closed Pull Requests."
This is not happening, and a new PR is being created for the update on the next run.
The PR titles are the same each time as you can see in the images below, and include the full new version number. This is how I understand renovate identifies a previous PR for this version.
I tried setting
"recreateWhen": "never"
in both my repo configuration and my self-hosted configuration files, but the behaviour persists.If I run in debug mode, I see the following regarding lxml - it explicitly states 'Check for closed PR because recreating closed PRs is disabled.'
This doesn't seem right as I have multiple closed PRs with what I believe to be the correct name. gh cli shows the following (subset - there are more)
The PR is then created later in the log
I'm using a classic PAT, not attempting to use a fine grained pat as I understand they are not supported. The PAT has Full control of private repositories enabled.
In the same repo when using the GitHub App, ignoring versions worked as expected and they were not recreated. But we need postUpgradeTasks so we're attempting to move to the action instead.
screenshots
Beta Was this translation helpful? Give feedback.
All reactions