Skip to content

Commit 2401e13

Browse files
author
Kartik Raj
authored
Add an automation to close issue with response if Python 2.7 was selected (#21003)
For #21002
1 parent d036567 commit 2401e13

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
issues:
3+
types: [opened]
4+
5+
jobs:
6+
python27-issue-response:
7+
runs-on: ubuntu-latest
8+
if: "contains(github.event.issue.body, 'Python version (& distribution if applicable, e.g. Anaconda): 2.7')"
9+
steps:
10+
- name: Check for Python 2.7 string
11+
run: |
12+
response="We're sorry, but we no longer support Python 2.7. If you need to work with Python 2.7, you will have to pin to 2022.2.* version of the extension, which was the last version that had the debugger (debugpy) with support for python 2.7, and was tested with `2.7`. Thank you for your understanding! \n ![https://user-images.githubusercontent.com/51720070/80000627-39dacc00-8472-11ea-9755-ac7ba0acbb70.gif](https://user-images.githubusercontent.com/51720070/80000627-39dacc00-8472-11ea-9755-ac7ba0acbb70.gif)"
13+
gh issue comment ${{ github.event.issue.number }} --body "$response"
14+
gh issue close ${{ github.event.issue.number }}

0 commit comments

Comments
 (0)