Skip to content

Commit

Permalink
🌱 use konveyor-bot app to handle issue comment
Browse files Browse the repository at this point in the history
Signed-off-by: David Zager <dzager@redhat.com>
  • Loading branch information
djzager committed Feb 6, 2024
1 parent ef7264f commit a7870d0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/reconcile-issue-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@ jobs:
name: Add Labels
runs-on: ubuntu-latest
steps:
- name: ok
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ vars.KONVEYOR_BOT_ID }}
application_private_key: ${{ secrets.KONVEYOR_BOT_KEY }}

- name: Handle commands
uses: actions/github-script@v7
with:
github-token: ${{ steps.get_workflow_token.outputs.token }}
script: |
const commentRegex = /(<!--.*?-->)|(<!--[\S\s]+?-->)|(<!--[\S\s]*?$)/g;
const labelRegex = /^(\/(area|kind|priority|sig|triage|wg))\s*(.*?)\s*$/gm;
Expand Down

0 comments on commit a7870d0

Please sign in to comment.