-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bugs and adding back lost files
- Loading branch information
1 parent
ee91a74
commit 69a1eae
Showing
7 changed files
with
97 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Greet on User First PR Merge | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
greet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const prNumber = context.payload.pull_request.number; | ||
const authorLogin = context.payload.pull_request.user.login; | ||
const firstPR = await github.issues.listForRepo({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_requests: { | ||
state: 'closed', | ||
author: authorLogin, | ||
}, | ||
}); | ||
console.log(firstPR.data.length); | ||
if (firstPR.data.length === 1) { | ||
const greetingMessage = ` Congratulations, @${authorLogin} for your first pull request merge in this repository! 🎉🎉. Thanks for your contribution to JSON Schema! `; | ||
await github.issues.createComment({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: prNumber, | ||
body: greetingMessage | ||
}); | ||
} |
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
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,47 @@ | ||
[ | ||
{ | ||
"title": "Overview", | ||
"summary": "Ut minim anim non deserunt veniam. Ex sit eu voluptate labore sunt aute ", | ||
"logo": "/icons/eye.svg", | ||
"links": { | ||
"lang": "URL1", | ||
"url": "/overview/what-is-jsonschema" | ||
} | ||
}, | ||
{ | ||
"title": "Getting Started", | ||
"summary": "Sit anim eu sunt nisi. Tempor cupidatat voluptate nostrud voluptate deserunt cupidatat dolor magna irure deserunt.", | ||
"logo": "/icons/compass.svg", | ||
"links": { | ||
"lang": "URL1", | ||
"url": "/learn/getting-started-step-by-step" | ||
} | ||
}, | ||
{ | ||
"title": "Reference", | ||
"summary": "Adipisicing minim ex amet occaecat dolore quis nisi voluptate sit.", | ||
"logo": "/icons/book.svg", | ||
"links": { | ||
"lang": "URL1", | ||
"url": "/learn/glossary" | ||
} | ||
}, | ||
{ | ||
"title": "Specification", | ||
"summary": "Deserunt et fugiat do adipisicing enim in nostrud Lorem anim ut amet enim.", | ||
"logo": "/icons/clipboard.svg", | ||
"links": { | ||
"lang": "URL1", | ||
"url": "/specification" | ||
} | ||
}, | ||
{ | ||
"title": "Other Resources", | ||
"summary": "Deserunt et fugiat do adipisicing enim in nostrud Lorem anim ut amet enim.", | ||
"logo": "/icons/bookshelf.svg", | ||
"links": { | ||
"lang": "URL1", | ||
"url": "/resources/books" | ||
} | ||
} | ||
] |
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