Skip to content

Commit

Permalink
Merge pull request #180 from paritytech/yuri/comment-org-link
Browse files Browse the repository at this point in the history
Using an org link for "only members of..." comment
  • Loading branch information
mutantcornholio authored Sep 20, 2024
2 parents 9f40987 + 7a2e218 commit 50519fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bot-handle-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const handleTipRequest = async (
}

let message =
`Only members of \`${allowedGitHubOrg}/${allowedGitHubTeam}\` ` +
`Only members of [${allowedGitHubOrg}/${allowedGitHubTeam}](https://github.com/orgs/${allowedGitHubOrg}/teams/${allowedGitHubTeam}) ` +
`have permission to request the creation of the tip referendum from the bot.\n\n`;
message += `However, you can create the tip referendum yourself using [Polkassembly](https://wiki.polkadot.network/docs/learn-polkadot-opengov-treasury#submit-treasury-proposal-via-polkassembly)`;
return {
Expand Down
2 changes: 1 addition & 1 deletion src/tip.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ describe("tip", () => {
const [request] = await successEndpoint.getSeenRequests();
const body = (await request.body.getJson()) as { body: string };
expect(body.body).toContain(
"Only members of `tip-bot-org/tip-bot-approvers` have permission to request the creation of the tip referendum from the bot.",
"Only members of [tip-bot-org/tip-bot-approvers](https://github.com/orgs/tip-bot-org/teams/tip-bot-approvers) have permission to request the creation of the tip referendum from the bot.",
);
expect(body.body).toContain(`https://polkadot.js.org/apps/?rpc=ws://local${network}:9945#/`);

Expand Down

0 comments on commit 50519fa

Please sign in to comment.