Skip to content

Commit 77cb31f

Browse files
anapaulalemosAna Lemos
andauthored
Docs/improve documentation format (#516)
* docs: improve documenation format * docs: fix couple typos * docs: break line --------- Co-authored-by: Ana Lemos <[email protected]>
1 parent 60d664e commit 77cb31f

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

README.md

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,25 @@ GitHub Action that automatically creates an issue with an overview of the commit
55
## Permissions
66

77
This action requires the following permissions:
8-
9-
```
10-
permissions:
11-
issues: write
12-
contents: read
13-
```
8+
- `issues: write`
9+
- `contents: read`
1410

1511
💡 `contents:read` is required because the action is using a `actions/checkout@v3` action to download the repository content.
1612

13+
## Usage
14+
15+
Configure this action in your workflows providing the inputs described below in order to get notified in `x` time after the repo has been updated but no release has happened.
16+
17+
It is possible to snooze the notification issue for `x` time by closing it as **not planned**. Once the time has passed a new issue will be created.
18+
19+
## Inputs
20+
21+
| inputs | required | default | description |
22+
|--------------------------|----------|-----------------------|-------------|
23+
| `github-token` | no | `${{ github.token }}` | A github token. |
24+
| `notify-after` | no | | The time after which unreleased commits should be considered stale and should notify for a release.<br />This option accepts various time formats as described by the time conversion library [ms](https://github.com/vercel/ms). |
25+
| `stale-days` | no | `7` | ⚠️ **Deprecated** ⚠️ Number of days of inactivity before a release becomes stale. The value can be a number or a string. |
26+
| `commit-messages-lines` | no | `1` | Limit the number of first `x` lines from commit messages that will be added in the issue description. No truncation when set to `0`. |
1727

1828
## Example
1929

@@ -37,29 +47,3 @@ jobs:
3747
- name: Notify release
3848
uses: nearform-actions/github-action-notify-release@v1
3949
```
40-
41-
## Usage
42-
43-
Configure this action in your workflows providing the inputs described below in order to get notified in `x` time after the repo has been updated but no release has happened.
44-
It is possible to snooze the notification issue for `x` time by closing it as **not planned**. Once the time has passed a new issue will be created.
45-
46-
### `github-token`
47-
48-
**Optional** A GitHub token.
49-
50-
### `notify-after: '7 days'`
51-
52-
**Optional** The time after which unreleased commits should be considered stale and should notify for a release.
53-
This option accepts various time formats as described by the time conversion library [ms](https://github.com/vercel/ms).
54-
Example: `1 minute`.
55-
Default is `7 days`.
56-
57-
### **Deprecated** `stale-days: 7`
58-
59-
**Optional** The time after which unreleased commits should be considered stale and should notify for a release. The value can be a number or a string.
60-
Example: `1 minute`.
61-
Default is `7` days.
62-
63-
### `commit-messages-lines: 1`
64-
65-
**Optional** Limit the number of first `x` lines from commit messages that will be added in the issue description. No truncation when set to `0`. Default is `1`.

0 commit comments

Comments
 (0)