Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrukturisasi Informasi API #373

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
89 changes: 89 additions & 0 deletions .github/ISSUE_TEMPLATE/add_new_api.yml
vzrenggamani marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Tambahkan API Baru
description: Saran penambahan API baru yang belum ada di database.
title: '[NEW API]: '
labels: ['new-api', 'triage']

body:
- type: input
id: nama-api
attributes:
label: Nama API
description: 'Nama API yang ingin ditambahkan'
placeholder: 'Peta Cuaca Indonesia BMKG'
validations:
required: true
- type: textarea
id: deskripsi
attributes:
label: Deskripsi API
description: Jelaskan API yang ingin kamu tambahkan
placeholder: Ceritakan di bawah ini
validations:
required: true
- type: dropdown
id: category-api
attributes:
label: Kategori API
description: 'Pilih kategori API yang sesuai'
options:
- 'Keagamaan / Rohani'
- 'Berita / Media'
- 'Buku / Literatur'
- 'Cuaca'
- 'E-Commerce'
- 'Finansial / Bank / Kripto'
- 'Hiburan / Entertainment / Sosial Media'
- 'Jasa Pengiriman'
- 'Kesehatan'
- 'Lokasi / Maps'
- 'Pemerintahan / Government'
- 'Pendidikan'
- 'Umum / Utilitas'
- 'Lainnya'
- type: input
id: api-endpoint
attributes:
label: Titik Akhir API
description: 'Titik akhir dari API yang ingin ditambahkan'
placeholder: 'https://data.bmkg.go.id/cuaca/peta.json'
validations:
required: true
- type: input
id: api-developer
attributes:
label: Developer API
description: 'Nama pengembang API'
placeholder: 'Badan Meteorologi, Klimatologi, dan Geofisika (BMKG)'
validations:
required: true
- type: input
id: api-documentation
attributes:
label: Dokumentasi API
description: 'Link ke dokumentasi API'
placeholder: 'https://data.bmkg.go.id/cuaca/peta.json'
validations:
required: true
- type: checkboxes
id: kategori
attributes:
label: Kategori API
description: 'Pilih kategori API yang sesuai'
options:
- label: 'No Auth'
- label: 'Authentication Required'
- label: 'Official API'
- label: 'Registration Required'
- label: 'Government API'
- label: 'Third Party Services'
- label: 'Open Data'
- label: 'Dataset'
- label: 'Deprecated'
- label: 'Scraping'
- label: 'Proxy'
- label: 'Self Host'
- label: 'Tools'
- label: 'Others'
- label: 'Paid API'


24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/tambah_api.md

This file was deleted.

44 changes: 38 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE/tambah_api.md
vzrenggamani marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,48 @@ labels: api-baru

**Nama API**:
**Pengembang**:
**Tautan Profil Pengembang**:
**Tautan Dokumentasi**:
**Status**:
**Deskripsi**:
**Autentikasi**:

### Penjelasan API
## Kategori

Jelaskan secara singkat tentang bagaimana API anda bekerja dan apa saja yang harus dilakukan oleh peserta.
Silahkan pilih karakteristik yang sesuai dengan API yang Anda tambahkan.

- [ ] Keagamaan / Rohani
- [ ] Berita / Media
- [ ] Buku / Literatur
- [ ] Cuaca
- [ ] E-Commerce
- [ ] Finansial / Bank / Kripto
- [ ] Hiburan / Entertainment / Sosial Media
- [ ] Jasa Pengiriman
- [ ] Kesehatan
- [ ] Lokasi / Maps
- [ ] Pemerintahan / Government
- [ ] Pendidikan
- [ ] Umum / Utilitas
- [ ] Lainnya

## Tambahan

Silahkan pilih karakteristik yang sesuai dengan API yang Anda tambahkan.

- [ ] No Auth
- [ ] Authentication Required
- [ ] Official API
- [ ] Registration Required
- [ ] Government API
- [ ] Third Party Services
- [ ] Open Data
- [ ] Dataset
- [ ] Deprecated
- [ ] Scraping
- [ ] Proxy
- [ ] Self Host
- [ ] Tools
- [ ] Others
- [ ] Paid API

---

Dengan mengajukan pull request atau issue pada repositori ini, saya menyatakan bahwa tautan RESTful API yang saya sertakan tidak akan mengandung konten NSFW (Not Safe for Work).
Dengan mengajukan pull request pada repositori ini, saya menyatakan bahwa API yang saya tambahkan adalah API yang legal dan tidak melanggar hak cipta. Saya juga menyatakan bahwa API yang saya tambahkan tidak melanggar hukum dan tidak melanggar privasi pengguna.
vzrenggamani marked this conversation as resolved.
Show resolved Hide resolved
27 changes: 27 additions & 0 deletions .github/workflows/review-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Label and Assign Reviewer

on:
issues:
types: [opened]

jobs:
label_and_assign:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Add labels to the issue
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: 'needs-triage'
issue_number: ${{ github.event.issue.number }}

- name: Assign a reviewer
uses: kentaro-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignees: 'vzrenggamani'
vzrenggamani marked this conversation as resolved.
Show resolved Hide resolved
issue_number: ${{ github.event.issue.number }}
Loading