Releases: Ash258/Scoop-GithubActions
Comments polish
0.9.2 Minor code fixes
First marketplace release
- Fixed autoupdate hash extraction test result identification
- Small refactor PR action
Strip scoop rename from URL as it cause trouble
Major bug #48 fix
Github actions workflow change
Github have changed from on.schedules
to on.schedule
which led to failing build.
Excavator problem with protected branches is now clarified and could be potentionally "hacked", but not in near future.
Rewrite whole codebase into modules
Major step into better code was made and whole codebase is now fully refactored into own modules.
Also $ErrorActionPreference
was set to Stop
which will not post unwanted comments / labels on issues.
PR context finished
Pull request actions are now properly handled and all possible use cases are covered.
Bug when PR is opened from forked repository is opened needs to be investigated.
Pull requests action context fix
Fix problem with forked repositories context and errors
Minor tweaks
- Bucket without nested
bucket
folder is not supported (#31) - Handle
IssueAction@hash
better (#10) - Issue actions are not executed when loaded manifest version does not match reported version (#37)
- Failed hash extraction is now tested in PR Actions (#36)
👀 Almost there
Known bug: Pull requrest actions have different context. Will be fixed in next release
Automatic resolving of args
Now there is no need to pass args in each action block.
Full workflow file:
workflow "Issues" {
on = "issues"
resolves = ["IssueHandler"]
}
workflow "Pull requests" {
on = "pull_request"
resolves = ["PullRequestHandler"]
}
workflow "Pull requests comment" {
on = "issue_comment"
resolves = ["PullRequestHandler"]
}
workflow "Excavator" {
on = "schedule(0 * * * *)" # Run auto-pr every hour, See: https://developer.github.com/actions/managing-workflows/creating-and-cancelling-a-workflow/#scheduling-a-workflow
resolves = ["Excavate"]
}
action "IssueHandler" {
uses = "Ash258/Scoop-GithubActions@stable"
secrets = ["GITHUB_TOKEN"]
env = {
"GITH_EMAIL" = "youremail@email.com" # Email is needed for pushing to repository within action container
}
}
action "PullRequestHandler" {
uses = "Ash258/Scoop-GithubActions@stable"
secrets = ["GITHUB_TOKEN"]
env = {
"GITH_EMAIL" = "youremail@email.com"
}
}
action "Excavate" {
uses = "Ash258/Scoop-GithubActions@stable"
secrets = ["GITHUB_TOKEN"]
env = {
"SPECIAL_SNOWFLAKES" = "curl,brotli,jx" # Optional parameter
"SKIP_UPDATED" = "1" # Optional parameter, Could be anything as value
"GITH_EMAIL" = "youremail@email.com"
}
}
Pull requests on comment
Pull requests action is now fully covered and working with all edge cases I could think off.
Action will be triggered on comment (/verify
) and when PR is created
Check Ash258/GithubActionsBucketForTesting#66 how it works
workflow "Pull requests" {
resolves = ["PullRequestHandler"]
on = "pull_request"
}
workflow "Pull requests comment" {
resolves = ["PullRequestHandler"]
on = "issue_comment"
}
action "PullRequestHandler" {
uses = "Ash258/Scoop-GithubActions@stable"
args = "PR"
env = {
"GITH_EMAIL" = "youremail@email.com"
}
secrets = ["GITHUB_TOKEN"]
}