Document Airbyte repository capabilities and development workflow #156168
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
name: Slash Command Dispatch | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
slashCommandDispatch: | |
name: Dispatch | |
if: startsWith(github.event.comment.body, '/') | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Get PR repo and ref | |
if: ${{ github.event.issue.pull_request }} | |
id: getref | |
run: | | |
pr_info="$(curl ${{ github.event.issue.pull_request.url }})" | |
echo ref="$(echo $pr_info | jq -r '.head.ref')" >> $GITHUB_OUTPUT | |
echo repo="$(echo $pr_info | jq -r '.head.repo.full_name')" >> $GITHUB_OUTPUT | |
- name: Authenticate as GitHub App | |
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
id: get-app-token | |
with: | |
owner: "airbytehq" | |
repositories: "airbyte" | |
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }} | |
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }} | |
- name: Slash Command Dispatch (Workflow) | |
id: scd | |
uses: peter-evans/slash-command-dispatch@f996d7b7aae9059759ac55e978cff76d91853301 # v3.0.2 | |
with: | |
token: ${{ steps.get-app-token.outputs.token }} | |
permission: write | |
dispatch-type: workflow | |
issue-type: both | |
commands: | | |
approve-regression-tests | |
bump-bulk-cdk-version | |
bump-version | |
build-connector-images | |
connector-performance | |
format-fix | |
poe | |
publish-java-cdk | |
run-cat-tests | |
run-connector-tests | |
test-performance | |
update-connector-cdk-version | |
# Notes regarding static-args: | |
# - Slash commands can be invoked from both issues and comments. | |
# - If the slash command is invoked from an issue, we intentionally pass 'null' as the PR number. | |
# - Comment ID will always be sent, and this is sufficient to post back status updates to the originating comment. | |
static-args: | | |
repo=${{ steps.getref.outputs.repo }} | |
gitref=${{ steps.getref.outputs.ref }} | |
comment-id=${{ github.event.comment.id }} | |
pr=${{ github.event.issue.pull_request != null && github.event.issue.number || '' }} | |
- name: Edit comment with error message | |
if: steps.scd.outputs.error-message | |
uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae # v1.4.5 | |
with: | |
comment-id: ${{ github.event.comment.id }} | |
body: | | |
> Error: ${{ steps.scd.outputs.error-message }} |