From b3e0c936782323dcae9590f752792655359122d9 Mon Sep 17 00:00:00 2001 From: D V <77478658+DarhkVoyd@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:58:11 +0530 Subject: [PATCH] [.github]: update github templates and workflows (#67) --- .github/ISSUE_TEMPLATE/bug_report.yml | 6 +-- .github/ISSUE_TEMPLATE/docs.yml | 4 +- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- .github/pull_request_template.md | 21 ++++------ .github/workflows/build-web-ext.yml | 41 +++++++++++++++++++ ...nd-deploy-to-pages.yml => deploy-docs.yml} | 2 +- 6 files changed, 57 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/build-web-ext.yml rename .github/workflows/{build-and-deploy-to-pages.yml => deploy-docs.yml} (98%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 41f4bdf..b5f3cb4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -8,7 +8,7 @@ body: value: | Thank you for reporting a bug! Please fill out the details below so we can help resolve the issue quickly. - - type: input + - type: textarea id: description attributes: label: Description @@ -26,14 +26,14 @@ body: 3. Scroll down to '...' 4. See error - - type: input + - type: textarea id: expected_behavior attributes: label: Expected Behavior description: "Describe what you expected to happen." placeholder: "Expected outcome of the action." - - type: input + - type: textarea id: actual_behavior attributes: label: Actual Behavior diff --git a/.github/ISSUE_TEMPLATE/docs.yml b/.github/ISSUE_TEMPLATE/docs.yml index 87c8dab..f94a684 100644 --- a/.github/ISSUE_TEMPLATE/docs.yml +++ b/.github/ISSUE_TEMPLATE/docs.yml @@ -8,14 +8,14 @@ body: value: | Thanks for suggesting an update or addition to the documentation! Please fill out the details below. - - type: input + - type: textarea id: description attributes: label: Description description: "Describe the missing or unclear documentation." placeholder: "Explain the specific area or topic that requires documentation." - - type: input + - type: textarea id: reason_for_update attributes: label: Reason for Update diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index e916609..aaed6ae 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -8,7 +8,7 @@ body: value: | Thanks for suggesting a feature! Please provide the necessary details below to help us evaluate the request. - - type: input + - type: textarea id: description attributes: label: Feature Description diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 63c71a1..08564ba 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,30 +1,27 @@ -## Description +**What does this PR do?** - + -## Motivation +**Why is this change necessary?** - + -## Implementation Details +**How was this change implemented?** - + -## Screenshots / Visual Changes +**Screenshots / Visual Changes** -## Related Issues +**Related Issues** -## Additional Considerations +**Additional Considerations** diff --git a/.github/workflows/build-web-ext.yml b/.github/workflows/build-web-ext.yml new file mode 100644 index 0000000..dd11a19 --- /dev/null +++ b/.github/workflows/build-web-ext.yml @@ -0,0 +1,41 @@ +name: Build web-ext + +on: + push: + paths: + - "web-ext/**" + pull_request: + paths: + - "web-ext/**" + workflow_dispatch: + +jobs: + build_firefox: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + + - name: Install Dependencies + run: cd web-ext && bun install + + - name: Build for Firefox + run: cd web-ext && bun run build:firefox + + build_chrome: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + + - name: Install Dependencies + run: cd web-ext && bun install + + - name: Build for Firefox + run: cd web-ext && bun run build diff --git a/.github/workflows/build-and-deploy-to-pages.yml b/.github/workflows/deploy-docs.yml similarity index 98% rename from .github/workflows/build-and-deploy-to-pages.yml rename to .github/workflows/deploy-docs.yml index f130b58..b1952c7 100644 --- a/.github/workflows/build-and-deploy-to-pages.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,4 +1,4 @@ -name: Build and Deploy to Pages +name: Deploy Docs on: push: