Skip to content

Releases: mathew-fleisch/bashbot

v1.6.3

01 Sep 14:56
Compare
Choose a tag to compare
update read-me

v1.6.2

25 Aug 13:45
Compare
Choose a tag to compare
Bake more examples into container

v1.6.1

22 Aug 12:23
Compare
Choose a tag to compare
Formalize add/remove examples as bashbot commands

v1.6.0

17 Aug 22:24
fbbd22f
Compare
Choose a tag to compare

This minor update is a breaking change for the configuration json.

  • All .tools[].setup fields will need to be removed (and merged into .tools[].command)
  • These values are no longer a type:string and now expect an array of strings. They will be joined together with spaces and ultimately rendered as a string. This change is to help human readability of this field when running long/complex commands (For more information see: #44) :
    • .tools[].command
    • .tools[].parameters[].source
    • .dependencies[].install

In this example the existing configuration:
https://github.com/mathew-fleisch/bashbot/blob/main/examples/github-action/trigger-github-action.json

{
  "name": "Trigger a Github Action",
  "description": "Triggers an example Github Action job by repository dispatch",
  "help": "bashbot trigger-github-action",
  "trigger": "trigger-github-action",
  "location": "./examples/github-action",
  "setup": "export REPO_OWNER=mathew-fleisch && export REPO_NAME=bashbot && export SLACK_CHANNEL=${TRIGGERED_CHANNEL_ID} && export SLACK_USERID=${TRIGGERED_USER_ID}",
  "command": "./trigger.sh && echo \"Running this <https://github.com/${REPO_OWNER}/${REPO_NAME}/blob/main/.github/workflows/example-bashbot-github-action.yaml|example github action>\"",
  "parameters": [],
  "log": false,
  "ephemeral": false,
  "response": "text",
  "permissions": ["all"]
}

Would look something like

{
  "name": "Trigger a Github Action",
  "description": "Triggers an example Github Action job by repository dispatch",
  "help": "bashbot trigger-github-action",
  "trigger": "trigger-github-action",
  "location": "./examples/github-action",
  "command": [
    "export REPO_OWNER=mathew-fleisch",
    "&& export REPO_NAME=bashbot",
    "&& export SLACK_CHANNEL=${TRIGGERED_CHANNEL_ID}",
    "&& export SLACK_USERID=${TRIGGERED_USER_ID}", 
    "&& ./trigger.sh",
    "&& echo \"Running this <https://github.com/${REPO_OWNER}/${REPO_NAME}/blob/main/.github/workflows/example-bashbot-github-action.yaml|example github action>\""
  ],
  "parameters": [],
  "log": false,
  "ephemeral": false,
  "response": "text",
  "permissions": ["all"]
}

.dependencies[].install and .tools[].parameters[].source would follow the same pattern of an array of strings joined together.

v1.5.4

10 Aug 23:57
Compare
Choose a tag to compare
Remove binary from source

v1.5.3

09 Aug 03:13
Compare
Choose a tag to compare
Update syntax/read-me on github-action example

v1.5.2

09 Aug 02:39
Compare
Choose a tag to compare
Do that thang

v1.5.1

08 Aug 22:55
Compare
Choose a tag to compare
Add github action trigger example

v1.5.0

08 Aug 06:30
Compare
Choose a tag to compare
Fix typo on read-me

v1.4.13

05 Aug 22:55
8894a1b
Compare
Choose a tag to compare
Move get-vendor-dependencies functionality from shell script into bas…