[Oztechan/TraceFit#9] Setup Kover #7
Workflow file for this run
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: Project Automations | |
on: | |
issues: | |
types: | |
- opened | |
- reopened | |
pull_request: | |
types: | |
- opened | |
- ready_for_review | |
- reopened | |
- closed | |
- converted_to_draft | |
jobs: | |
ProjectAutomations: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Add issue to project' | |
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened') | |
uses: leonsteinhaeuser/[email protected] | |
with: | |
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
organization: Oztechan | |
project_id: 6 | |
resource_node_id: ${{ github.event.issue.node_id }} | |
operation_mode: custom_field | |
custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]' | |
- name: 'Move Related Issue to "π PR Review"' | |
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened') | |
uses: leonsteinhaeuser/[email protected] | |
with: | |
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
organization: Oztechan | |
project_id: 6 | |
resource_node_id: ${{ github.event.pull_request.node_id }} | |
status_value: "π PR Review" | |
move_related_issues: true | |
- name: 'Add Dependency PR by renovate to "π PR Review"' | |
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'renovate[bot]' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened') | |
uses: leonsteinhaeuser/[email protected] | |
with: | |
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
organization: Oztechan | |
project_id: 6 | |
resource_node_id: ${{ github.event.pull_request.node_id }} | |
operation_mode: custom_field | |
custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]' | |
- name: 'Move Related Issue to "π§ In Progress"' | |
if: github.event_name == 'pull_request' && github.event.action == 'converted_to_draft' | |
uses: leonsteinhaeuser/[email protected] | |
with: | |
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
organization: Oztechan | |
project_id: 6 | |
resource_node_id: ${{ github.event.pull_request.node_id }} | |
status_value: "π§ In Progress" | |
move_related_issues: true | |
- name: 'Move Related Issue to "β Done"' | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | |
uses: leonsteinhaeuser/[email protected] | |
with: | |
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
organization: Oztechan | |
project_id: 6 | |
resource_node_id: ${{ github.event.pull_request.node_id }} | |
status_value: "β Done" | |
move_related_issues: true |