Skip to content

Commit

Permalink
feat: add option to delay start of action by a specified time
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Mar 7, 2024
1 parent 2ef659e commit aaeded2
Show file tree
Hide file tree
Showing 15 changed files with 768 additions and 227 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ Action currently accepts the following options:
- uses: redhat-plumbers-in-action/devel-freezer@v1
with:
pr-number: <number>
delay: <seconds>
config-path: <path to config file>
token: <GitHub token or PAT>
Expand All @@ -183,6 +184,13 @@ Pull Request number.
* default value: `${{ github.event.number }}`
* requirements: `required`

### delay

Delay in seconds before the validation of the Pull Request starts. It might be useful to account for the time it takes to set labels and milestones on the Pull Request.

* default value: `0`
* requirements: `optional`

### config-path

Path to configuration file. Configuration file format is described in: [Policy section](#policy).
Expand Down
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ inputs:
required: true
default: ${{ github.event.number }}
description: Pull Request number
delay:
required: false
default: '0'
description: Delay in seconds before starting validation of Pull Request

config-path:
required: true
default: .github/development-freeze.yml
description: Path to configuration file

token:
required: true
description: GitHub token used to set issue labels
Expand Down
7 changes: 7 additions & 0 deletions dist/action.js

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

2 changes: 1 addition & 1 deletion dist/action.js.map

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

1 change: 1 addition & 0 deletions dist/delay.d.ts

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

8 changes: 8 additions & 0 deletions dist/delay.js

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

1 change: 1 addition & 0 deletions dist/delay.js.map

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

Loading

0 comments on commit aaeded2

Please sign in to comment.