-
-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (46 loc) · 2.19 KB
/
issues.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
name: Answer issues
on:
issues:
types:
- opened
jobs:
add-comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Check issue body
id: check_body
run: |
if echo "${{ github.event.issue.body }}" | grep -q "maps4fs.streamlit.app"; then
echo "close_issue=true" >> $GITHUB_ENV
else
echo "close_issue=false" >> $GITHUB_ENV
fi
- name: Close issue if condition met
if: env.close_issue == 'true'
run: gh issue close ${{ github.event.issue.number }} --comment "This issue is being closed automatically because it contains a question about the availability of the StreamLit community app. Please use the [Docker version](https://github.com/iwatkot/maps4fs?tab=readme-ov-file#option-2-docker-version) of the tool. Thank you!"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add comment
if: env.close_issue == 'false'
run: gh issue comment "${{ github.event.issue.number }}" --body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
Thank you for opening an issue!<br>
Please, first check the [FAQ](https://github.com/iwatkot/maps4fs/blob/main/docs/FAQ.md) to see if your question has already been answered.<br>
Note, that all issues regarding the availability of the StreamLit community app will be closed automatically. Please use the [Docker version](https://github.com/iwatkot/maps4fs?tab=readme-ov-file#option-2-docker-version) of the tool. Thank you!<br>
If you want to proceed with the issue, please provide the following information:<br>
- Coordinates of the cetral point of the map<br>
- Map size<br>
- Was auto preset enabled?<br>
- Any additional settings if where enabled<br>
- Error message if any<br>
- Screenshots if possible<br>
- Any additional information that you think might be useful<br>
Thank you!