Update Issue Title When Tag Is Applied #27
This file contains 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: Update Issue Title When Tag Is Applied | |
permissions: | |
contents: read | |
issues: write | |
on: | |
issues: | |
types: [labeled, unlabeled] | |
jobs: | |
update-bug-prefix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install Python Dependencies | |
run: pip install requests | |
- name: Update Issue Title | |
run: python .github/workflows/utils.py --function update_issue_title | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ISSUE_NUMBER: ${{ github.event.issue.number }} | |
REPOSITORY: ${{ github.repository }} | |
ISSUE_LABEL: ${{ github.event.label.name }} | |
EVENT_ACTION: ${{ github.event.action }} |