Skip to content

Commit

Permalink
Merge branch 'w3f:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrandao authored Aug 3, 2023
2 parents 45ff92b + 4011a74 commit 6e0c997
Show file tree
Hide file tree
Showing 232 changed files with 36,525 additions and 19,869 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- [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).
- [ ] A BTC, Ethereum (USDC/DAI) or Polkadot/Kusama (aUSD/USDT) address for the payment of the milestones is provided in the application.
- [ ] Payment details have been provided (bank details via email _or_ BTC, Ethereum (USDC/DAI) or Polkadot/Kusama (USDT) address in the application).
- [ ] 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
6 changes: 3 additions & 3 deletions .github/workflows/application_accepted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ jobs:
"https://github.com/w3f/Grants-Program/pull/${{ github.event.pull_request.number }}",
"https://github.com/w3f/Grants-Program/pull/${{ github.event.pull_request.number }}",
"USD", "0", "0", "0",
"${{ steps.grant_parser.outputs.total_cost_btc }}",
"",
"${{ steps.grant_parser.outputs.total_cost_dai }}",
"",
"",
"Signed",
"https://github.com/w3f/Open-Grants-Program/pull/${{ github.event.pull_request.number }}",
"https://github.com/w3f/Grants-Program/pull/${{ github.event.pull_request.number }}",
"${{ steps.date.outputs.date }}"
]],
"worksheetTitle": "Legal",
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
[support section of our README](https://github.com/w3f/Grants-Program/blob/master/README.md#support)
for more ways to find answers to your questions. <br/><br/>
Before you start, take a moment to read through our
[announcement guidelines](https://github.com/w3f/Grants-Program/blob/master/docs/announcement-guidelines.md)
[announcement guidelines](https://github.com/w3f/Grants-Program/blob/master/docs/Support%20Docs/announcement-guidelines.md)
for all communications related to the grant or make them known to the right person in your organisation.
In particular, please <b>don't announce the grant publicly before at least the first milestone of your
project has been approved.</b> At that point or shortly before, you can get in touch with us at
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/application_approved.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/check_application_document.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Check application document

on:
workflow_dispatch:
pull_request:
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:
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
outputs:
filename: ${{ steps.files.outputs.added }}
steps:

- name: Get application filename # We assume there's only one
id: 'files'
uses: Ana06/[email protected]
with:
filter: 'applications/*.md'
format: 'csv'

parse_document:
needs: get_filename
if: needs.get_filename.outputs.filename
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Parse application file
id: grant_parser
uses: w3f/parse-grant-application-action@master
with:
path: "${{ github.workspace }}/${{ needs.get_filename.outputs.filename }}"
5 changes: 2 additions & 3 deletions .github/workflows/ready_for_review.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Ready for Review notification

on:
pull_request:
types: [labeled]
pull_request_target:
types: [ready_for_review]

jobs:
send_matrix_review_msg:
if: github.event.label.name == 'ready for review'
runs-on: ubuntu-latest
steps:
- uses: fadenb/[email protected]
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/stale_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Stale checker

on:
schedule:
- cron: '0 7 * * *' # run at 7:00 UTC every day
workflow_dispatch:

jobs:
mark_as_stale:
if: github.repository_owner == 'w3f'
runs-on: ubuntu-latest
steps:
- id: stale
uses: w3f/label-stale-pull-requests@main
with:
context: ${{ toJSON(github) }}
token: ${{ secrets.GITHUB_TOKEN }}
- if: steps.stale.outputs.message != ''
uses: fadenb/[email protected]
with:
homeserver: 'matrix.web3.foundation'
token: ${{ secrets.MATRIX_TOKEN }}
channel: ${{ secrets.MATRIX_CHANNEL_ID }}
message: |
${{ steps.stale.outputs.message }}
Loading

0 comments on commit 6e0c997

Please sign in to comment.