Skip to content

Commit c6115f2

Browse files
authored
Merge pull request #10 from kyagi/refactoring-20220203-1
Use class and eliminate repeating code
2 parents b43bfd5 + 674391f commit c6115f2

File tree

6 files changed

+425
-351
lines changed

6 files changed

+425
-351
lines changed

.github/workflows/labeling.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
- uses: actions/checkout@v2
1616
- run: npm install
1717
- run: npm cache clean -f
18-
- id: aaa
18+
- id: shamshir-run
1919
uses: kyagi/shamshir@main
2020
with:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
owner: ${{ github.repository_owner }}
2323
repo: ${{ github.repository }}
2424
label: 'releasable'
2525
quorum: '1'
26-
- run: echo "${{ steps.aaa.outputs.log }}"
26+
- run: echo "${{ steps.shamshir-run.outputs.log }}"
2727
- run: echo "🌙 Shamshir's status is ${{ job.status }}."

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Shamshir'
2-
description: 'Attach label to pull requests when acquiring the quorum of approval'
2+
description: 'Attach a label to pull requests based on the number of approvals'
33
author: 'Kazuo Yagi'
44

55
inputs:
@@ -21,7 +21,7 @@ inputs:
2121

2222
outputs:
2323
log:
24-
description: 'Log message for Github Actions page'
24+
description: 'shamshir-run log message for github actions'
2525

2626
runs:
2727
using: 'node16'

0 commit comments

Comments
 (0)