From 8cddaf9cb1c9108c70e10297ca5a25306631a55f Mon Sep 17 00:00:00 2001 From: Iris Booker <116098160+ibooker@users.noreply.github.com> Date: Tue, 6 May 2025 17:08:49 -0500 Subject: [PATCH 1/4] remove old issue template with forms --- .github/ISSUE_TEMPLATE.md | 8 ---- .github/ISSUE_TEMPLATE/bug_report_form.yml | 48 +++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .../ISSUE_TEMPLATE/feature_request_form.yml | 30 ++++++++++++ 4 files changed, 79 insertions(+), 8 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report_form.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request_form.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 753cb48..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,8 +0,0 @@ -### General information - -- Library version: -- Browser and OS: - -### Issue description - - diff --git a/.github/ISSUE_TEMPLATE/bug_report_form.yml b/.github/ISSUE_TEMPLATE/bug_report_form.yml new file mode 100644 index 0000000..e194a11 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report_form.yml @@ -0,0 +1,48 @@ +name: Bug Report +description: File a bug report. +title: "[Bug]: " +labels: ["bug", "triage"] +projects: [] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: textarea + id: what-happened + attributes: + label: What happened? + description: Detail the bad behavior and the steps required to duplicate it + placeholder: Tell us what you see! + value: "A bug happened!" + validations: + required: true + - type: textarea + id: expected-behavior + attributes: + label: What did you expect to happen? + description: What did you expect to happen when performing the action? + placeholder: Expected behavior + value: "Expected behavior" + validations: + required: true + - type: input + id: version + attributes: + label: Version + description: What version of this library are you running? + placeholder: "v0.0.0" + value: + validations: + required: true + - type: textarea + id: browsers + attributes: + label: What browsers are you seeing the problem on? + description: | + List browsers where you see the problem reported. For example: + * Mac OS 15.3.5, Chrome 130.0.1234.987 + * Android 14, Firefox 133.0 + * iPadOS 17.1, Safari + placeholder: 'For each browser specify 1) operating system and version 2) browser name and version' + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request_form.yml b/.github/ISSUE_TEMPLATE/feature_request_form.yml new file mode 100644 index 0000000..ec9837c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request_form.yml @@ -0,0 +1,30 @@ +name: Feature Request +description: Request a new feature. +title: "[FR]: " +labels: ["feature", "request", "enhancement", "triage"] +projects: [] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this feature request! + - type: textarea + id: feat-summary + attributes: + label: Feature Summary + description: In a few sentences or less, provide a concise description of the feature being requested. + placeholder: 'New feature that does ___; it can be used when ...' + validations: + required: true + - type: textarea + id: detailed-description + attributes: + label: Detailed description of new feature. + description: | + Please provide a detailed description of proposed feature. + - What problem would this new feature solve? + - How will this change affect users? + - Is it a modification to existing functionality? Are you requesting a new/modified function input or output? Please provide an example of what the change might look like? + placeholder: 'New feature details.' + validations: + required: true From a6c3a7931c0e6bdaa9e482b5e07d9ad7526b767a Mon Sep 17 00:00:00 2001 From: Iris Booker <116098160+ibooker@users.noreply.github.com> Date: Wed, 7 May 2025 11:46:46 -0500 Subject: [PATCH 2/4] remove gh pages generation gh action code --- .github/workflows/publish-gh-pages.yml | 56 -------------------------- .github/workflows/publish.yml | 4 +- 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 .github/workflows/publish-gh-pages.yml diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml deleted file mode 100644 index dc9dcc3..0000000 --- a/.github/workflows/publish-gh-pages.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Publish to gh pages -on: - workflow_dispatch: - workflow_call: - -env: - NPM_REGISTRY: https://registry.npmjs.org/ - -jobs: - publish-gh-pages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - - - name: Configure Github Credentials - run: | - git config user.name 'github-actions[bot]' - git config user.email 'github-actions[bot]@users.noreply.github.com' - - - name: Pull latest - run: | - git checkout main - git pull - - - run: npm ci - - - name: Get version - run: echo "latest_version=$(npm pkg get version --workspaces=false | tr -d \")" >> $GITHUB_ENV - - - name: Build app - run: | - npm run build - npm run build:app - - - name: Copy page index - run: cp test/support/index.html dist-app/ - - - name: Checkout gh-pages - run: | - git fetch origin gh-pages - git checkout gh-pages - - - name: Add page to current directory - run: mv dist-app/* . - - - name: Stage page for commit - run: git add restricted-input.js index.html - - - name: Commit page - run: git commit -m "Update demo page for restricted-input v${{ env.latest_version }}" - - - name: Push changes - run: git push diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 120c549..0acfd36 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,6 +48,4 @@ jobs: publish-release: needs: publish-npm uses: ./.github/workflows/release-notes.yml - publish-gh-pages: - needs: publish-npm - uses: ./.github/workflows/publish-gh-pages.yml + From 87e4647c808b1e784a00b82941a018adba302471 Mon Sep 17 00:00:00 2001 From: Iris Booker <116098160+ibooker@users.noreply.github.com> Date: Wed, 7 May 2025 11:49:02 -0500 Subject: [PATCH 3/4] replace prettier call with eslint --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cb193a..1a4b9b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,5 +22,5 @@ jobs: with: node-version-file: .nvmrc - run: npm ci - - run: npx prettier --check . + - run: npx eslint --ext .js,.ts src test - run: npm test From 0599ffd7c6778075887b04afb0194dc11bf54050 Mon Sep 17 00:00:00 2001 From: Iris Booker <116098160+ibooker@users.noreply.github.com> Date: Wed, 7 May 2025 16:10:57 -0500 Subject: [PATCH 4/4] Revert "remove gh pages generation gh action code" This reverts commit a6c3a7931c0e6bdaa9e482b5e07d9ad7526b767a. --- .github/workflows/publish-gh-pages.yml | 56 ++++++++++++++++++++++++++ .github/workflows/publish.yml | 4 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-gh-pages.yml diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml new file mode 100644 index 0000000..dc9dcc3 --- /dev/null +++ b/.github/workflows/publish-gh-pages.yml @@ -0,0 +1,56 @@ +name: Publish to gh pages +on: + workflow_dispatch: + workflow_call: + +env: + NPM_REGISTRY: https://registry.npmjs.org/ + +jobs: + publish-gh-pages: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + + - name: Configure Github Credentials + run: | + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + + - name: Pull latest + run: | + git checkout main + git pull + + - run: npm ci + + - name: Get version + run: echo "latest_version=$(npm pkg get version --workspaces=false | tr -d \")" >> $GITHUB_ENV + + - name: Build app + run: | + npm run build + npm run build:app + + - name: Copy page index + run: cp test/support/index.html dist-app/ + + - name: Checkout gh-pages + run: | + git fetch origin gh-pages + git checkout gh-pages + + - name: Add page to current directory + run: mv dist-app/* . + + - name: Stage page for commit + run: git add restricted-input.js index.html + + - name: Commit page + run: git commit -m "Update demo page for restricted-input v${{ env.latest_version }}" + + - name: Push changes + run: git push diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0acfd36..120c549 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,4 +48,6 @@ jobs: publish-release: needs: publish-npm uses: ./.github/workflows/release-notes.yml - + publish-gh-pages: + needs: publish-npm + uses: ./.github/workflows/publish-gh-pages.yml