generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cron job to comment ongoing referenda on PRs (#28)
Added functionality for a cron job to iterate over all ongoing referendas and compare them to the open PRs. If there is any match on the remark, and the referenda has been opened **after** the last time the action was run, it will comment a link to the referenda in Polkassembly. This is intended to resolve the requirements in polkadot-fellows/RFCs#57
- Loading branch information
Showing
8 changed files
with
494 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const PROVIDER_URL = process.env.PROVIDER_URL || "wss://polkadot-collectives-rpc.polkadot.io"; | ||
export const POLKADOT_APPS_URL = `https://polkadot.js.org/apps/?rpc=${encodeURIComponent(PROVIDER_URL)}#/`; | ||
export const START_DATE = process.env.START_DATE || "0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { getAllRFCRemarks } from "./cron"; | ||
|
||
describe("RFC Listing test", () => { | ||
test("Should not return any remark with future date", async () => { | ||
const remarks = await getAllRFCRemarks(new Date()); | ||
expect(remarks).toHaveLength(0); | ||
}, 60_000); | ||
}); |
Oops, something went wrong.