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
31 changes: 18 additions & 13 deletions .github/ISSUE_TEMPLATE/0-bug.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: "⚠️ Report an Issue"
description: "Please let us know if something is not working right..."
description: "Please let us know if something is not right..."
type: bug
labels: ["bug"]
assignees:
- smashedr

body:
- type: input
id: website
validations:
required: false
- type: markdown
attributes:
label: URL
description: Please provide a link to the repository or workflow in question if possible.
value: |
All issues will be responded too.

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

- type: textarea
id: logs
Expand All @@ -29,11 +27,18 @@ 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.
placeholder: Output is automatically wrapped in a code block.
render: shell

- type: input
id: website
validations:
required: false
attributes:
label: URL
description: Please provide a link to the repository or workflow in question if possible.

- type: markdown
attributes:
value: |
Any issues or bugs that can be verified will be fixed!
Thank you very much for taking the time to make this report...
Thank you for taking the time to make this report!
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/1-feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "🚀 Request a Feature"
description: "Request new features or enhancements"
type: feature
labels: ["enhancement"]
assignees:
- smashedr

body:
- type: markdown
attributes:
value: |
All requests will be responded too.

- type: textarea
id: description
validations:
required: true
attributes:
label: Details
description: Please describe the feature or enhancement you are requesting and what it should do.
placeholder: Provide as many details as you can...

- type: markdown
attributes:
value: |
Thank you for taking the time to make this report!
18 changes: 7 additions & 11 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
blank_issues_enabled: true
contact_links:
- name: "💡 Request a Feature"
about: Request a new feature or enhancement in a discussions.
url: https://github.com/cssnr/web-request-action/discussions/new?category=feature-requests

- name: "❔ Ask a Question"
about: Ask a general question or start a discussions.
url: https://github.com/cssnr/web-request-action/discussions/new?category=q-a
- name: "❔ Start a Discussion"
about: Ask a general question or start a discussion
url: https://github.com/cssnr/web-request-action/discussions

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

- name: "📝 Submit Feedback"
about: Send general feedback through the website.
url: https://cssnr.github.io/feedback
- name: "🌐 Visit Actions Site"
about: Browse more Actions
url: https://actions.cssnr.com/
13 changes: 13 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- '"inputs" section is alias node but mapping node is expected'
- '"paths" section must be sequence node but got alias node with "" tag'
- '"paths-ignore" section must be sequence node but got alias node with "" tag'
.github/workflows/issue.yaml:
ignore:
- 'missing input "app-id" which is required by action "actions/create-github-app-token@v3"'
- 'input "client-id" is not defined in action "actions/create-github-app-token@v3"'
.github/workflows/test.yaml:
ignore:
- 'property ".+" is not defined in object type'
50 changes: 0 additions & 50 deletions .github/workflows/check-build.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/draft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Draft Release"

on:
workflow_dispatch:
push:
branches: [main, master]

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

jobs:
draft:
name: "Draft Release"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
contents: write

steps:
- name: "Checkout"
uses: actions/checkout@v6

- name: "Draft Release Action"
id: draft
uses: cssnr/draft-release-action@master
with:
semver: patch
prerelease: false
prefix: v

- name: "Process Release Draft URL"
run: |
echo "url: ${{ steps.draft.outputs.url }}"
45 changes: 45 additions & 0 deletions .github/workflows/issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Issue"

on:
issues:
types: [opened]

jobs:
issue:
name: "Issue"
if: ${{ !github.event.issue.type || github.event.issue.type.name == 'Bug' }}
runs-on: ubuntu-latest
timeout-minutes: 15

permissions:
contents: write
issues: write

steps:
- name: "Checkout"
uses: actions/checkout@v6

- name: "Create App Token"
id: app
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: "AI Issue"
uses: cssnr/ai-issue-action@v1
env:
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
with:
token: ${{ steps.app.outputs.token }}
model: gemini-2.5-flash
tail: |
_Response generated by the [AI Issue Action](https://github.com/cssnr/ai-issue-action)._
instructions: |
You are a helpful assistant responding to a GitHub Issue created by user @${{ github.actor }}
in the repository ${{ github.server_url }}/${{ github.repository }}
Provide initial triage and troubleshooting steps, then gather any additional information needed to proceed.
Respond using your general knowledge of GitHub Actions and the following knowledge files:
path: |
action.yml
README.md
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

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

Expand Down
43 changes: 13 additions & 30 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "Lint"

on:
workflow_dispatch:
pull_request:
push:
branches: [master]
branches: [main, master]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -26,59 +26,42 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v6

- name: "Setup Node 24"
- name: "Setup Node"
uses: actions/setup-node@v6
with:
node-version: 24

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

- name: "ESLint"
- name: "eslint"
id: eslint
if: ${{ !cancelled() }}
run: |
npm run lint

- name: "Prettier"
- name: "prettier"
if: ${{ !cancelled() }}
run: |
npm run prettier:check

- name: "Yamllint"
- name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
CONFIG: .github/yamllint.yaml
run: |
echo "::group::List Files"
yamllint -d '${{ env.CONFIG }}' --list-files .
yamllint -c "${{ env.CONFIG }}" --list-files .
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .
yamllint -c "${{ env.CONFIG }}" .

- name: "Actionlint"
- name: "actionlint"
if: ${{ !cancelled() }}
run: |
echo "::group::Download"
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
echo "loc: ${loc}"
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
echo "tag: ${tag}"
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
echo "url: ${url}"
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
file "${RUNNER_TEMP}/actionlint"
"${RUNNER_TEMP}/actionlint" --version
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
uses: cssnr/actionlint-action@v1

- name: "Verify action.yml"
- name: "action.yml"
if: ${{ !cancelled() }}
run: |
yq -e '.runs.main | test("^dist/")' action.yml

#- name: "ESLint Annotate"
# if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
# continue-on-error: true
# uses: ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # 3.0.0
4 changes: 2 additions & 2 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:

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

- name: "Actions Up"
continue-on-error: true
uses: cssnr/actions-up-action@latest
uses: cssnr/actions-up-action@v1
with:
exclude: "cssnr/.*,actions/.*"
Loading
Loading