action.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. name: Issue moderator with commands
  2. description: Automatically close or lock issues based on commands.
  3. author: tachiyomiorg
  4. branding:
  5. icon: alert-circle
  6. color: red
  7. runs:
  8. using: node20
  9. main: dist/index.js
  10. inputs:
  11. repo-token:
  12. required: true
  13. description: GitHub token
  14. member-token:
  15. required: false
  16. description: Token with read access to organization members
  17. duplicate-label:
  18. required: false
  19. description: Label to add on duplicate command and auto duplicate check
  20. blurb-command:
  21. required: false
  22. default: Blurb
  23. description: Command to close an issue with a blurb posted as a comment
  24. delete-command:
  25. required: false
  26. default: Delete this issue
  27. description: Command to delete an issue
  28. edit-title-command:
  29. required: false
  30. default: Edit title to
  31. description: Command to edit the title of an issue
  32. lock-command:
  33. required: false
  34. default: Lock this issue
  35. description: Command to lock an issue
  36. duplicate-command:
  37. required: false
  38. default: 'Duplicate of #'
  39. description: Command to close a duplicate issue
  40. blurbs:
  41. required: false
  42. description: |
  43. A JSON-compliant string containing a list of blurbs, where a blurb consists of:
  44. {
  45. keywords: string[]; // Aliases for the blurb.
  46. message: string; // Message to post when closing the issue.
  47. }
  48. duplicate-check-enabled:
  49. required: false
  50. description: >
  51. Control if the action should search for duplicate URLs in opened issues.
  52. duplicate-check-labels:
  53. required: false
  54. description: >
  55. A JSON-compliant string containing a list of label names as strings.
  56. Required if `duplicate-check-enabled` is enabled.
  57. duplicate-check-comment:
  58. required: false
  59. description: >
  60. The body of the comment when an issue is detected to be a duplicate.
  61. default: |
  62. This issue was closed because it is a duplicate of {duplicateIssuesText}.
  63. *This is an automated action. If you think this is a mistake, please comment about it so the issue can be reopened if needed.*
  64. existing-check-enabled:
  65. required: false
  66. description: >
  67. Control if the action should search the extension repository for existing sources.
  68. existing-check-labels:
  69. required: false
  70. description: >
  71. A JSON-compliant string containing a list of label names as strings to check.
  72. Required if `existing-check-enabled` is enabled.
  73. existing-check-repo-url:
  74. required: false
  75. description: >
  76. The URL of the JSON extensions repository.
  77. Required if `existing-check-enabled` is enabled.
  78. default: https://raw.githubusercontent.com/tachiyomiorg/extensions/repo/index.min.json
  79. existing-check-comment:
  80. required: false
  81. description: >
  82. The body of the comment when an issue is detected to be of an existing source.
  83. default: |
  84. This issue was closed because an extension with the provided URL ({requestUrl}) already exists with the name of **{extensionName}**, under the **{extensionLang}** section.
  85. *This is an automated action. If you think this is a mistake, please comment about it so the issue can be reopened if needed.*
  86. auto-close-rules:
  87. required: false
  88. description: |
  89. A JSON-compliant string containing a list of rules, where a rule consists of:
  90. {
  91. type: 'title' | 'body' | 'both'; // Part to run regex against.
  92. regex: string; // Pattern which if matched closes the issue.
  93. closeIfMatch: boolean | undefined; // Whether to close if the regex is matched or not.
  94. ignoreCase: boolean | undefined; // Defines if the regex will be case insensitive.
  95. message: string; // Message to post when closing the issue.
  96. // You can use {match} as a placeholder to the first match.
  97. labels: string[] | undefined; // Labels to add when closing the issue.
  98. }
  99. auto-close-ignore-label:
  100. required: false
  101. description: Optional label name. If present, auto-close rule execution is skipped.