Skip to content

Commit

Permalink
Apply Misc Tweaks and Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dakanji committed Jun 4, 2024
1 parent 91d8c78 commit bcfcdcf
Show file tree
Hide file tree
Showing 43 changed files with 1,511 additions and 1,139 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/issue_helper_access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
operation:
type: choice
description: Issue Action
description: 'Issue Action'
options:
- 'Issue - Open'
- 'Issue - Close'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue_helper_assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
operation:
type: choice
description: Issue Action
description: 'Issue Action'
options:
- 'Assignment - Self - Add'
- 'Assignment - Self - Remove'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue_helper_label_add.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
operation:
type: choice
description: Issue Action
description: 'Issue Action'
options:
- 'Label - Add - Abandoned'
- 'Label - Add - Cancelled'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue_helper_label_remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
operation:
type: choice
description: Issue Action
description: 'Issue Action'
options:
- 'Label - Remove - Abandoned'
- 'Label - Remove - Cancelled'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: 'Issue Helper Resolve'
name: 'Issue Helper Resolve Bug'

on:
workflow_dispatch:
inputs:
operation:
type: choice
description: Issue Action
options:
- 'Issue - Resolve - Bug'
- 'Issue - Resolve - Other'
item_id:
description: 'Item ID'
required: true
commmit_ref:
commit_ref:
description: 'Commit Ref'
required: true
show_buildmsg:
type: choice
description: 'Version Comment'
options:
- 'Yes'
- 'No'

permissions:
issues: write
Expand All @@ -29,7 +29,6 @@ jobs:
name: Issue - Resolve - Bug1
runs-on: ubuntu-20.04

if: github.event.inputs.operation == 'Issue - Resolve - Bug'
steps:
- uses: actions-cool/issues-helper@v3
with:
Expand All @@ -44,15 +43,36 @@ jobs:

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
- if: ${{ github.event.inputs.show_buildmsg == 'Yes' }}
id: part_1a
uses: oprypin/find-latest-tag@v1
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
releases-only: true

- if: ${{ github.event.inputs.show_buildmsg == 'Yes' }}
id: part_1b
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
body: |
This item was addressed by Commit ${{ github.event.inputs.commmit_ref }}.
This item was addressed by Commit ${{ github.event.inputs.commit_ref }}.
Refer to [BUILDING.md](https://github.com/dakanji/RefindPlus/blob/GOPFix/BUILDING.md) to access the functionality ahead of the next release.
Current RefindPlus Release: ${{ steps.part_1a.outputs.tag }}.
Refer to BUILDING.md](https://github.com/dakanji/RefindPlus/blob/GOPFix/BUILDING.md) to access functionality before next release.
- if: ${{ github.event.inputs.show_buildmsg == 'No' }}
id: part_2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
body: |
This item was addressed by Commit ${{ github.event.inputs.commit_ref }}.
issue_resolve_bug3:
name: Issue - Resolve - Bug3
Expand Down Expand Up @@ -95,76 +115,3 @@ jobs:
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}

# Misc Issue Items - https://github.com/actions-cool/issues-helper
issue_resolve_other1:
name: Issue - Resolve - Other1
runs-on: ubuntu-20.04

if: github.event.inputs.operation == 'Issue - Resolve - Other'
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'unlock-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}


issue_resolve_other2:
name: Issue - Resolve - Other2
needs: [issue_resolve_other1]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
body: |
This item has been resolved.
Refer to [BUILDING.md](https://github.com/dakanji/RefindPlus/blob/GOPFix/BUILDING.md) to access the functionality ahead of the next release.
issue_resolve_other3:
name: Issue - Resolve - Other3
needs: [issue_resolve_other2]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
labels: 'Resolved'

issue_resolve_other4:
name: Issue - Resolve - Other4
needs: [issue_resolve_other3]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
labels: 'Triage,Queries,Parked,Prorogued,Unclear,Uncertain,Unresolved'

issue_resolve_other5:
name: Issue - Resolve - Other5
needs: [issue_resolve_other4]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
with:
close-reason: 'completed'
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
115 changes: 115 additions & 0 deletions .github/workflows/issue_helper_resolve_other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: 'Issue Helper Resolve Other'

on:
workflow_dispatch:
inputs:
item_id:
description: 'Item ID'
required: true
show_buildmsg:
type: choice
description: 'Version Comment'
options:
- 'Yes'
- 'No'

permissions:
issues: write

concurrency:
group: lock

jobs:

# Misc Issue Items - https://github.com/actions-cool/issues-helper
issue_resolve_other1:
name: Issue - Resolve - Other1
runs-on: ubuntu-20.04

steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'unlock-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}


issue_resolve_other2:
name: Issue - Resolve - Other2
needs: [issue_resolve_other1]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- if: ${{ github.event.inputs.show_buildmsg == 'Yes' }}
id: part_1a
uses: oprypin/find-latest-tag@v1
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
releases-only: true

- if: ${{ github.event.inputs.show_buildmsg == 'Yes' }}
id: part_1b
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
body: |
This item has been resolved.
Current RefindPlus Release: ${{ steps.part_1a.outputs.tag }}.
Refer to BUILDING.md](https://github.com/dakanji/RefindPlus/blob/GOPFix/BUILDING.md) to access functionality before next release.
- if: ${{ github.event.inputs.show_buildmsg == 'No' }}
id: part_2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
body: |
This item has been resolved.
issue_resolve_other3:
name: Issue - Resolve - Other3
needs: [issue_resolve_other2]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
labels: 'Resolved'

issue_resolve_other4:
name: Issue - Resolve - Other4
needs: [issue_resolve_other3]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
labels: 'Triage,Queries,Parked,Prorogued,Unclear,Uncertain,Unresolved'

issue_resolve_other5:
name: Issue - Resolve - Other5
needs: [issue_resolve_other4]
runs-on: ubuntu-20.04

if: ${{ success() || failure() }}
steps:
- uses: actions-cool/issues-helper@v3
with:
close-reason: 'completed'
actions: 'close-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.item_id }}
Loading

0 comments on commit bcfcdcf

Please sign in to comment.