Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the RFC bot/action #29

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: RFC propose
name: RFC action

on:
issue_comment:
types: [created]

permissions:
pull-requests: write
contents: write

jobs:
rfc-propose:
name: Propose an RFC creation transaction
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/rfc-propose') }}
rfc-action:
name: Handle an RFC-related command
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/rfc') }}
runs-on: ubuntu-latest
steps:
- uses: paritytech/rfc-propose@ae558a3c03f562362b78babdc72697f5f5fbb3af # v0.0.1
- uses: paritytech/rfc-action@f7f859cf3ef3e10a4a64289f59df74c71b8de54f # v0.0.2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ Problems, requirements, and descriptions in RFC text should be stated using the

## Bots

The repository provides a bot for proposing RFCs on chain in a referenda to let the fellowship vote on the RFC. The referenda can only be created by accounts that are part of the fellowship. To use the bot you need to write the following comment into a pull request:
The repository provides a bot for:

* Proposing RFCs on chain in a referenda to let the fellowship vote on the RFC. The referenda can only be created by accounts that are part of the fellowship.
* Processing (merging or closing) the PR after the on-chain referendum gets confirmed.

To use the bot you need to write the following comment into a pull request:

``` text
/rfc-propose
/rfc (help|propose|process)
```

It takes a moment and then the bot should answer with a comment with more instructions on how to proceed.