Commit graph

23 commits

Author SHA1 Message Date
Mateus Caruccio
c10ec77612
Feature: Save output (#132) 2025-03-07 01:46:54 -05:00
Sanskar Arora
40f0592f18
Merge pull request #150 from lizziemac/feat/remove-extra-title-text
Remove default title if custom title is provided
2025-03-04 21:46:27 +05:30
Bailey Everts
77d7e0184d
feat: dispaly users as a list (#138) 2025-02-23 11:36:20 -05:00
Bailey Everts
846a0ce970
feat: use blocks for issue-body (#137) 2025-02-22 13:53:00 -05:00
Sanskar Arora
c17f1c63ff
Adding the capability to create the approval issue in the another repository (#142)
* 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>
2025-02-22 13:50:00 -05:00
Liz MacLean
17c84dd688 Remove default title if custom title is provided 2025-02-17 15:12:35 -05:00
Liz MacLean
aba06e32f1
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
2025-02-14 20:23:48 -05:00
Florian Kaiser
d2e412d840
Fix issue URL in job log (#112) 2024-06-19 17:22:23 -04:00
Yucel Okcu
287b77b470
fix: use correct base URL if not enterprise (#125) 2024-06-19 17:20:51 -04:00
Augusto Melo
dd1555b1d1
fix(#75): display corect base URL if using GHE (#90)
It was displaying the GH URL even though the GHE was configured, using the client.baseURL will correctly display a
correct value.

https://pkg.go.dev/github.com/google/go-github/v50/github#Client
2023-04-23 11:02:50 -04:00
Brandon Ward
639442a9fa
Feature: Allow Custom Approval or Denial Words (#66)
* Add support for custom approval and denial words

* Work out some regex nuances with GitHub
2023-02-16 20:20:43 -05:00
Daniel Gonzalez
948dfe9537
Add new input 'issue-body' (#74)
* 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
2023-01-20 07:13:43 -05:00
Thomas Stringer
a28646d113
Add the issue link to the action output (#64)
Signed-off-by: Thomas Stringer <thomas@trstringer.com>
2022-11-14 19:27:43 -05:00
Thomas Stringer
78b4c148f1
Add ability to specify a team as an approver (#32)
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.
2022-07-14 22:11:38 -04:00
Thomas Stringer
14ea447010
Fix newline for denied (#22)
This was originally fixed for approved in #12 but the denied case was
missing. This adds a failing test and the fix for it.
2022-06-29 20:54:06 -04:00
Dameon Smith
3ecbcf2753
Adding support for custom titles. (#18)
* 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>
2022-06-09 09:09:09 -04:00
Thomas Stringer
75c263a9f8
Fix bug with not accepting newlines (#12)
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.
2022-05-25 19:47:51 -04:00
Thomas Stringer
c4d4c8098f
Add newline to debug logging statement (#11)
There was a missing newline in the log. This commit adds the newline so
that there is the proper line breaks.
2022-05-24 20:39:08 -04:00
Thomas Stringer
1fd10e9380
Add debug statement for issue create (#9)
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.
2022-05-24 19:46:25 -04:00
Edmund Dipple
4d12fc4297
Set minimum approvals (#1)
* 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
2022-04-05 09:05:47 -04:00
Thomas Stringer
25c308dc56 fix formatting of issue text 2022-03-26 10:16:23 -04:00
Thomas Stringer
a55d8b93fb add flexible accepted keywords 2022-03-26 09:39:58 -04:00
Thomas Stringer
80c1360591 initial commit 2022-03-24 20:41:13 -04:00