Commit Graph

40 Commits

Author SHA1 Message Date
Paul Donald f964bbed0f github: relax commit subject restrictions
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-05-27 14:39:37 +03:00
Joshua Criss 5552cf2701 luci: minor edits to CONTRIBUTING.md & PR template
For PR template, minor fix to 'please read'
section, as symbol spacing was different
on GitHub website than on GitHub Desktop.
Added HTML comment with example on how
to complete the checklist using [x]. Added
examples to the 'tested on' section.
Added abbreviation explanation for PR to
better understand terminology, similar to
using S.O.B. For CONTRIBUTING.md,
bumped up release branch example, and
minor capitalisation fixes for PR.

Signed-off-by: Joshua Criss <owlsy@outlook.com.au>
2026-04-17 01:31:17 +02:00
Joshua Criss 1bf35dff64 luci: improvements to pull_request_template
As a new person to contributing on GitHub,
I noticed the Pull Request template missing
some important information that I would not
have known until I tried my first Pull Request,
such as the character limits and email
requirements. I've seen others also get
tripped up by this too, as they also were not
aware until afterwards. So, I have tried to
include the common ones into the template.

I have also prepared a layout that would
ensure a more uniform experience when
looking through Pull Requests, with expected
headings and the ability to provide the
instruction of what to put under each heading.
Minor grammar and punctuation edits as well.

If the layout is preferred as a seperate Pull
Request, let me know and I will do so.

Will also update the CONTRIBUTING.md
file to achieve the same goal as well.

Signed-off-by: Joshua Criss <owlsy@outlook.com.au>
2026-04-11 09:32:37 +03:00
George Sapkin 405d4af507 formal: switch formal to an external action
Switch to external formality checks that provide more configuration
options.

Increase the allowed subject lengths to 60/80.

Fixes: https://github.com/openwrt/actions-shared-workflows/issues/91
Link: https://github.com/GeorgeSapkin/hyperstickler
Signed-off-by: George Sapkin <george@sapk.in>
2026-03-27 20:47:47 +01:00
Paul Donald 74f5bbdc11 github: re-work github pages deploy
follow-up to 90836a0fac

until a proper 'github-pages' environment is configured,
go back to the older working method.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-02-16 03:22:54 +01:00
Paul Donald 4900913d2a github: add linting for JS and MD
bump checkout to 6

Included is a selection of rules which flag common problems.

Lint
-JS ( ESlint )
-JSON ( https://github.com/eslint/json )
-JSDoc (comment matter) in the luci-base module
-Markdown ( https://github.com/eslint/markdown )

For JSON, mandate standard JSON (not JSONC or JSON5) format,
**/*.json checks across the whole repo.

For JS, mandate sourceType: 'script', otherwise the linter
errors out about return methods in modules which masks other
problems. There are a number of structural design changes
needed to bring this repo into compliance with standards.
Each JS file is an individual script, despite their module
like structure, so functions and classes offloaded to
'common' files (individual scripts and not modules) are
invisible to linters unless we define them under the 'globals'
key. Custom rules and parsers are also possible.

For JSDoc, mandate some common checks to ensure the repo
will generate consistent documentation which links and displays
well.

For MD, check also JS syntax inside MD, as well as MD itself.
JS checks inside MD are not strict.

Included also eslint-formatter-gha (-f gha) which comments
on PRs when problems are detected in code additions. Actions
show green when no errors are reported (warnings are a pass)
but the gha will comment about warnings.

Flag `--diff-filter=ACM` shows only additions, and not
deletions.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-02-16 01:42:55 +01:00
Paul Donald 90836a0fac github: re-work github pages deploy
change from peaceiris/actions-gh-pages to github action.

bump checkout action.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-02-15 19:51:08 +01:00
Paul Donald 0a0877bc9d github: bump codeql
v3 triggers warning:
CodeQL Action v3 will be deprecated in December 2026.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2026-02-15 19:51:08 +01:00
George Sapkin a0531c7822 formal: post formality check comments to PRs
Enable posting formality check comments and warn if 'Allow edits and
access to secrets by maintainers' is not checked.

Signed-off-by: George Sapkin <george@sapk.in>
2025-12-15 21:40:40 +01:00
George Sapkin 6b45572ea4 formal: fix permissions
Enable Luci-specific Weblate exclusions.

Signed-off-by: George Sapkin <george@sapk.in>
2025-12-15 14:11:11 +01:00
George Sapkin 1e12651ab4 ci: switch to common formalities workflow
Switch to using the common formalities workflow defined in the
actions-shared-workflows that include luci-specific exceptions.

Fixes: https://github.com/openwrt/luci/issues/7821
Signed-off-by: George Sapkin <george@sapk.in>
2025-11-07 14:13:06 +01:00
Paul Donald 4617b9fd2e github: update workflow actions
checkout to v5
setup-node to v5
peaceiris/actions-gh-pages to v4

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-10-12 18:31:10 +02:00
Paul Donald 4fcd05f8c0 github: update TOH links
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-08-01 23:13:01 +02:00
Yanase Yuki 98e71acd06 ci: lint JSON files using ESLint
Add GitHub Actions CI which lints json files
using official ESLint json plugin.

Signed-off-by: Yanase Yuki <dev@zpc.st>
2025-06-08 20:41:25 +02:00
Paul Donald f001a35ad1 github: change bug reports to search closed issues too
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-01-02 16:41:22 +00:00
Paul Donald 41f1c3c439 github: change bug reports to recommend ubus call system board
This reveals also the device model and cuts down on seemingly repeated
information.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2025-01-02 16:38:28 +00:00
Daniel Nilsson 22518fa15f ci: account for APK as default on main branch
With APK defaulted on openwrt:main, we should include packages with the
.apk file extension as artifacts. Also default the logging to V=s as
otherwise the APK version check won't be printed to stdout.

Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
2024-11-17 09:45:19 +02:00
Daniel Nilsson 69d379af9a ci: upgrade openwrt/gh-action-sdk workflow to v7
With the change of the Docker container not including pre-built
binaries [1], the previous version of the workflow fails as it still
expects those to be present in the upstream container while the new
versions runs a file called setup.sh if present to configure the
container.

By upgrading openwrt/gh-action-sdk workflow to v7, we make sure that
setup.sh is run and configures the container [2].

[1] https://github.com/openwrt/docker/commit/9b55784b18f8d2c684aac4dd21a224320bb9b9ce
[2] https://github.com/openwrt/gh-action-sdk/commit/0c00b28c11bed5c7697e807d4cb8ef176ca688ef

Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
2024-11-17 09:45:19 +02:00
Paul Donald 0df7955d37 github: update issue_template
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-10-26 01:29:11 +02:00
Paul Donald e557e17829 house-keeping: workflow improvements
pass tests when Weblate PR only adds an i18n
2024-02-08 14:30:53 +01:00
Paul Donald 198a2dd20e house-keeping: Enable Code Query Language (CodeQL) scanning
Code quality scanning (for JavaScript, JSON, HTML) for pushes and PRs
to master.

A repo scan takes roughly 4 minutes.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-01-31 23:38:41 +01:00
Paul Donald d88d40c24d house-keeping: Enable jsdoc workflow to run in forks also. 2024-01-31 23:38:41 +01:00
Paul Donald 3e0f119270 house-keeping: migrate workflows from GitHub deprecated node16 -> node20
GitHub currently warns with:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-01-31 03:59:40 +01:00
Paul Donald 07e025664b house-keeping: migrate workflows from GitHub deprecated node16 -> node20
GitHub currently warns with:
Annotations
1 warning
build

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-01-31 03:57:34 +01:00
Paul Donald 89da922c0a house-keeping: jsdoc migrate from GitHub deprecated node16 -> node20
GitHub currently warns with:
Annotations
1 warning
build

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-01-30 17:09:09 +01:00
Paul Donald a1e8af2a95 house-keeping: jsdoc reduce GitHub workload: run only when docs change
this will prevent a large amount of 

deploy: <sha>

to openwrt/gh-pages branches when nothing there has changed

Note: it may not be a bad idea to have docs compile at every commit,
since docs do not change *that* often, and some action or process that
breaks is likely noticed sooner if docs that compile continuously
trigger any broken processes or workflows.
2024-01-30 17:09:09 +01:00
Paul Donald 09cf4a17e0 house-keeping: PR workflow check improvements 2024-01-30 16:04:46 +01:00
Paul Donald 048c39abdf house-keeping: PR template with submission checklist
also check PR source branch (head_ref) is not main/master
2024-01-30 01:27:30 +01:00
Paul Donald 4dc7a4e19e house-keeping: workflow fixes 2024-01-30 00:53:23 +01:00
one-d-wide b421c38290 ci: no longer require real name
This goes in accordance with the Linux Kernel:

> using a known identity (sorry, no anonymous contributions.)

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=HEAD#n442

Signed-off-by: one-d-wide <one-d-wide@protonmail.com>
2024-01-12 00:34:54 +01:00
Tianling Shen 568782ca97 CI: update remaining outdated dependencies
Ref: 63a5e3dcfc ("CI: update dependencies")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-01 04:31:08 +08:00
Tianling Shen 63a5e3dcfc CI: update dependencies
The old version which uses Node.js v12 will be disabled
in the end of this year.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-03-29 01:27:32 +08:00
Florian Eckert f92b42f814 Merge pull request #5567 from TDT-AG/pr/20211202-github-issue-templates
[RFC] github: add issue templates file
2022-01-13 10:34:10 +01:00
Florian Eckert 05286d2c05 github: add issue templates file
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-01-10 15:20:22 +01:00
Giovanni Giacobbi b18c42b5a8 CI: only run GitHub pages on the official repository
Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
2021-11-16 09:37:12 +00:00
Paul Spooren dc7144ffed CI: add formal tests
Migrate the same formal tests used in packages.git

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-09 22:52:02 -10:00
Paul Spooren 530144791e CI: test build LuCI packages
While all LuCI packages should always build fine, this allows others to
directly install those packages within test setups.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-09 22:50:56 -10:00
Paul Spooren 276ad0ca63 CI: enable jekyll for docs for overview README
the overview README contains links for the client and server side API,
it's a markdown file and therefore requires jekyll to run.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-08 23:35:42 -10:00
Paul Spooren 5f5a61caf8 CI: use GITHUB_TOKEN for page deployment
The token is set automatically when running on the master branch, no
personal access token is required.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-08 17:20:07 -10:00
Paul Spooren 56ef04849d CI: automatically update jsapi docs
Use a GitHub Action to keep the docs updated, the current onces are 14
month old and outdated.

Use latest jsdoc package

Add full URL to LuCI.html file in README.md

Ignore generated HTML files via .gitignore

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-08 17:16:04 -10:00