https://github.com/autopas/doctagchecker

GitHub Action that notifies when code is touched that is relevant for the documentation pages.

https://github.com/autopas/doctagchecker

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.2%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

GitHub Action that notifies when code is touched that is relevant for the documentation pages.

Basic Info
  • Host: GitHub
  • Owner: AutoPas
  • License: mit
  • Language: TypeScript
  • Default Branch: main
  • Size: 1.94 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed 10 months ago
Metadata Files
Readme License Codeowners

README.md

DocTagChecker

GitHub Super-Linter CI Check dist/ CodeQL Coverage

A GitHub action to help you keep your user documentation up to date with your source code.

It works by looking for file or directory tags in your documentation and then checking if these documentation pages have changed and if the linked source code has been updated. Since this is very prone to false positives, it never fails workflows but instead posts status comments to the corresponding pull request.

Usage

To use DocTagChecker in your project, you must include it and adhere to its (very few) assumptions.

Add DocTagChecker to your Workflows

To add this action to your CI copy and adapt the following into your YAML workflow file.

```yaml name: DocTagChecker Workflow

on: pull_request # This action is intended only for PRs

jobs: DocTagCheck: runs-on: ubuntu-latest # this is tested but other runners might work too steps: - name: Checkout your code uses: your/way/to/checkout - name: Check for missing user doc updates uses: AutoPas/DocTagChecker@main # substitute main for a release tag with: githubToken: ${{ secrets.GITHUB_TOKEN }} # multiple paths are separated by whitespace or ',' userDocsDirs: paths/to/ your/doc/dir relative/to/repo/root # Optional inputs with defaults: dirTagSectionRegex: /Related Files and Folders/i # Check userDocsDirs recursively. recurseUserDocDirs: false # File extensions for files to be considered documentation. docFileExtensions: md # File extensions for files to be considered source code. srcFileExtensions: cpp h txt ```

Tag your Documentation

DocTagChecker looks for two kinds of tags in all documentation files:

  • File Tags: Any filename that occurs in the file. A filename is a string without white spaces that ends with a file ending. File tags do not include paths.
  • Directory Tags: Any path that occurs after the string "Related Files and Folders", so it is advised to create such a section at the end of every documentation page. A path is a string without white spaces that ends with a /. It can be absolute or relative to the root of the repository. Everything in the tagged directory will be recursively added to the file tags.

Build and Develop

This GitHub action was created from the actions/typescript-action template. Refer to this for general tips, techniques, and guidelines.

Dependencies

Development Workflow

The general development workflow should look as follows:

  1. Create a new branch for your update

    bash git checkout -b myAwsomeUpdate

  2. Implement your update in src/ in TypeScript.

    If you need new input values for the action, add them to action.yml

  3. Add tests to __tests__.

  4. Format, build, and run the tests.

    bash npm run all

    This is critical. Without this step, the JavaScript code, which is what's actually run, is not built, and nothing changes!

  5. Commit, push, review, and merge to main.

  6. (If applicable) Create a new release using the release script.

    bash script/release

Owner

  • Name: AutoPas
  • Login: AutoPas
  • Kind: organization

GitHub Events

Total
  • Delete event: 40
  • Issue comment event: 45
  • Push event: 41
  • Pull request event: 81
  • Create event: 35
Last Year
  • Delete event: 40
  • Issue comment event: 45
  • Push event: 41
  • Pull request event: 81
  • Create event: 35

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 2
  • Total pull requests: 89
  • Average time to close issues: less than a minute
  • Average time to close pull requests: about 20 hours
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.72
  • Merged pull requests: 73
  • Bot issues: 2
  • Bot pull requests: 81
Past Year
  • Issues: 1
  • Pull requests: 42
  • Average time to close issues: less than a minute
  • Average time to close pull requests: about 14 hours
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.83
  • Merged pull requests: 35
  • Bot issues: 1
  • Bot pull requests: 42
Top Authors
Issue Authors
  • dependabot[bot] (2)
Pull Request Authors
  • dependabot[bot] (88)
  • FG-TUM (8)
Top Labels
Issue Labels
dependencies (2) javascript (2)
Pull Request Labels
dependencies (87) javascript (82) github_actions (5) enhancement (3) bug (1)

Dependencies

.github/workflows/check-dist.yml actions
  • actions/checkout v4 composite
  • actions/setup-node v4 composite
  • actions/upload-artifact v4 composite
.github/workflows/ci.yml actions
  • ./ * composite
  • actions/checkout v4 composite
  • actions/setup-node v4 composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v4 composite
  • github/codeql-action/analyze v3 composite
  • github/codeql-action/autobuild v3 composite
  • github/codeql-action/init v3 composite
.github/workflows/linter.yml actions
  • actions/checkout v4 composite
  • actions/setup-node v4 composite
  • super-linter/super-linter/slim v5 composite
action.yml actions
  • dist/index.js node20 javascript
package-lock.json npm
  • 511 dependencies
package.json npm
  • @types/jest ^29.5.11 development
  • @types/node ^20.10.5 development
  • @typescript-eslint/eslint-plugin ^6.16.0 development
  • @typescript-eslint/parser ^6.16.0 development
  • @vercel/ncc ^0.38.1 development
  • eslint ^8.56.0 development
  • eslint-plugin-github ^4.10.1 development
  • eslint-plugin-jest ^27.6.0 development
  • eslint-plugin-jsonc ^2.11.2 development
  • eslint-plugin-prettier ^5.1.2 development
  • jest ^29.7.0 development
  • make-coverage-badge ^1.2.0 development
  • prettier ^3.1.1 development
  • prettier-eslint ^16.2.0 development
  • ts-jest ^29.1.1 development
  • typescript ^5.3.3 development
  • @actions/core ^1.10.1
.github/workflows/DocTagChecker.yml actions
  • ./ * composite
  • actions/checkout v4 composite
.github/workflows/dependabot-auto-merge.yml actions
  • dependabot/fetch-metadata v1 composite