Skip to content

Commit

Permalink
feat: add info about damak (#5)
Browse files Browse the repository at this point in the history
* feat: add info about damak

* feat: add auto response workflow
  • Loading branch information
thenishantsapkota authored Oct 2, 2023
1 parent a959414 commit fab374e
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 41 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/merge_response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Merge Response

on:
pull_request:
types:
- closed

jobs:
respond:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Respond to merged PR
run: |
if [ "${{ github.event_name }}" == "pull_request" ] && [ "${{ github.event.action }}" == "closed" ] && [ "${{ github.event.pull_request.merged }}" == "true" ]; then
AUTHOR_LOGIN=$(jq -r '.pull_request.user.login' $GITHUB_EVENT_PATH)
MESSAGE="Thank you for your contribution @$AUTHOR_LOGIN :heart: \n[![Join our Discord server!](https://invidget.switchblade.xyz/7jwZaa8WDr)](http://discord.gg/7jwZaa8WDr)"
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d "{\"body\":\"$MESSAGE\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
fi
123 changes: 82 additions & 41 deletions data/borderlines.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,91 @@
{
"cities": [
{
"name": "Kathmandu",
"latitude": 27.7172,
"longitude": 85.3240,
"timezone": "Asia/Kathmandu",
"officialLanguage": "Nepali",
"currency": {
"name": "Nepalese Rupee",
"code": "NPR"
},
"landArea": {
"value": 49.45,
"unit": "km²"
},
"elevation": {
"value": 1400,
"unit": "meters"
},
"landmarks": [
{
"name": "Swayambhunath (Monkey Temple)",
"latitude": 27.7149,
"longitude": 85.2904
"name": "Damak",
"latitude": 26.617,
"longitude": 87.668,
"timezone": "Asia/Kathmandu",
"officialLanguage": "Nepali",
"currency": {
"name": "Nepalese Rupee",
"code": "NPR"
},
"landArea": {
"value": 75.74,
"unit": "km²"
},
{
"name": "Pashupatinath Temple",
"latitude": 27.7105,
"longitude": 85.3488
"elevation": {
"value": 130,
"unit": "meters"
},
"landmarks": [
{
"name": "Damak View Tower",
"latitude": 26.6882791,
"longitude": 87.6603925
},
{
"name": "Indreni Lake",
"latitude": 26.6117643,
"longitude": 87.6547334
},
{
"name": "Damak Fun Park",
"latitude": 26.6539691,
"longitude": 87.603649
},
{
"name": "Himalaya Mahalaxmi Tea Garden",
"latitude": 26.6539691,
"longitude": 87.603649
}
]
},
{
"name": "Kathmandu",
"latitude": 27.7172,
"longitude": 85.324,
"timezone": "Asia/Kathmandu",
"officialLanguage": "Nepali",
"currency": {
"name": "Nepalese Rupee",
"code": "NPR"
},
{
"name": "Boudhanath Stupa",
"latitude": 27.7215,
"longitude": 85.3620
"landArea": {
"value": 49.45,
"unit": "km²"
},
{
"name": "Kathmandu Durbar Square",
"latitude": 27.7043,
"longitude": 85.3075
"elevation": {
"value": 1400,
"unit": "meters"
},
{
"name": "Narayanhiti Palace Museum",
"latitude": 27.7150,
"longitude": 85.3183
}
]
}
"landmarks": [
{
"name": "Swayambhunath (Monkey Temple)",
"latitude": 27.7149,
"longitude": 85.2904
},
{
"name": "Pashupatinath Temple",
"latitude": 27.7105,
"longitude": 85.3488
},
{
"name": "Boudhanath Stupa",
"latitude": 27.7215,
"longitude": 85.362
},
{
"name": "Kathmandu Durbar Square",
"latitude": 27.7043,
"longitude": 85.3075
},
{
"name": "Narayanhiti Palace Museum",
"latitude": 27.715,
"longitude": 85.3183
}
]
}
]
}

0 comments on commit fab374e

Please sign in to comment.