[iobroker-bot] Setup Auto-Merge for Dependabot PRs #482
+35
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
German description can be found below | Deutsche Beschreibung weiter unten
General information
This PR has been created by iobroker-bot. Please review the changes carefully and merge the PR if review is ok.
Feel free to contact me (@ioBroker-Bot) if you have any questions or feel that a PR is faulty. Please open an issue at repository https://github.com/ioBroker/ioBroker.repochecker to report a faulty PR.
And THANKS A LOT for maintaining this adapter from me and all users.
Let's work together for the best user experience.
your
ioBroker Check and Service Bot
@mcm1957 for evidence
Changes provided by this PR
This PR sets up automatic merging for Dependabot pull requests using a new GitHub Actions workflow.
Background
GitHub has announced that they will discontinue processing Dependabot merge commands on January 27, 2026. The old approach of using comment commands like
@dependabot mergewill no longer work after this date.What this PR does
This PR replaces the current setup for auto-merging Dependabot PRs with a new workflow that uses the
iobroker-bot-orga/action-automerge-dependabotaction. Specifically:Creates a new workflow: A new workflow file
.github/workflows/automerge-dependabot.ymlis created. This workflow automatically triggers when Dependabot opens or updates pull requests.Creates auto-merge configuration: If not already present, a configuration file
.github/auto-merge.ymlis created. This file defines which types of dependency updates should be automatically merged:Disables old workflows: If existing automerge workflow files are found (such as
dependabot-automerge.ymlordependabot-auto-merge.yml), they will be renamed to.OLDfiles. This preserves them for reference but prevents them from running.Important notes
This PR is not mandatory. It is up to the developer to review and decide whether to merge this PR. The existing approach will continue to work until January 27, 2026. However, it is recommended to migrate to the new approach before this deadline.
The new workflow will:
.github/auto-merge.ymlConfiguration
The default configuration in
.github/auto-merge.ymlcan be customized to match your needs. For example, you can:Please refer to the comments in the
.github/auto-merge.ymlfile for more configuration options and examples.References
Deutsche Beschreibung
Diese PR richtet das automatische Mergen von Dependabot-Pull-Requests mithilfe eines neuen GitHub Actions Workflows ein.
Hintergrund
GitHub hat angekündigt, dass die Verarbeitung von Dependabot-Merge-Befehlen am 27. Januar 2026 eingestellt wird. Der alte Ansatz mit Kommentar-Befehlen wie
@dependabot mergewird nach diesem Datum nicht mehr funktionieren.Was diese PR macht
Diese PR ersetzt die aktuelle Einrichtung zum automatischen Mergen von Dependabot-PRs durch einen neuen Workflow, der die Aktion
iobroker-bot-orga/action-automerge-dependabotverwendet. Konkret:Erstellt einen neuen Workflow: Eine neue Workflow-Datei
.github/workflows/automerge-dependabot.ymlwird erstellt. Dieser Workflow wird automatisch ausgelöst, wenn Dependabot Pull Requests öffnet oder aktualisiert.Erstellt Auto-Merge-Konfiguration: Falls noch nicht vorhanden, wird eine Konfigurationsdatei
.github/auto-merge.ymlerstellt. Diese Datei definiert, welche Arten von Abhängigkeits-Updates automatisch gemergt werden sollen:Deaktiviert alte Workflows: Falls vorhandene Automerge-Workflow-Dateien gefunden werden (wie
dependabot-automerge.ymloderdependabot-auto-merge.yml), werden diese in.OLD-Dateien umbenannt. Dies bewahrt sie als Referenz, verhindert aber deren Ausführung.Wichtige Hinweise
Diese PR ist nicht verpflichtend. Es liegt am Entwickler, diese PR zu prüfen und zu entscheiden, ob sie gemergt werden soll. Der bestehende Ansatz wird weiterhin bis zum 27. Januar 2026 funktionieren. Es wird jedoch empfohlen, vor diesem Termin auf den neuen Ansatz zu migrieren.
Der neue Workflow wird:
.github/auto-merge.ymldefinierten Merge-Regeln beachtenKonfiguration
Die Standardkonfiguration in
.github/auto-merge.ymlkann an die eigenen Bedürfnisse angepasst werden. Beispielsweise kann man:Bitte die Kommentare in der
.github/auto-merge.yml-Datei für weitere Konfigurationsoptionen und Beispiele beachten.Referenzen
Template: X0000-setupAutomergeDependabot