Skip to content

Saving multiple documents from inbox results in saving the same document with changed names multiple times #842

Saving multiple documents from inbox results in saving the same document with changed names multiple times

Saving multiple documents from inbox results in saving the same document with changed names multiple times #842

---
name: Issue - Remove needinfo label
on:
issue_comment:
types:
- created
permissions:
contents: read
issues: write
jobs:
issue-needinfo-remove:
name: Remove 'needinfo' and add 'answered'
runs-on: ubuntu-latest
if: |
contains(github.event.issue.labels.*.name, 'status: needs information') &&
github.event.comment.author_association != 'OWNER' &&
github.event.comment.author_association != 'MEMBER' &&
github.event.comment.author_association != 'COLLABORATOR'
environment: botmobile
permissions:
issues: write
pull-requests: write
steps:
- name: App token generate
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
if: ${{ vars.BOT_CLIENT_ID }}
id: app-token
with:
client-id: ${{ vars.BOT_CLIENT_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Remove needinfo label and add answered label
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
GH_TOKEN: ${{ steps.app-token.outputs.token || github.token }}
run: |
gh issue edit $ISSUE_NUMBER --repo "$GITHUB_REPOSITORY" --remove-label "status: needs information" --add-label "status: answered"