From 63372bb14e8cc21379c2ac2df911019cb9af5fda Mon Sep 17 00:00:00 2001 From: rzadp Date: Fri, 8 Sep 2023 13:51:57 +0200 Subject: [PATCH 1/2] Use rfc action v0.0.2 --- .github/workflows/{rfc-propose.yml => rfc-action.yml} | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) rename .github/workflows/{rfc-propose.yml => rfc-action.yml} (53%) diff --git a/.github/workflows/rfc-propose.yml b/.github/workflows/rfc-action.yml similarity index 53% rename from .github/workflows/rfc-propose.yml rename to .github/workflows/rfc-action.yml index e645ed9f..187c67e6 100644 --- a/.github/workflows/rfc-propose.yml +++ b/.github/workflows/rfc-action.yml @@ -1,4 +1,4 @@ -name: RFC propose +name: RFC action on: issue_comment: @@ -6,13 +6,14 @@ on: 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 }} From d364b0694ae2c66faa73040b9c131100ef38a852 Mon Sep 17 00:00:00 2001 From: rzadp Date: Fri, 8 Sep 2023 14:05:14 +0200 Subject: [PATCH 2/2] Readme --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4685d0df..d1cbc13a 100644 --- a/README.md +++ b/README.md @@ -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.