From fab374e47994538ba3606e90aef4624f0f89feb8 Mon Sep 17 00:00:00 2001 From: Nishant Sapkota <60746512+thenishantsapkota@users.noreply.github.com> Date: Mon, 2 Oct 2023 09:50:06 +0545 Subject: [PATCH] feat: add info about damak (#5) * feat: add info about damak * feat: add auto response workflow --- .github/workflows/merge_response.yml | 32 +++++++ data/borderlines.json | 123 ++++++++++++++++++--------- 2 files changed, 114 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/merge_response.yml diff --git a/.github/workflows/merge_response.yml b/.github/workflows/merge_response.yml new file mode 100644 index 0000000..9f9e31e --- /dev/null +++ b/.github/workflows/merge_response.yml @@ -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 diff --git a/data/borderlines.json b/data/borderlines.json index bdb126b..37cb7f4 100644 --- a/data/borderlines.json +++ b/data/borderlines.json @@ -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 + } + ] + } ] }