Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed May 15, 2021
1 parent 25c967c commit 49a7ee6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/changes-requested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
- uses: luanpotter/changes-requested@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
days-until-close: 0
dry-run: true
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
description: 'The message added by the bot on the closing comment on the issue.'
required: true
default: 'This issue was closed by the changes-requested bot due to inactivity.'
dry-run:
description: 'Set to true for testing, it will log but not actually close anything.'
required: true
default: false

runs:
using: 'node12'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function run(): Promise<void> {
const daysUntilClose = parseInt(core.getInput('days-until-close', {required: true}));
const triggerLabel = core.getInput('trigger-label', {required: true});
const closingComment = core.getInput('closing-comment', {required: true});
const dryRun = true;
const dryRun = core.getInput('dry-run', {required: true}) !== 'false';

const repository = github.context.payload.repository?.full_name;
if (!repository) {
Expand Down

0 comments on commit 49a7ee6

Please sign in to comment.