Skip to content

Commit

Permalink
initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Dec 18, 2023
1 parent c1d448e commit 608f66e
Show file tree
Hide file tree
Showing 40 changed files with 21,454 additions and 12,953 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
Expand Down Expand Up @@ -57,5 +56,3 @@ jobs:
with:
name: dist
path: dist/

...
2 changes: 0 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

...
2 changes: 0 additions & 2 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ jobs:
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
token: ${{ secrets.GITHUB_TOKEN }}

...
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
Expand All @@ -37,5 +36,3 @@ jobs:

- name: ESLint
run: yarn run lint

...
2 changes: 0 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ jobs:
with:
publish_latest_tag: false
token: ${{ secrets.GITHUB_TOKEN }}

...
2 changes: 0 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ jobs:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

...
16 changes: 4 additions & 12 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

name: Unit tests
name: Tests

on:
push:
Expand All @@ -14,20 +14,15 @@ permissions:

jobs:
test:
name: Unit Tests - Node.js
name: Node.js
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 18.x, 20.x ]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: yarn
cache-dependency-path: yarn.lock

Expand All @@ -44,7 +39,4 @@ jobs:
run: yarn test

- name: Codecov
if: ${{ matrix.node-version == '20.x' }}
uses: codecov/codecov-action@v3

...
38 changes: 18 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- markdownlint-disable MD033 MD041 -->
<!-- markdownlint-disable MD033 MD041 MD045 -->
<p align="center">
<img src="https://github.com/redhat-plumbers-in-action/team/blob/70f67465cc46e02febb16aaa1cace2ceb82e6e5c/members/black-plumber.png" width="100" />
<h1 align="center">TypeScript Action</h1>
<h1 align="center">Issue Commentator</h1>
</p>

[![GitHub Marketplace][market-status]][market] [![Lint Code Base][linter-status]][linter] [![Unit Tests][test-status]][test] [![CodeQL][codeql-status]][codeql] [![Check dist/][check-dist-status]][check-dist]
Expand All @@ -10,39 +10,37 @@

<!-- Status links -->

[market]: https://github.com/marketplace/actions/typescript-action
[market-status]: https://img.shields.io/badge/Marketplace-Typescript%20Action-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
[market]: https://github.com/marketplace/actions/issue-commentator
[market-status]: https://img.shields.io/badge/Marketplace-Issue%20Commentator-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=

[linter]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/lint.yml
[linter-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/lint.yml/badge.svg
[linter]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/lint.yml
[linter-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/lint.yml/badge.svg

[test]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/unit-tests.yml
[test-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/unit-tests.yml/badge.svg
[test]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/unit-tests.yml
[test-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/unit-tests.yml/badge.svg

[codeql]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/codeql-analysis.yml
[codeql-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/codeql-analysis.yml/badge.svg
[codeql]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/codeql-analysis.yml
[codeql-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/codeql-analysis.yml/badge.svg

[check-dist]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/check-dist.yml
[check-dist-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/check-dist.yml/badge.svg
[check-dist]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/check-dist.yml
[check-dist-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/check-dist.yml/badge.svg

[codecov]: https://codecov.io/gh/redhat-plumbers-in-action/typescript-action
[codecov-status]: https://codecov.io/gh/redhat-plumbers-in-action/typescript-action/branch/main/graph/badge.svg
[codecov]: https://codecov.io/gh/redhat-plumbers-in-action/issue-commentator
[codecov-status]: https://codecov.io/gh/redhat-plumbers-in-action/issue-commentator/branch/main/graph/badge.svg

<!-- -->

> ...
## How does it work

> ...
## Features

> * ...
## Usage

> ...
```yml

```

### Real-life examples

Expand All @@ -55,7 +53,7 @@ Action currently accepts the following options:
```yml
# ...

- uses: redhat-plumbers-in-action/typescript-action@v1
- uses: redhat-plumbers-in-action/issue-commentator@v1
with:
milliseconds: <number>

Expand Down
18 changes: 12 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
---

name: Your name here
description: Provide a description here
name: Issue Commentator
description: GitHub Action that creates and updates status comments on issues and pull requests

branding:
color: blue
icon: activity
icon: message-square

inputs:
milliseconds:
issue:
required: true
description: input description here
default: default value if applicable
description: Number of issue where to comment
message:
required: true
description: Content of the comment

token:
required: true
description: GitHub TOKEN or PAT

runs:
using: node20
Expand Down
3 changes: 3 additions & 0 deletions dist/action.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 608f66e

Please sign in to comment.