feat: update prompt #1134
Workflow file for this run
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: PULL-REQUEST-USER-INTERACT | |
| on: | |
| pull_request_target: | |
| types: [ edited, opened ] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| REVIEWERS: 'iziang' | |
| REPO: 'ApeRAG' | |
| ISINTERACTION: '' | |
| jobs: | |
| get-issue-label: | |
| name: GET PR Issue Label | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: get issue link | |
| run: | | |
| gh api graphql -f query=' | |
| query($org: String!,$repo: String!,$number: Int!){ | |
| repository(owner: $org, name: $repo) { | |
| pullRequest(number: $number) { | |
| id | |
| closingIssuesReferences (first: 10) { | |
| edges { | |
| node { | |
| number | |
| labels (first: 10) { edges{ node {name}} } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }' -f org=${{ github.repository_owner }} -f repo=${{ env.REPO }} -F number=${{ github.event.pull_request.number }} > label_data.json | |
| echo 'ISINTERACTION='$(jq '.data.repository.pullRequest.closingIssuesReferences.edges[].node.labels.edges[].node | select(.name== "area/user-interaction")' label_data.json) >> $GITHUB_ENV | |
| - name: Add labels | |
| if: ${{ env.ISINTERACTION != null }} | |
| uses: actions-cool/issues-helper@v3 | |
| with: | |
| actions: 'add-labels' | |
| token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| labels: 'area/user-interaction' | |
| - name: Add Pull Request Reviewers | |
| uses: sakhnovict/[email protected] | |
| if: ${{ env.ISINTERACTION != null }} | |
| with: | |
| reviewers: ${{ env.REVIEWERS }} | |
| token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |