Skip to content

Commit

Permalink
Add documentation (#5)
Browse files Browse the repository at this point in the history
* test public orb

* override doc

* cleanup

* updated description

* nl yml
  • Loading branch information
mkotsollaris authored Sep 24, 2022
1 parent 36eb2b9 commit a4c272a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1
orbs:
stale-md: mkotsollaris/stale-md@dev:<<pipeline.git.revision>>
stale-md: mkotsollaris/stale-md@0.0.3
orb-tools: circleci/orb-tools@11.1

filters: &filters
Expand Down
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,29 @@

Find stale documentation through CI.

`stale.md` is a CircleCI orb that identifies stale documentation (ie 90 days of unchanged `.md` file) and warns developers on maintaining their documentation.
`stale-md` is a CircleCI orb that identifies stale documentation (ie 90 days of unchanged `.md` file) and warns developers on maintaining their documentation.

# Usage

```bash
@orb reference TBD

description: >
Identify Stale Documentation
steps:
- stale.md/scan
version: 2.1

orbs:
stale-md: mkotsollaris/stale-md@0.0.3
orb-tools: circleci/orb-tools@11.1

jobs:
scan:
docker:
- image: cimg/base:current
steps:
- checkout
- stale-md/scan

workflows:
main:
jobs:
- scan
```

# Options
Expand Down
9 changes: 1 addition & 8 deletions src/@orb.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
version: 2.1

description: >
Sample orb description Sample orb description Sample orb description Sample orb description
# What will your orb allow users to accomplish?
# Descriptions should be short, simple, and informative.
Find stale documentation through CI. `stale-md` is a CircleCI orb that identifies stale documentation (ie 90 days of unchanged `.md` file) and warns developers on maintaining their documentation.
# This information will be displayed in the orb registry and is not mandatory.
display:
source_url: "https://github.com/mkotsollaris/stale-md.git"

# If your orb requires other orbs, you can import them like this. Otherwise remove the "orbs" stanza.
# orbs:
# hello: circleci/hello-build@0.0.5
32 changes: 22 additions & 10 deletions src/examples/example.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
description: >
Sample example description.
# Provide a use-case based example for using this orb.
# Everything in the `usage` section will be displayed in the orb registry.
# Comments are not retained.
`stale-md/scan` usage
usage:
version: 2.1
orbs:
<orb-name>: <namespace>/<orb-name>@1.2.3
workflows:
use-my-orb:
jobs:
- <orb-name>/<job-name>

orbs:
stale-md: mkotsollaris/stale-md@0.0.3
orb-tools: circleci/orb-tools@11.1

jobs:
scan:
docker:
- image: cimg/base:current
environment:
IGNORED_FILES: "./.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST.md EXAMPLE.md" # declare files to be ignored during scan
DAYS_THRESHOLD: 50 # this overrides the default value of 90 days
steps:
- checkout
- stale-md/scan

workflows:
main:
jobs:
- scan

0 comments on commit a4c272a

Please sign in to comment.