diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..d750ee6 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,57 @@ +# Checks every link in the org profile and the default community files on each pull request that touches them. +# Org rules: pull_request and workflow_dispatch only (no push, no schedule). Hosted runner on purpose: this repo is +# public and the org's self-hosted runners do not take public-repo jobs. +name: Link check + +on: + pull_request: + paths: + - "**/*.md" + - ".github/workflows/links.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + links: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + # Org policy allows only GitHub-owned and a few listed actions, so the check is a short inline script. + - name: Check every link in the Markdown files + shell: python + run: | + import glob, os, re, sys, urllib.request + files = glob.glob("*.md") + glob.glob("profile/*.md") + bad = [] + for f in files: + text = open(f, encoding="utf-8").read() + for url in sorted(set(re.findall(r'\]\(([^)\s]+)\)|src="([^"]+)"', text))): + url = url[0] or url[1] + if url.startswith(("#", "mailto:")): + continue + if url.startswith(("http://", "https://")): + req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0 link-check"}) + for attempt in range(3): + try: + with urllib.request.urlopen(req, timeout=20) as r: + code = r.status + break + except Exception as e: + code = getattr(e, "code", str(e)) + if code != 200: + bad.append(f"{f}: {url} -> {code}") + elif not os.path.exists(os.path.join(os.path.dirname(f), url.split("#")[0])): + bad.append(f"{f}: {url} -> missing file") + print(f"{len(files)} files checked") + for b in bad: + print("FAIL", b) + sys.exit(1 if bad else 0) diff --git a/AGENTS.md b/AGENTS.md index 9119c1c..098fce6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,13 +6,19 @@ Verify: none. This repo holds only Markdown, YAML and 1 image; check YAML forms The Solarity-AI organisation's default community files. Every repository without its own copy uses them, so a change here changes every such repository at once. +**Edits here change every repo's defaults at once:** treat each change as an org-wide change, not a normal repo edit. + ## What lives here - `PULL_REQUEST_TEMPLATE.md`: the default pull request template (What changed, `Fixes #`, How verified with the command and its result). -- `ISSUE_TEMPLATE/`: the default issue forms (`bug.yml`, `feature.yml`) and `config.yml`. A repository with its own +- `ISSUE_TEMPLATE/`: the default issue forms (`bug.yml`, `feature.yml`, `question.yml`) and `config.yml` (blank + issues off, contact links). A repository with its own `.github/ISSUE_TEMPLATE/` folder uses only its own forms. -- `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `SECURITY.md`: the default guides. +- `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `SECURITY.md`, `SUPPORT.md`: the default guides. +- `workflow-templates/`: org starter workflows offered on every repo's "New workflow" page (`node-ci.yml` calls the + shared Node test job in `ci-platform` at `@v1`; each template needs a matching `.properties.json`). +- `.github/workflows/links.yml`: checks the links in every Markdown file on pull requests (hosted runner, public repo). - `profile/README.md`: the public organisation profile page; it is public, so no private repo names, people or numbers. ## Rules diff --git a/ISSUE_TEMPLATE/config.yml b/ISSUE_TEMPLATE/config.yml index b85f7a2..6fe74ff 100644 --- a/ISSUE_TEMPLATE/config.yml +++ b/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,11 @@ -blank_issues_enabled: true +blank_issues_enabled: false contact_links: - name: Report a security vulnerability url: https://github.com/Solarity-AI/.github/blob/main/SECURITY.md about: Report security issues privately. Please don't open a public issue. + - name: Get help + url: https://github.com/Solarity-AI/.github/blob/main/SUPPORT.md + about: Where to ask questions, report bugs or reach the team. + - name: Press, partnerships and the apps + url: https://solarityai.com/ + about: Visit the website, or email ata.turhan@solarityai.com. diff --git a/ISSUE_TEMPLATE/question.yml b/ISSUE_TEMPLATE/question.yml new file mode 100644 index 0000000..f41ddbd --- /dev/null +++ b/ISSUE_TEMPLATE/question.yml @@ -0,0 +1,21 @@ +name: Question +description: Ask how something works or how to use it. +labels: [question] +body: + - type: textarea + id: question + attributes: + label: Question + description: What you want to know. + validations: + required: true + - type: textarea + id: tried + attributes: + label: What you tried + description: Steps, commands or settings you already tried, and what happened. + - type: input + id: environment + attributes: + label: Environment + description: Operating system and version of the tool, if it matters. diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 0000000..64cd9eb --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,16 @@ +# Getting help + +This page applies to every Solarity-AI repository that doesn't have its own `SUPPORT.md`. + +## Where to ask + +- **A question about using a tool:** open an issue with the **Question** form on that repository. +- **A bug:** open an issue with the **Bug report** form on that repository, with the steps to reproduce. +- **An idea:** open an issue with the **Feature or improvement** form. +- **A security problem:** don't open a public issue; follow the [security policy](SECURITY.md). +- **Anything else** (press, partnerships, the apps or the SaaS products): email + [ata.turhan@solarityai.com](mailto:ata.turhan@solarityai.com) or visit [solarityai.com](https://solarityai.com/). + +## What to expect + +We read every issue and email, and reply as soon as we can. Issues are the fastest route for anything about the code. diff --git a/profile/README.md b/profile/README.md index 1eb813f..ceec610 100644 --- a/profile/README.md +++ b/profile/README.md @@ -17,9 +17,16 @@ - [Management Max](https://managementmax.solarityai.com/): governed weekly metrics for mobile app companies - [Marketing Max](https://marketingmax.solarityai.com/): your next Reel, made from one that already worked +## Free tools (public repos) + +- [ai-usage-taskbar-widgets](https://github.com/Solarity-AI/ai-usage-taskbar-widgets): see how much of your weekly Claude and Codex allowance is used, on the Windows taskbar or the macOS menu bar +- [hw-widget](https://github.com/Solarity-AI/hw-widget): temperature, CPU, memory and GPU at a glance on Windows, GNOME and macOS +- [llm-iq-index](https://github.com/Solarity-AI/llm-iq-index): estimated IQ scores for the top closed and open-weight LLMs ([live site](https://solarity-ai.github.io/llm-iq-index/)) +- [claude-enter-newline](https://github.com/Solarity-AI/claude-enter-newline): Enter adds a new line and Ctrl/⌘+Enter sends, in the Claude desktop app and AI chats in Chrome +- [public-resources](https://github.com/Solarity-AI/public-resources): brand assets, press kit and one-pagers + ## Links - Website: [solarityai.com](https://solarityai.com/?utm_source=github&utm_medium=org-profile&utm_campaign=profile) -- Brand assets, press kit, and one-pagers: [public-resources](https://github.com/Solarity-AI/public-resources) - Careers: [solarityai.com/careers](https://solarityai.com/careers/?utm_source=github&utm_medium=org-profile&utm_campaign=profile) - Contact: [ata.turhan@solarityai.com](mailto:ata.turhan@solarityai.com) diff --git a/workflow-templates/node-ci.properties.json b/workflow-templates/node-ci.properties.json new file mode 100644 index 0000000..fbadb6e --- /dev/null +++ b/workflow-templates/node-ci.properties.json @@ -0,0 +1,7 @@ +{ + "name": "Solarity Node CI", + "description": "Runs npm test through the shared ci-platform job on pull requests, on the org's self-hosted runners.", + "iconName": "octicon checklist", + "categories": ["JavaScript", "TypeScript", "Node"], + "filePatterns": ["package.json$"] +} diff --git a/workflow-templates/node-ci.yml b/workflow-templates/node-ci.yml new file mode 100644 index 0000000..15a0cdd --- /dev/null +++ b/workflow-templates/node-ci.yml @@ -0,0 +1,24 @@ +# Calls the shared Node test job in Solarity-AI/ci-platform on the org's self-hosted runners (no paid minutes). +# Org rules: pull_request with paths and workflow_dispatch only (no push, no schedule). Private repos only: a public +# repo can't call a private repo's reusable workflow, so public repos use a hosted runner instead. +name: CI + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + paths: ["src/**", "tests/**", "package.json", "package-lock.json", ".nvmrc", ".github/workflows/**"] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + test: + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false + uses: Solarity-AI/ci-platform/.github/workflows/node-test.yml@v1 + with: + test-command: npm test