Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ jobs:
jobs=$(echo "$jobs" | python3 -c 'import json,sys; print(json.dumps(json.load(sys.stdin) + [{"command":"update-conda-forge-pinning","distro":"","args":"","preview":False}]))')
fi ;;
workflow_dispatch) # only people with write access can dispatch
jobs=$(pixi run -q rs parse-command --body "@robostack-bot $COMMAND $PACKAGES $DISTRO" --association OWNER) ;;
jobs=$(ROBOSTACK_BOT_BODY="@robostack-bot $COMMAND $PACKAGES $DISTRO" ROBOSTACK_BOT_ASSOCIATION=OWNER pixi run -q rs parse-command) ;;
*)
jobs=$(pixi run -q rs parse-command --body "$BODY" --association "$ASSOCIATION") ;;
jobs=$(ROBOSTACK_BOT_BODY="$BODY" ROBOSTACK_BOT_ASSOCIATION="$ASSOCIATION" pixi run -q rs parse-command) ;;
esac
echo "jobs=$jobs" | tee -a "$GITHUB_OUTPUT"

Expand Down
5 changes: 3 additions & 2 deletions tools/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,9 @@ def main(command: str, argv: list[str], distro: str | None = None) -> int:
parser.add_argument("name")
parser.add_argument("--from", dest="source", required=True)
if command == "parse-command":
parser.add_argument("--body", required=True)
parser.add_argument("--association", required=True)
# the text comes from the environment: pixi's task shell would re-parse quotes in it
parser.add_argument("--body", default=os.environ.get("ROBOSTACK_BOT_BODY", ""))
parser.add_argument("--association", default=os.environ.get("ROBOSTACK_BOT_ASSOCIATION", ""))
if command == "add-package":
parser.add_argument("names", nargs="+", help="ROS packages, optionally followed by distributions")
parser.add_argument("--preview", action="store_true", help="don't change files, only report")
Expand Down
Loading