From 892f426128cc8f3197a7670de32dd62dc9e4bf9d Mon Sep 17 00:00:00 2001 From: UsamaSadiq Date: Tue, 30 May 2023 17:12:17 +0500 Subject: [PATCH 1/2] build: update bulk issue creator workflow --- .github/workflows/bulk-issue-creator.yml | 25 +++++++++++------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/bulk-issue-creator.yml b/.github/workflows/bulk-issue-creator.yml index 3568cf8..035d353 100644 --- a/.github/workflows/bulk-issue-creator.yml +++ b/.github/workflows/bulk-issue-creator.yml @@ -14,6 +14,14 @@ on: description: "Issue body message" type: string default: "" + issue_assignee: + description: "Assignee for all the issues (should've write access to the repo)" + type: string + default: "usamasadiq" + issue_label: + description: "Label to identify the created issues" + type: string + default: "Django 4.2 Upgrade" jobs: repos_list: @@ -42,21 +50,10 @@ jobs: - name: Create issue uses: imjohnbo/issue-bot@v3 with: - assignees: "usamasadiq" - labels: "Django 4.2 Upgrade" + assignees: "${{ github.event.inputs.issue_assignee }}" + labels: "${{ github.event.inputs.issue_label }}" title: "[${{ matrix.repos }}]: ${{github.event.inputs.issue_title}}" - body: | - ## Description - Follow and Complete all of the following steps for the issue to be marked as done. - - - [ ] Update tox & Github action workflow using modernisers to add support for Django 4.2 - - [ ] Remove any versions of Python earlier than 3.8 from tox.ini, .travis.yml, and GitHub Actions workflows. - - [ ] Update the trove classifiers in setup.py, setup.cfg or pyproject.toml files. - - [ ] Run and verify all tests are passing in the CI for Django 4.2 - - [ ] Run available code-mods to fix the failing tests - - [ ] Add CHANGELOG entry with description "Support added for Django 4.2" - - [ ] Bump the package version and release a new version on GitHub & PyPI (whichever is applicable) - - [ ] Update the repo support field in the Dependency Upgrade Sheet. + body: "${{ github.event.inputs.issue_body }}" env: GITHUB_TOKEN: ${{ secrets.requirements_bot_github_token }} From 15489202e22117403919de68cf512694029d6fc2 Mon Sep 17 00:00:00 2001 From: UsamaSadiq Date: Tue, 30 May 2023 17:49:25 +0500 Subject: [PATCH 2/2] build: update bulk issue creator workflow --- .github/workflows/bulk-issue-creator.yml | 27 ++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bulk-issue-creator.yml b/.github/workflows/bulk-issue-creator.yml index 035d353..58aed82 100644 --- a/.github/workflows/bulk-issue-creator.yml +++ b/.github/workflows/bulk-issue-creator.yml @@ -1,3 +1,11 @@ +# GitHub Workflow only has string type input field available as an argument +# so it is not possible to pass the issue_body as parameter +# In case a different issue body is required than the one hard coded, then +# Update the workflow with the updated issue body description, then +# 1. either merge the workflow and then trigger the workflow +# 2. or use the changed branch when triggering the action instead of main branch + + name: Bulk Issue Creater on: workflow_dispatch: @@ -10,12 +18,8 @@ on: description: "Issue title (Repo name will be appended before this title)" type: string required: true - issue_body: - description: "Issue body message" - type: string - default: "" issue_assignee: - description: "Assignee for all the issues (should've write access to the repo)" + description: "Assignee for all the created issues (should've write access to the repo)" type: string default: "usamasadiq" issue_label: @@ -53,7 +57,18 @@ jobs: assignees: "${{ github.event.inputs.issue_assignee }}" labels: "${{ github.event.inputs.issue_label }}" title: "[${{ matrix.repos }}]: ${{github.event.inputs.issue_title}}" - body: "${{ github.event.inputs.issue_body }}" + body: | + ## Description + Follow and Complete all of the following steps for the issue to be marked as done. + + - [ ] Update tox & Github action workflow using modernisers to add support for Django 4.2 + - [ ] Remove any versions of Python earlier than 3.8 from tox.ini, .travis.yml, and GitHub Actions workflows. + - [ ] Update the trove classifiers in setup.py, setup.cfg or pyproject.toml files. + - [ ] Run and verify all tests are passing in the CI for Django 4.2 + - [ ] Run available code-mods to fix the failing tests + - [ ] Add CHANGELOG entry with description “Support added for Django 4.2” + - [ ] Bump the package version and release a new version on GitHub & PyPI (whichever is applicable) + - [ ] Update the repo support field in the Dependency Upgrade Sheet. env: GITHUB_TOKEN: ${{ secrets.requirements_bot_github_token }}