chore(deps): bump org.jetbrains:annotations from 26.0.1 to 26.0.2 in /Scenamatica #185
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: Labeler | |
on: | |
issues: | |
types: [opened, labeled, closed] | |
pull_request: | |
types: [opened, labeled, closed] | |
jobs: | |
change-status-label: | |
name: Change status of issue or pull request on its status change | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Add denied label when closed if it has pending label" | |
if: "github.event.action == 'closed' && contains(github.event.issue.labels.*.name, 'Status: Pending')" | |
uses: andymckay/[email protected] | |
with: | |
add-labels: "Status: Denied" | |
remove-labels: "Status: Pending" | |
- name: "Add resolved label when closed if it has accepted label" | |
if: "github.event.action == 'closed' && contains(github.event.issue.labels.*.name, 'Status: Accepted')" | |
uses: andymckay/[email protected] | |
with: | |
add-labels: "Status: Resolved" | |
remove-labels: "Status: Accepted" | |
- name: "Add default label when opened if it has no pending label" | |
if: "github.event.action == 'opened' && !contains(github.event.issue.labels.*.name, 'Status: Pending')" | |
uses: andymckay/[email protected] | |
with: | |
add-labels: "Status: Pending, Priority: Normal" | |
change-label-by-triage: | |
name: Change label by triage with label | |
runs-on: ubuntu-latest | |
if: "github.event.action == 'labeled'" | |
steps: | |
- name: "Remove pending and denied label when triaged" | |
if: "github.event.label.name == 'Status: Accepted'" | |
uses: andymckay/[email protected] | |
with: | |
remove-labels: "Status: Pending, Status: Denied" | |
- name: "Change labels when Duplicated" | |
if: "github.event.label.name == 'Status: Duplicated'" | |
uses: andymckay/[email protected] | |
with: | |
add-labels: "Status: Denied" | |
- name: "Change labels when add Resolved label" | |
if: "github.event.label.name == 'Status: Resolved'" | |
uses: andymckay/[email protected] | |
with: | |
remove-labels: "Status: Accepted" | |
close-issue-by-label: | |
name: Close issue by label | |
if: "github.event.action == 'labeled' && (github.event.label.name == 'Status: Duplicated' || github.event.label.name == 'Status: Resolved')" | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: "Close pull request" | |
if: "${{ github.event.issue.pull_request }}" | |
run: "gh pr close ${github.event.issue.number} -R ${github.repository}" | |
- name: "Close issue" | |
if: "${{ !github.event.issue.pull_request }}" | |
run: "gh issue close ${github.event.issue.number} -R ${github.repository}" |