This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 364
56 lines (50 loc) · 2.39 KB
/
contributor_pr_status_comment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: ContributorSpecFailure
on:
workflow_run:
workflows:
- ContributorSpec
types:
- completed
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- env:
CONTEXT: ${{ toJSON(github) }}
run: echo $CONTEXT
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow.id }}
- run: echo "##[set-output name=id;]$(jq '.event.number' ${{ github.event.workflow_run.id }}/data.json)"
id: pull_request
- run: jq '.event.number' ${{ github.event.workflow_run.id }}/data.json
- run: jq '.' ${{ github.event.workflow_run.id }}/data.json
- env:
TEST: steps.pull_request.outputs.id
run: echo $TEST
- if: ${{ github.event.workflow_run.conclusion == 'failure' }}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ steps.pull_request.outputs.id }}
body: |
It looks like you haven't ordered the JSON values in **ascending order alphabetically ignoring case** by Github user name or your JSON syntax is wrong. Please read the issue description before taking them.
If you know about nodejs run the following command to sort the list:
```sh
npx sort-json contributors.json --ignore-case
```
**If you don't know about node js, go the following link:**
https://codeshack.io/json-sorter/
Paste the content of the file and generate a sorted JSON. After the paste the sorted list in the file and make a commit.
Once this is done, your PR will be reviewed and merged.
If you still have problem you can tag in a maintainer: @subeshb1
reactions: eyes, -1, confused
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ steps.pull_request.outputs.id }}
body: |
Great! Your PR has succesfully passed all the checks. 🚀
Your PR will be merged by a maintainer. Please be patient.
In the meantime checkout the issues for anything you can help out on: [Issues needed Help](https://github.com/subeshb1/developer-community-stats/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)
reactions: heart, hooray, +1, rocket