Add workflow to create hotfix task - #9262
Open
CrisBarreiro wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d2deeda. Configure here.
CrisBarreiro
commented
Jul 22, 2026
| RELEASE_TASK_URL=$(python ./scripts/release/create-asana-hotfix-release.py \ | ||
| --android-repo-path . \ | ||
| --tag "${{ inputs.app-version }}" \ | ||
| --commit-hashes "${{ inputs.commit-hashes }}" \ |
Collaborator
Author
There was a problem hiding this comment.
In the future, once we have an orchestrator, we could drop this and only rely on the git tag, but as of now, this mimics the manual process (first create the task, then the tag)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Task/Issue URL: https://app.asana.com/1/137249556945/project/1211760946270935/task/1216782209119876?focus=true
Tech Design URL (if applicable):
Description
Add a new workflow that takes a git tag and a list of commits as inputs, creates a hotfix task, tags tasks, and removes them from the release board. The new task will include both the commits supplied as an input, and all commits included in previous releases/hotfixes. For example, for X.Y.2, it will add tasks for X.Y.1 and X.Y.0 as well
Steps to test this PR
Feature 1
UI changes
Note
Medium Risk
Automation mutates Asana release-board tasks (tagging and removal) and is new hotfix-specific logic; mistakes could mis-label QA work, but scope is limited to release scripts and CI, not the Android app.
Overview
Adds
hotfix_create_task.yml, a callable and manually dispatchable workflow that creates an Android hotfix release task in Asana from a hotfix version and cherry-picked commit SHAs. It mirrors the existing release task flow: run the Python script, assign the task to the actor, post Mattermost success/failure notifications, and open a blocker Asana task on failure.Introduces
create-asana-hotfix-release.py, which builds the hotfix task from Asana links in the listed cherry-picks and adds a second notes section for tasks already shipped on the same minor line (baseX.Y.0plus prior hotfixes). Only new cherry-pick tasks are tagged withandroid-release-{version}and removed from the release board; prior-line tasks are left as-is.Refactors shared Asana/git logic into
asana_release_utils.py(commit resolution by hash, latest tag in a minor line, task duplication, HTML notes, tagging, project removal).create-asana-public-release.pynow imports those helpers instead of duplicating them.Fixes the release workflow’s failed-run Mattermost step to use
mattermost-messageinstead of mistakenly passing the message asasana-task-description. Unit tests cover the new utilities and hotfix script helpers (including--dry-run).Reviewed by Cursor Bugbot for commit 10f8b49. Bugbot is set up for automated code reviews on this repo. Configure here.