Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fuxingloh/multi-labeler
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3bb20ad11aaf20bec22f702190d8ed1a4da68121
Choose a base ref
..
head repository: fuxingloh/multi-labeler
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5cac98b72738eaf4954681dff8a7a4001d69e85c
Choose a head ref
Showing with 10,098 additions and 5,287 deletions.
  1. 0 { → .github}/CODE_OF_CONDUCT.md
  2. +2 −8 .github/PULL_REQUEST_TEMPLATE.md
  3. +89 −8 .github/workflows/ci.yml
  4. +1 −0 .nvmrc
  5. +1 −1 action.yml
  6. +10,003 −5,260 package-lock.json
  7. +2 −10 package.json
File renamed without changes.
10 changes: 2 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<!-- Thanks for sending a pull request! -->

#### What this PR does / why we need it:

#### Which issue(s) does this PR fixes?:

<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
<!-- Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>` -->

Fixes #

#### Additional comments?:
97 changes: 89 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,103 @@
name: CI

on:
pull_request:
push:
branches:
- main
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
packages: read

jobs:
build:
name: Build
package:
name: Package
runs-on: ubuntu-latest
environment: fuxingloh/multi-labeler workflow
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'

- run: npm install
- run: npm run ci
- run: npm run build
- run: npm run package

- id: app
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.WORKFLOW_APP_ID }}
private_key: ${{ secrets.WORKFLOW_PRIVATE_KEY }}

- uses: EndBug/add-and-commit@61a88be553afe4206585b31aa72387c64295d08b # v9.1.1
with:
add: 'dist'
message: 'npm run ncc, dist updated'
message: 'chore: npm run package'
github_token: ${{ steps.app.outputs.token }}

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'

- run: npm install
- run: npm run build

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'

- run: npm install

- run: npx jest --ci --coverage

- run: npx codecov
continue-on-error: true

lint_prettier:
name: Lint [prettier]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'

- run: npm install

- run: npx prettier --check .

lint_eslint:
name: Lint [eslint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version-file: '.nvmrc'

- run: npm install

- run: npx eslint src/**/*.ts
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -20,5 +20,5 @@ inputs:
default: ${{ github.token }}

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
Loading