Skip to content

Commit

Permalink
Merge pull request #1202 from openedx/use-cli
Browse files Browse the repository at this point in the history
build: Use the gh cli to add comments to tickets
  • Loading branch information
sarina authored Jul 16, 2024
2 parents 10b9e93 + 432ec13 commit 27bf13d
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/add-GHrequest-to-team-board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,10 @@ jobs:
tag_and_notify:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GRAPHQL_AUTH_APP_ID }}
private_key: ${{ secrets.GRAPHQL_AUTH_APP_PEM }}

- name: Tag axim on-call
- run: gh issue comment $ISSUE --body "Thank you for your report! @openedx/axim-oncall will triage within a business day. Simple requests usually take 2-3 business days to resolve; more complex requests could take longer."
env:
URL: ${{ github.event.issue.comments_url }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
curl \
-X POST \
$URL \
-H "Content-Type: application/json" \
-H "Authorization: token $GITHUB_TOKEN" \
--data '{ "body": "Thank you for your report! @openedx/axim-oncall will triage within a business day. Simple requests usually take 2-3 business days to resolve; more complex requests could take longer." }'
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.html_url }}

- name: Send custom JSON data to Slack workflow
id: slack
Expand Down

0 comments on commit 27bf13d

Please sign in to comment.