Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
caaaml authored Apr 3, 2024
2 parents 876a55f + f7c4014 commit 605bfdf
Show file tree
Hide file tree
Showing 344 changed files with 35,487 additions and 6,266 deletions.
13 changes: 13 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"admin-review":
- changed-files:
- any-glob-to-any-file: applications/**

"update docs":
- all:
- changed-files:
- any-glob-to-any-file: 'docs/**'
- all-globs-to-all-files: '!docs/RFPs/**'

"rfp":
- changed-files:
- any-glob-to-any-file: docs/RFPs/**
4 changes: 3 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

- [x] The [application template](https://github.com/w3f/Grants-Program/blob/master/applications/application-template.md) has been copied and aptly renamed (`project_name.md`).
- [ ] I have read the [application guidelines](https://github.com/w3f/Grants-Program/blob/master/docs/Support%20Docs/grant_guidelines_per_category.md).
- [ ] Payment details have been provided (bank details via email _or_ BTC, Ethereum (USDC/DAI) or Polkadot/Kusama (USDT) address in the application).
- [ ] Payment details have been provided (Polkadot AssetHub (DOT, USDC & USDT) address in the application and bank details via email, if applicable).
- [ ] I understand that 30% of each milestone will be paid in vested DOT, to the Polkadot address listed in the application.
- [ ] I am aware that, in order to receive a grant, I (and the entity I represent) have to successfully complete a KYC/KYB check.
- [ ] The software delivered for this grant will be released under an open-source license specified in the application.
- [ ] The initial PR contains only one commit (squash and force-push if needed).
- [ ] The grant will only be announced once the first milestone [has been accepted](https://github.com/w3f/Grant-Milestone-Delivery#process) (see the [announcement guidelines](https://github.com/w3f/Grants-Program/blob/master/docs/Support%20Docs/announcement-guidelines.md)).
Expand Down
29 changes: 3 additions & 26 deletions .github/workflows/check_application_document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,6 @@ on:
types: [opened, synchronize]

jobs:
discussion_private:
if: |
github.event.action == 'opened' &&
contains(github.event.pull_request.body, 'Project Abstract') && (
!contains(github.event.pull_request.body, '- [ ] I prefer the discussion') ||
(
contains(github.event.pull_request.body, '- [ ] I prefer the discussion') &&
!contains(github.event.pull_request.body, '@_______:matrix.org')
)
)
runs-on: ubuntu-latest
steps:
- name: Add 'discussion private' label if the application is private
uses: actions/github-script@v6
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["discussion private"]
})
get_filename:
if: contains(github.event.pull_request.body, 'Project Abstract')
runs-on: ubuntu-latest
Expand All @@ -48,11 +24,12 @@ jobs:
needs: get_filename
if: needs.get_filename.outputs.filename
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Parse application file
id: grant_parser
uses: w3f/parse-grant-application-action@master
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/check_broken_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Broken Links

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Trigger the workflow every month

jobs:
build_and_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --verbose --no-progress !./applications/*

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue
13 changes: 13 additions & 0 deletions .github/workflows/enforce-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Enforce PR labels

on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]
jobs:
enforce-label:
runs-on: ubuntu-latest
steps:
- uses: yogevbd/[email protected]
with:
BANNED_LABELS: "admin-review"
BANNED_LABELS_DESCRIPTION: "Remove `admin-review` label for merge"
4 changes: 2 additions & 2 deletions .github/workflows/label_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
[section on project details](https://github.com/w3f/Grants-Program/blob/master/applications/application-template.md#project-details)
in the application template is a good reference as to what type of information
we expect applicants to provide, and these
[category-specific requirements](https://github.com/w3f/Grants-Program/blob/master/docs/Support%20Docs/grant_guidelines_per_category.md)
[category-specific requirements](https://grants.web3.foundation/docs/Support%20Docs/grant_guidelines_per_category)
contain more precise guidelines depending on what type of software you're building.<br/>
An area of the application that we often find to be insufficiently elaborated are the
Expand All @@ -31,7 +31,7 @@ jobs:
by other teams and in most cases not already present in the ecosystem. If they are,
you will need to provide a comparison to existing implementations and explain why
it makes sense to fund your approach. Also see our
[FAQ](https://github.com/w3f/Grants-Program/blob/master/docs/faq.md#-general)
[FAQ](https://grants.web3.foundation/docs/faq#what-activitiespositions-do-you-fund)
for a breakdown of what we fund and what we don't.<br/>
Let us know as soon as you're done with your changes, and we'll give your application another look!
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/private-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check for private discussion

on:
workflow_dispatch:
pull_request:
types: [opened, edited]

jobs:
discussion_private:
if: |
contains(github.event.pull_request.body, 'Project Abstract') && (
!contains(github.event.pull_request.body, '- [ ] I prefer the discussion') ||
(
contains(github.event.pull_request.body, '- [ ] I prefer the discussion') &&
!contains(github.event.pull_request.body, '@_______:matrix.org')
)
)
runs-on: ubuntu-latest
steps:
- name: Add 'discussion private' label if the application is private
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["discussion private"]
})
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-node@v2
with:
node-version: "16.16.0"
node-version: "18.19.0"
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ node_modules

# docusaurus
build/
.docusaurus/
.docusaurus/
Loading

0 comments on commit 605bfdf

Please sign in to comment.