gr2m / gr2m/github-discussion-toc

Add action

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Add an `action.yml` to make this repository usable as an action.

The usage should look like this

```yml
name: Update discussion toc
on: discussion_comment

permissions:
discussions: write

jobs:
update_toc:
runs-on: ubuntu-latest
if: github.event.discussion.number == 1
steps:
- uses: gr2m/github-discussion-toc@v1.x
```

The action should also accept the optional arguments

- token - defaults to `github.token`
- discussion_url - defaults to `github.event.discussion.html_url`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.