- Removed GitHub Dependencies: Excised the unused newGithubClient and its associated dependencies (google/go-github and oauth2) from main.go and go.mod.
- Project Infrastructure Updates:
- Updated Dockerfile to use golang:1.25 for consistency with go.mod.
- Modified action.yaml to run from the local Dockerfile, ensuring that the Forgejo-specific logic is utilized.
- Validation: Verified all changes through a successful build and by running the full test suite, all of which passed.
* Adding the capability to create the approval issue in another repository
* reverting testing changes
* reverting test changes contd.
* Updating readme and removing a debug line
* Introduce a 'fail-on-denial' boolean (#147)
* Introduce a 'fail-on-approval' boolean
* Use test docker image
* oops
* change default and fix logic
* Update action.yaml
* Fix linting error
* Adding the capability to create the approval issue in another repository
* reverting testing changes
* reverting test changes contd.
* moving targetRepo inputs from env vars to action-args
* Update constants.go
* Update constants.go to resolve nuances created by inconsistent tab length settings
---------
Co-authored-by: Liz MacLean <18120837+lizziemac@users.noreply.github.com>
* Add new input 'issue-body'
Similar to the 'issue-title' input, 'issue-body' allows to put custom
text to the body of the approval issue.
* Update readme for 'issue-body' input
Prior to this change, the approvers could only be explicit users. With
this change, you can now specify an org team and this will be expanded
out with a user list for approvers.
Closes#14.
* Adding support for custom titles.
* Cleaning up blank lines in main.go
* Renaming approvalIssueTitle to IssueTitle in all relavent places.
* Fixing period in README
Co-authored-by: Thomas Stringer <thomas@trstringer.com>
* Remove period in action doc.
Co-authored-by: Thomas Stringer <thomas@trstringer.com>
Co-authored-by: Thomas Stringer <thomas@trstringer.com>
Prior to this PR, if there was a newline (or multiple newline
characters) at the end of the keyword then it wouldn't match. With this
fix any number of newlines at the end of the keyword match will now be
considered for approve or deny.
This PR adds a debug logging statement to stdout prior to creating the
issue. This will help troubleshoot issues, such as a GitHub API http/422
response status with invalid message.
* Allow approval of a worflow with a set number of approvals
* update action interface
* Added test for when not enough approvals have been registered and minimumApprovals is set
* Warning raised by invalid minimumApprovals value should be an error
* update new input name to use hyphens
* Input env variable does in fact contain hyphens