File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 7272 STDLIB_BOT_GITHUB_TOKEN : ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
7373 STDLIB_BOT_GPG_PRIVATE_KEY : ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
7474 STDLIB_BOT_GPG_PASSPHRASE : ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}
75+
76+ # Define a job for printing a list of available slash commands:
77+ help :
78+
79+ # Define a display name:
80+ name : ' Help'
81+
82+ # Define the type of virtual host machine:
83+ runs-on : ubuntu-latest
84+
85+
86+ # Define the conditions under which the job should run:
87+ if : github.event.issue.pull_request && startsWith(github.event.comment.body, '/stdlib help')
88+
89+ # Define the job's steps:
90+ steps :
91+ # Create a comment on the pull request informing the user of available slash commands:
92+ - name : ' Create a comment on the pull request informing the user of available slash commands'
93+ # Pin action to full length commit SHA
94+ uses : peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
95+ with :
96+ # Specify the issue or pull request number:
97+ issue-number : ${{ github.event.issue.number }}
98+
99+ # Specify the comment body:
100+ body : |
101+ @${{ github.event.comment.user.login }}, available slash commands include:
102+
103+ - `/stdlib check-files` - Check for required files.
104+ - `/stdlib update-copyright-years` - Update copyright header years.
105+ - `/stdlib lint-autofix` - Auto-fix lint errors.
106+
107+ # GitHub token:
108+ token : ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments