name: Update title of issue to represent the plugin on: issues: types: [opened] workflow_dispatch: inputs: issue-number: required: true type: number permissions: contents: read issues: write jobs: update-issue-title: runs-on: ubuntu-latest if: github.repository == 'noctalia-dev/community-plugins' steps: - uses: actions/checkout@v7 - uses: actions/setup-python@v7 with: python-version: '3.14' cache: 'pip' cache-dependency-path: | .github/workflows/scripts/PyGithub-requirement.txt - name: Install dependencies run: pip install -r .github/workflows/scripts/PyGithub-requirement.txt - name: Update Issue Title env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPOSITORY: ${{ github.repository }} ISSUE_NUMBER: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.issue-number || github.event.issue.number }} run: python3 .github/workflows/scripts/issues-update-title.py