summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-12-26 19:39:06 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-12-26 19:39:06 -0500
commitfa197fe27b8a03bbf4504476f842956ece2c76c9 (patch)
tree5a75b92e4c731a4b2ced68eadb9581a8c922d82e /.github
Import Upstream version 1.2upstream/1.2
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md29
-rw-r--r--.github/stale.yml20
-rw-r--r--.github/workflows/pypi-publish-release.yml56
3 files changed, 105 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..8a0d833
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,29 @@
+---
+name: Bug report
+about: Create a report to help us improve pkb_client
+title: ''
+labels: bug
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+Steps to reproduce the behavior.
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**pkb-client Command**
+Specify the exact command of pkb-client. **Make sure to anonymize your Porkbun API key and secret and your Porkbun domain/subdomain.**
+
+**Versions (please complete the following version information):**
+ - pkb_client: [you can use `pip show pkb_client` to get the version]
+
+**Error message**
+The returned error message.
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/stale.yml b/.github/stale.yml
new file mode 100644
index 0000000..55ff86b
--- /dev/null
+++ b/.github/stale.yml
@@ -0,0 +1,20 @@
+# Number of days of inactivity before an issue becomes stale
+daysUntilStale: 30
+# Number of days of inactivity before a stale issue is closed
+daysUntilClose: 14
+# Only issues or pull requests with all of these labels are check if stale
+onlyLabels:
+ - "needs info"
+# Issues with these labels will never be considered stale
+exemptLabels:
+ - pinned
+ - security
+# Label to use when marking an issue as stale
+staleLabel: stale
+# Comment to post when marking an issue as stale. Set to `false` to disable
+markComment: >
+ This issue has been automatically marked as stale because it has not had
+ recent activity. It will be closed if no further activity occurs. Thank you
+ for your contributions.
+# Limit to only `issues` or `pulls`
+only: issues
diff --git a/.github/workflows/pypi-publish-release.yml b/.github/workflows/pypi-publish-release.yml
new file mode 100644
index 0000000..2071faa
--- /dev/null
+++ b/.github/workflows/pypi-publish-release.yml
@@ -0,0 +1,56 @@
+name: Publish release distribution to PyPI
+
+on:
+ push:
+ tags:
+ - "v*"
+
+jobs:
+ build:
+ name: Build distribution
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+
+ - name: Set up Python 3.6
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.6
+
+ - name: Install pep517
+ run: >-
+ python -m
+ pip install
+ pep517
+ --user
+
+ - name: Build a binary wheel and a source tarball
+ run: >-
+ python -m
+ pep517.build
+ --source
+ --binary
+ --out-dir dist/
+ .
+
+ - name: Upload distribution artifact for other jobs
+ uses: actions/upload-artifact@v2
+ with:
+ name: pkb_client_dist
+ path: dist/
+
+ publish:
+ name: Publish distribution to PyPI
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - name: Download distribution from build job
+ uses: actions/download-artifact@v2
+ with:
+ name: pkb_client_dist
+ path: dist/
+
+ - name: Publish distribution to PyPI
+ uses: pypa/gh-action-pypi-publish@master
+ with:
+ password: ${{ secrets.pypi_api_key }}