Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @smashedr
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi: cssnr
16 changes: 9 additions & 7 deletions .github/ISSUE_TEMPLATE/0-bug.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "⚠️ Report an Issue"
description: "Something Not Working Right? Please let us know..."
description: "Please let us know if something is not working right..."
labels: ["bug"]
assignees:
- smashedr
Expand All @@ -10,17 +10,17 @@ body:
validations:
required: false
attributes:
label: Repo Link
description: Please provide a link to the repository or workflow you are having issues with if possible.
label: URL
description: Please provide a link to the repository or workflow in question if possible.

- type: textarea
id: description
validations:
required: true
attributes:
label: Details
description: Please describe the issue you are experiencing and how to reproduce.
placeholder: Provide as many details as you can...
label: Issue Description
description: Please describe the issue you are experiencing and how it can be reproduced.
placeholder: Provide as many details as possible...

- type: textarea
id: logs
Expand All @@ -29,9 +29,11 @@ body:
attributes:
label: Log Output
description: Paste any relevant logs or output in this box.
placeholder: This text is automatically wrapped in a code block.
render: shell

- type: markdown
attributes:
value: |
All issues/bugs that we can verify will be fixed. Thank you for taking the time to make this report!
Any issues or bugs that can be verified will be fixed!
Thank you very much for taking the time to make this report...
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
blank_issues_enabled: true
contact_links:
- name: "💡 Request a Feature"
about: Request a New Feature or Enhancement in the Discussions.
about: Request a new feature or enhancement in a discussions.
url: https://github.com/cssnr/draft-release-action/discussions/new?category=feature-requests

- name: "❔ Ask a Question"
about: Ask a General Question or start a Discussions.
about: Ask a general question or start a discussions.
url: https://github.com/cssnr/draft-release-action/discussions/new?category=q-a

- name: "💬 Join Discord"
about: Chat with us about Issues, Features, Questions and More.
about: Chat with us about general questions, issues or suggestions.
url: https://discord.gg/wXy6m2X8wY

- name: "📝 Submit Feedback"
about: Send General Feedback.
about: Send general feedback through the website.
url: https://cssnr.github.io/feedback
47 changes: 47 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "PR Labeler"

on:
pull_request_target:

permissions:
pull-requests: write

jobs:
labeler:
name: "Labeler"
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: "Checkout Configs"
uses: actions/checkout@v5
with:
repository: cssnr/configs
ref: master
path: .configs
sparse-checkout-cone-mode: false
sparse-checkout: |
labels/**

- name: "Debug"
continue-on-error: true
run: |
echo "::group::labels.yaml"
cat .configs/labels/labels.yaml
echo "::endgroup::"

echo "::group::labeler.yaml"
cat .configs/labels/labeler.yaml
echo "::endgroup::"

- name: "Label Creator"
continue-on-error: true
uses: cssnr/label-creator-action@master
with:
file: .configs/labels/labels.yaml

- name: "Labeler"
uses: actions/labeler@v6
with:
sync-labels: true
configuration-path: .configs/labels/labeler.yaml
88 changes: 8 additions & 80 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,17 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: "Debug event.json"
continue-on-error: true
run: |
cat "${GITHUB_EVENT_PATH}"

- name: "Setup Node 22"
uses: actions/setup-node@v4
- name: "Setup Node 24"
uses: actions/setup-node@v5
with:
node-version: 22
#cache: npm
node-version: 24

- name: "Install"
id: install
run: |
npm install
npm ci

- name: "ESLint"
id: eslint
Expand Down Expand Up @@ -77,73 +72,6 @@ jobs:
uses: cssnr/check-build-action@master

- name: "ESLint Annotate"
if: ${{ failure() && steps.eslint.outcome != 'success' }}
if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
continue-on-error: true
uses: ataylorme/eslint-annotate-action@v3

#- name: "Vale"
# if: ${{ !cancelled() }}
# uses: errata-ai/vale-action@v2.1.1

#- name: "SonarQube"
# uses: SonarSource/sonarqube-scan-action@v4
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

#build:
# name: "Build"
# runs-on: ubuntu-latest
# timeout-minutes: 5
# permissions:
# pull-requests: write
#
# steps:
# - name: "Checkout"
# uses: actions/checkout@v4
#
# - name: "Debug event.json"
# continue-on-error: true
# run: |
# cat "${GITHUB_EVENT_PATH}"
#
# - name: "Debug"
# continue-on-error: true
# run: |
# echo "github.actor: ${{ github.actor }}"
# echo "github.triggering_actor: ${{ github.triggering_actor }}"
# echo "github.event.pull_request.head.user.login: ${{ github.event.pull_request.head.user.login }}"
#
# - name: "Setup Node 22"
# uses: actions/setup-node@v4
# with:
# node-version: 22
# #cache: npm
#
# - name: "Install"
# run: |
# npm install
#
# - name: "Build"
# run: |
# npm run build
#
# - name: "Verify"
# run: |
# git status --porcelain dist/
# if [ ! -d "dist" ];then
# echo "Missing dist directory; run 'npm run build' then add, commit and push the 'dist' folder."
# exit 1
# fi
# if [ -n "$(git status --porcelain dist)" ];then
# echo "Build was not run; run 'npm run build' then add, commit and push the 'dist' folder."
# exit 1
# fi
#
# - name: "Verify Failed"
# if: ${{ failure() && github.event_name == 'pull_request' }}
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# echo "Adding comment to PR number: ${{ github.event.number }}"
# comment='@${{ github.triggering_actor }} - run `npm run build` then add, commit and push the `dist` folder.'
# echo "${comment}"
# gh pr comment ${{ github.event.number }} --body "${comment}"
3 changes: 1 addition & 2 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

Expand All @@ -27,6 +27,5 @@ jobs:
with:
host: https://codeberg.org
create: true
owner: "shaner"
username: "shaner"
password: ${{ secrets.CODEBERG_TOKEN }}
41 changes: 3 additions & 38 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,8 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: "Get Commit Action"
id: commit
- name: "NPM Outdated Check"
continue-on-error: true
uses: cssnr/get-commit-action@master
with:
sha: ${{ github.event.pull_request.head.sha }}
selector: "commit.message"

- name: "Debug"
env:
COMMIT_MESSAGE: ${{ steps.commit.outputs.result }}
run: |
echo "COMMIT_MESSAGE: ${COMMIT_MESSAGE}"
echo "${COMMIT_MESSAGE}" | od -c

#- name: "NPM Outdated Check"
# continue-on-error: true
# uses: cssnr/npm-outdated-action@master

- name: "ChatGPT CodeReview"
if: ${{ contains(steps.commit.outputs.result, '#gpt') }}
continue-on-error: true
uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGUAGE: English
OPENAI_API_ENDPOINT: https://api.openai.com/v1
MODEL: gpt-4o-mini
PROMPT: |
Check the following code diff for errors and improvements.
Please focus on simple quality responses.
top_p: 1
temperature: 1
max_tokens: 10000
MAX_PATCH_LENGTH: 10000
IGNORE_PATTERNS: "/node_modules,/dist/"
#INCLUDE_PATTERNS: "**.yaml"
uses: cssnr/npm-outdated-action@master
18 changes: 9 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on:
workflow_dispatch:
#schedule:
# - cron: "18 18 * * 1,3,5"
push:
branches: ["**"]
paths:
- "dist/**"
- "src/**"
- "package*.json"
- "requirements*.txt"
- ".github/workflows/test.yaml"
- "action.yml"
#push:
# branches: ["**"]
# paths:
# - "dist/**"
# - "src/**"
# - "package*.json"
# - "requirements*.txt"
# - ".github/workflows/test.yaml"
# - "action.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"printWidth": 90,
"overrides": [
{
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
Expand All @@ -10,7 +11,7 @@
}
},
{
"files": ["**/*.js", "**/*.css", "**/*.scss"],
"files": ["**/*.js", "**/*.mjs", "**/*.css", "**/*.scss"],
"options": {
"tabWidth": 4
}
Expand Down
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
[![GitHub Tag Major](https://img.shields.io/github/v/tag/cssnr/draft-release-action?sort=semver&filter=!v*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/draft-release-action/tags)
[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/draft-release-action?sort=semver&filter=!v*.*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/draft-release-action/tags)
[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/draft-release-action?sort=semver&filter=!v*.*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/draft-release-action/releases)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/draft-release-action?logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/draft-release-action/releases/latest)
[![GitHub Dist Size](https://img.shields.io/github/size/cssnr/draft-release-action/dist%2Findex.js?label=dist%20size)](https://github.com/cssnr/draft-release-action/blob/master/src/index.js)
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/draft-release-action/release.yaml?logo=github&label=release)](https://github.com/cssnr/draft-release-action/actions/workflows/release.yaml)
[![Workflow Test](https://img.shields.io/github/actions/workflow/status/cssnr/draft-release-action/test.yaml?logo=github&label=test)](https://github.com/cssnr/draft-release-action/actions/workflows/test.yaml)
[![Workflow lint](https://img.shields.io/github/actions/workflow/status/cssnr/draft-release-action/lint.yaml?logo=github&label=lint)](https://github.com/cssnr/draft-release-action/actions/workflows/lint.yaml)
[![GitHub Dist Size](https://img.shields.io/github/size/cssnr/draft-release-action/dist%2Findex.js?logo=bookstack&logoColor=white&label=dist%20size)](https://github.com/cssnr/draft-release-action/blob/master/src/index.js)
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/draft-release-action/release.yaml?logo=cachet&label=release)](https://github.com/cssnr/draft-release-action/actions/workflows/release.yaml)
[![Workflow Test](https://img.shields.io/github/actions/workflow/status/cssnr/draft-release-action/test.yaml?logo=cachet&label=test)](https://github.com/cssnr/draft-release-action/actions/workflows/test.yaml)
[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/draft-release-action/lint.yaml?logo=cachet&label=lint)](https://github.com/cssnr/draft-release-action/actions/workflows/lint.yaml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_draft-release-action&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cssnr_draft-release-action)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/draft-release-action?logo=github&label=updated)](https://github.com/cssnr/draft-release-action/graphs/commit-activity)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/draft-release-action?logo=github&label=updated)](https://github.com/cssnr/draft-release-action/pulse)
[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/draft-release-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated)](https://codeberg.org/cssnr/draft-release-action)
[![GitHub Contributors](https://img.shields.io/github/contributors/cssnr/draft-release-action?logo=github)](https://github.com/cssnr/draft-release-action/graphs/contributors)
[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/draft-release-action?logo=bookstack&logoColor=white&label=repo%20size)](https://github.com/cssnr/draft-release-action?tab=readme-ov-file#readme)
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/draft-release-action?logo=htmx)](https://github.com/cssnr/draft-release-action)
[![GitHub repo size](https://img.shields.io/github/repo-size/cssnr/draft-release-action?logo=bookstack&logoColor=white&label=repo%20size)](https://github.com/cssnr/draft-release-action)
[![GitHub Discussions](https://img.shields.io/github/discussions/cssnr/draft-release-action)](https://github.com/cssnr/draft-release-action/discussions)
[![GitHub Forks](https://img.shields.io/github/forks/cssnr/draft-release-action?style=flat&logo=github)](https://github.com/cssnr/draft-release-action/forks)
[![GitHub Discussions](https://img.shields.io/github/discussions/cssnr/draft-release-action?logo=github)](https://github.com/cssnr/draft-release-action/discussions)
[![GitHub Repo Stars](https://img.shields.io/github/stars/cssnr/draft-release-action?style=flat&logo=github)](https://github.com/cssnr/draft-release-action/stargazers)
[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat&logo=github&label=org%20stars)](https://cssnr.github.io/)
[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da)](https://discord.gg/wXy6m2X8wY)
[![Ko-fi](https://img.shields.io/badge/Ko--fi-72a5f2?logo=kofi&label=support)](https://ko-fi.com/cssnr)

# Draft Release Action

Expand Down Expand Up @@ -167,9 +169,12 @@ For more information, see the CSSNR [SUPPORT.md](https://github.com/cssnr/.githu

# Contributing

Currently, the best way to contribute to this project is to star this project on GitHub.
Please consider making a donation to support the development of this project
and [additional](https://cssnr.com/) open source projects.

For more information, see the CSSNR [CONTRIBUTING.md](https://github.com/cssnr/.github/blob/master/.github/CONTRIBUTING.md#contributing).
[![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cssnr)

If you would like to submit a PR, please review the [CONTRIBUTING.md](#contributing-ov-file).

Additionally, you can support other GitHub Actions I have published:

Expand All @@ -185,5 +190,8 @@ Additionally, you can support other GitHub Actions I have published:
- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)
- [Package Changelog Action](https://github.com/cssnr/package-changelog-action?tab=readme-ov-file#readme)
- [NPM Outdated Check Action](https://github.com/cssnr/npm-outdated-action?tab=readme-ov-file#readme)
- [Label Creator Action](https://github.com/cssnr/label-creator-action?tab=readme-ov-file#readme)
- [Algolia Crawler Action](https://github.com/cssnr/algolia-crawler-action?tab=readme-ov-file#readme)
- [Upload Release Action](https://github.com/cssnr/upload-release-action?tab=readme-ov-file#readme)

For a full list of current projects to support visit: [https://cssnr.github.io/](https://cssnr.github.io/)
For a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)
Loading