@@ -15,73 +15,15 @@ permissions:
1515jobs :
1616 issueLabeled :
1717 permissions :
18- issues : write # for peter-evans/create-or-update-comment to create or update comment
19- pull-requests : write # for peter-evans/create-or-update-comment to create or update comment
18+ issues : write # for gh issue comment
2019 runs-on : ubuntu-slim
2120 steps :
22- - name : Add backlog comment
23- uses : peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
24- if : ${{ github.event.label.name == 'backlog' }}
21+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2522 with :
26- token : ${{ secrets.GITHUB_TOKEN }}
27- issue-number : ${{ github.event.issue.number }}
28- body : >
29- This issue has been added to the backlog. It is not scheduled
30- on the Weblate roadmap, but it eventually might be implemented.
31-
32-
33- In case you need this feature soon, please consider helping
34- or push it by [funding the development](https://weblate.org/support/).
35- - name : Add undecided comment
36- uses : peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
37- if : ${{ github.event.label.name == 'undecided' }}
38- with :
39- token : ${{ secrets.GITHUB_TOKEN }}
40- issue-number : ${{ github.event.issue.number }}
41- body : >
42- This issue has been put aside. It is currently unclear if it will
43- ever be implemented as it seems to cover too narrow of a use case
44- or doesn't seem to fit into Weblate.
45-
46-
47- Please try to clarify the use case or consider proposing something more generic to make it useful to more users.
48- - name : Add question comment
49- uses : peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
50- if : ${{ github.event.label.name == 'question' }}
51- with :
52- token : ${{ secrets.GITHUB_TOKEN }}
53- issue-number : ${{ github.event.issue.number }}
54- body : >
55- This issue has been marked as a question by a Weblate team member.
56- Why? Because it belongs more to the professional [Weblate Care](https://care.weblate.org/)
57- or community [Discussions](https://github.com/WeblateOrg/weblate/discussions) than here.
58- We strive to answer these reasonably fast here, too, but
59- [purchasing the support subscription](https://weblate.org/support/)
60- is more responsible and faster for your business.
61- And it makes Weblate stronger as well. Thanks!
62-
63-
64- In case your question is already answered, [making a donation](https://weblate.org/donate/) is the right way to say thank you!
65- - name : Add translate-toolkit comment
66- uses : peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
67- if : ${{ github.event.label.name == 'translate-toolkit' }}
68- with :
69- token : ${{ secrets.GITHUB_TOKEN }}
70- issue-number : ${{ github.event.issue.number }}
71- body : >
72- The issue you've reported needs to be addressed in the [translate-toolkit](https://github.com/translate/translate/).
73- Please file the issue there, and include links to any relevant specifications about the formats (if applicable).
23+ persist-credentials : false
7424 - name : Add good first issue comment
75- uses : peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
7625 if : ${{ github.event.label.name == 'good first issue' }}
77- with :
78- token : ${{ secrets.GITHUB_TOKEN }}
79- issue-number : ${{ github.event.issue.number }}
80- body : >
81- This issue seems to be a good fit for newbie contributors.
82- You are welcome to contribute to Weblate! Don't hesitate to
83- ask any questions you would have while implementing this.
84-
85-
86- You can learn about how to get started in our
87- [contributors documentation](https://docs.weblate.org/en/latest/contributing/index.html).
26+ env :
27+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ ISSUE_NUMBER : ${{ github.event.issue.number }}
29+ run : gh issue comment "$ISSUE_NUMBER" --body-file .github/comments/issue-newbie.md
0 commit comments