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

cron: Added comment for completed RFCs #34

Merged
merged 21 commits into from
Feb 29, 2024
Merged

Conversation

Bullrich
Copy link
Contributor

Added the ability to check on open PRs if they match with a completed referenda.

If it matches, it will comment on it for the system to close it using the latest block from the timeline

Summary

  • New Features
    • Enhanced GitHub action notifications for voting availability and closure of referenda.
    • Added functionality to automatically close PRs for completed referenda.
  • Documentation
    • Updated README with a short summary of new GitHub action notifications.
  • Refactor
    • Improved handling of ongoing and completed referenda in the application logic.
  • New Files
    • Introduced SubsquareApi class for fetching referenda data.

@Bullrich Bullrich force-pushed the cron/close-completed-rfcs-prs branch from 2655eaa to 982d416 Compare February 28, 2024 16:02
src/cron.ts Outdated Show resolved Hide resolved
Now it also fetches completed RFCs from an older date
src/subsquare.ts Outdated Show resolved Hide resolved
src/cron.test.ts Outdated Show resolved Hide resolved
src/cron.ts Outdated Show resolved Hide resolved
src/cron.ts Outdated Show resolved Hide resolved
@Bullrich
Copy link
Contributor Author

Hi @rzadp!

Thank you for your thorough review! You had a lot of great points!

I have addressed all of them. I also rewrite a bit the subsquare logic which should now make it more straightforward (and fixed the issue with the tests using an api)

@Bullrich Bullrich requested a review from rzadp February 29, 2024 12:14
@Bullrich Bullrich merged commit 4b7d2a9 into main Feb 29, 2024
3 checks passed
@Bullrich Bullrich deleted the cron/close-completed-rfcs-prs branch February 29, 2024 12:26
Bullrich added a commit to Bullrich/polkadot-fellows-rfcs that referenced this pull request Feb 29, 2024
This includes paritytech/rfc-action#34 which takes into consideration successful RFCs.

When a RFC closed after the last run, it will comment on the open PR (if it is still open) that the RFC has been closed and how to trigger the bot to merge the PR.

If it is succesfull, we can automate it to simply close the PRs without human input.
bkchr pushed a commit to polkadot-fellows/RFCs that referenced this pull request Mar 4, 2024
This includes paritytech/rfc-action#34 which
takes into consideration successful RFCs.

When a RFC closed after the last run, it will comment on the open PR (if
it is still open) that the RFC has been closed and how to trigger the
bot to merge the PR.

If it is succesfull, we can automate it to simply close the PRs without
human input.

Also, updated actions/create-github-app-token to latest (version
`1.8.1`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants