You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,12 @@
1
1
# "Handle Stale Discussions" Action for Github Action
2
2
3
-
This Github action checks the **answerable discussions** in your repository for an answer with the keyword `@github-actions proposed-answer`. If a positive reaction (thumbsup, laughing, rocket, heart, hooray) is received on the proposed answer, the discussion is marked as answered and closed as resolved. Otherwise if a negative reaction (thumbsdown, confused) is added or a reply is received, a label (`attention` by default) is added so the discussion can gain attention from the repository maintainers. If there is no reaction or response to a proposed answer after 7 days by default, the discussion is closed as outdated.
3
+
This Github action checks the **answerable discussions** in your repository for an answer with the keyword `@github-actions proposed-answer`.
4
+
5
+
* If a positive reaction (thumbsup, laughing, rocket, heart, hooray) is received on the proposed answer, the discussion is marked as answered and closed as resolved.
6
+
7
+
* Otherwise if a negative reaction (thumbsdown, confused) is added or a reply is received, a label (`attention` by default) is added so the discussion can gain attention from the repository maintainers.
8
+
9
+
If there is no reaction or response to a proposed answer after 7 days by default, the discussion is closed as outdated.
4
10
5
11
If this workflow is configured to run when a discussion comment is created, then it will check if the newly created comment is a proposed answer. If it is, then an instructions response will be posted right away. This way, people can immediately know how to interact with the discussions bot. Please note, this is the only action that will occur on a new comment event trigger. Any other event which invokes this action will process all answerable discussions and comments in the repository.
@@ -86,7 +92,9 @@ Comment to post as a reply when a proposed answer is given
86
92
87
93
Default:
88
94
89
-
> Hello! A team member has marked the above comment as the likely answer to this discussion thread. If you agree, please upvote that comment, or click on `Mark as answer`. I will automatically mark the comment as the answer next time I check. If this answer doesn't help you, please downvote the answer instead and let us know why it wasn't helpful. I will add a label to this discussion to gain attention from the team.
95
+
> Hello! A team member has marked the above comment as the likely answer to this discussion thread.
96
+
* If you agree, please upvote that comment, or click on `Mark as answer`. I will automatically mark the comment as the answer next time I check.
97
+
* If this answer doesn't help you, please downvote the answer instead and let us know why it wasn't helpful. I will add a label to this discussion to gain attention from the team.
90
98
91
99
### stale-response-text
92
100
@@ -102,6 +110,18 @@ Close stale discussions as answered
102
110
103
111
Default: `false`. Stale discussions are closed as outdated.
104
112
113
+
### github-bot
114
+
115
+
Github action bot login name
116
+
117
+
Default: 'github-actions'. This login name will be used to check if the reply is posted by Github-actions bot.
118
+
119
+
### page-size
120
+
121
+
Page size count for the discussions nodes being loaded per page
122
+
123
+
Default: 50
124
+
105
125
## Contributing
106
126
We welcome community contributions and pull requests. See [CONTRIBUTING.md](https://github.com/aws-github-ops/handle-stale-discussions/blob/main/CONTRIBUTING.md) for information on how to submit code.
0 commit comments