Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get some awareness #4

Merged
merged 15 commits into from
May 10, 2024
18 changes: 6 additions & 12 deletions .github/workflows/local/local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ jobs:
- name: Checkout action
uses: actions/checkout@v4
- name: Build action
run: npm install && npm run build
- name: Send a message into channel
id: slack
run: npm install
- name: Healthscore the healthscore
id: slack-health-score
uses: ./.
with:
payload: |
{
"repository": "${{ github.repository }}",
"pull_request_username": "${{ github.event.pull_request.user.login }}",
"pull_request_title": ${{ toJSON(github.event.pull_request.title) }},
"pull_request_url": "${{ github.event.pull_request.html_url }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
github_token: garbage
extension: js
include: src
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: npm ci
- run: npm run build
- run: npm test
- run: npm run test:gen-cov
- name: Upload coverage to CodeCov
Expand All @@ -26,5 +25,6 @@ jobs:
- name: Yo dawg I heard you like healthscores so I healthscored your healthscore so you can healthscore while you healthscore
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
extension: js
ignore: node_modules
include: src
12 changes: 9 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ inputs:
extension:
description: 'File extension of files to filter on to search for problematic comments. E.g. "js" or "go"'
required: true
ignore:
description: 'Ignore files that include this string in their path. E.g. "node_modules"'
github_token:
description: 'A GitHub access token with permissions to write commit statuses. Recommended to set this to `secrets.GITHUB_TOKEN`.'
required: true
include:
description: 'Only parse the specified files and directories (recursively). Ideally supports glob syntax? Defaults to contents of `.`. E.g. "src"'
required: false
exclude:
description: 'Ignore the specified files and directories. Essentially a direct argument into `find` `-not -path "{arg}"`. Defaults to contents of `.gitignore`. E.g. "node_modules"'
required: false
# outputs:
runs:
using: 'node20'
main: 'dist/index.js'
main: 'src/index.js'
Loading
Loading