In order to save the Wikibase Cloud Team from having to repeatedly create Phabricator tasks in the "Engineering MicroTasks" column of the Wikibase Cloud board, we would like to create a GitHub action for all our repositories that use Dependabot, that manages these Phabricator tasks for us automatically.
Dependabot closes PRs that become outdated by another Dependabot or manual update PR so the GitHub action might need to close Phabricator tasks as well as create them.
Until we have a CD pipeline that makes it easy to deploy updates one at a time, we have decided to only have one Phabricator task per "type" of Dependabot PR. A nonexhaustive list of the "type" of Dependabot PRs there are (i.e. one per PR tag on GitHub):
- wbstack/api GitHub Action updates
- wbstack/api PHP updates
- wbstack/api Docker updates
- wbstack/ui JavaScript updates
This means the GitHub action will need to check the "Engineering MicroTasks" column for existing tasks of that "type" before creating a new one.
We will need Phabricator credentials of a bot account to manage the tasks. Before requesting a new bot see if there is an existing bot that would be suitable (e.g. the same one as for https://gitlab.wikimedia.org/toolforge-repos/wmde-github-phab-bot?).
Consider creating a reusable GitHub action rather than copy/pasta/edit the same GitHub action YAML config which would involve more work if/when we need to update the actions.