-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (70 loc) · 2.9 KB
/
bulk-issue-creator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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:
inputs:
repos_list:
description: "List of repositories in the format 'x', 'y', 'z'..."
type: string
required: true
issue_title:
description: "Issue title (Repo name will be appended before this title)"
type: string
required: true
issue_assignee:
description: "Assignee for all the created 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:
name: Parse repos list
runs-on: ubuntu-20.04
outputs:
output1: ${{ steps.repos_list.outputs.list }}
steps:
- name: get repos list
id: repos_list
run: |
echo "list=[${{github.event.inputs.repos_list}}]" >> $GITHUB_OUTPUT
check_list:
name: console list
run: echo steps.repos_list.outputs.output1
create_bulk_issues:
name: Create Bulk Issues
runs-on: ubuntu-20.04
needs: [ repos_list ]
permissions:
issues: write
strategy:
fail-fast: false
matrix:
repos: ${{fromJson(needs.repos_list.outputs.output1)}}
steps:
- name: Create issue
uses: imjohnbo/issue-bot@v3
with:
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.
env:
GITHUB_TOKEN: ${{ secrets.requirements_bot_github_token }}