Commit graph

60 commits

Author SHA1 Message Date
marocchino
e39079643f
🔧 Update lint option 2025-04-11 06:51:34 +09:00
marocchino
0dbe58c83e
🔧 Update ts config 2025-04-09 21:56:19 +09:00
marocchino
cce8920b20
Migrate to biome 2025-04-09 21:26:34 +09:00
marocchino
e24be28b0d
update @octokit/graphql-schema 2025-04-09 20:50:46 +09:00
marocchino
182fb2a468
Fix failed tests 2024-07-23 07:44:12 +09:00
NoRePercussions
32226fa3a7
Always move ID comment to end of message (#1362)
Having the comment in the middle of a message causes issues with
Markdown rendering (#1362). Instead, remove all previous identifiers
and re-add the comment at the end of the message.

This change is backwards compatible and will automatically repair
messages generated by a previous version when they are updated.
2024-07-17 10:15:10 -04:00
Alex Burgel
e5439e773a
Add option to skip updating or recreating comments when message is unchanged 2023-08-14 12:51:55 -04:00
Alex Burgel
dadbe89de1 Add output of previous and created comment ids 2023-05-04 22:50:41 -04:00
Alex Burgel
17db3d5bd2
Add output definitions 2023-05-04 22:29:20 -04:00
marocchino
6be016636e
️ Rollback base_url option 2023-04-21 16:24:04 +09:00
marocchino
292f33e766
🔧 baseUrl config
The `baseUrl`, which could be taken as an input, is required to use a custom GitHub Enterprise URL, for example.
2023-04-21 11:32:07 +09:00
marocchino
0bd1af949c
owner option 2023-02-11 20:10:25 +09:00
marocchino
4b4f618262
only update option 2023-02-11 20:01:26 +09:00
WebFreak001
b2b0280464
apply suggestions 2023-02-09 18:42:37 +01:00
WebFreak001
7f05636c59
add setting to only create, but not update comment 2023-02-07 20:22:10 +01:00
marocchino
c4fe677969
🐛 Change ignore empty default 2022-11-23 08:38:59 +09:00
Sam
db01d1ad6c Add ignore empty input 2022-10-25 21:49:30 +00:00
Sam
1d46172340 Use glob for path param
This was done such that multiple files
can be loaded that match given glob
patterns. Existing behaviour is preserved
for exact match.
2022-10-25 01:09:35 +00:00
Federico
b17e5a4390
Checking for deleteOldComment before createComment and adding guard (#560)
* Checking for deleteOldComment before createComment and adding guard

* Update src/main.ts

Co-authored-by: August “Kai” Kaiser <85895815+awkaiser-tr@users.noreply.github.com>

* halted when deleteOldComment is true

* build dist files

Co-authored-by: August “Kai” Kaiser <85895815+awkaiser-tr@users.noreply.github.com>
2022-02-25 22:51:56 +09:00
marocchino
39c5b5dc77
minimize comment (#472)
*  minimize comment

*  hide, hide_and_recreate, hide_classify option

*  update config test
2021-10-21 02:20:24 +09:00
marocchino
3c38ed8cd4
🐛 fix find issue 2021-10-21 01:20:15 +09:00
marocchino
a57b4690ec
🔊 use warning 2021-10-21 01:10:50 +09:00
marocchino
a59ab1c422
🔊 logging debug info 2021-10-21 01:01:10 +09:00
marocchino
1a8e0448ba
🐛♻️ paging support & use graphql (#471)
* 🐛♻️ paging support & use graphql

* 🚀 build

* 🚨 ignore eslint
2021-10-20 22:19:58 +09:00
marocchino
21a90c1106
Hide details (#435)
*  hide details

* 📦 build

* 👷 ci for hide_details option
2021-09-29 03:15:07 +09:00
marocchino
e9edc3c104
🚨 import order 2021-09-01 02:50:18 +09:00
dependabot[bot]
136dcf90b9
build(deps-dev): Bump typescript from 4.3.5 to 4.4.2 (#401)
* build(deps-dev): Bump typescript from 4.3.5 to 4.4.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* ♻️ guard error object

https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/#use-unknown-catch-variables

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: marocchino <marocchino@users.noreply.github.com>
2021-08-31 03:44:02 +09:00
Rob Cowsill
65b0a353cc
Fix: Ignore other users' comments (#332)
Make findPreviousComment only return comments made by the current user
(usually github-actions[bot])
2021-06-15 03:25:28 +09:00
marocchino
6ee941ecc7
style: 💄 lint error 2021-05-31 15:32:58 +09:00
dependabot[bot]
7874cc39cf
build(deps): bump @actions/github from 4.0.0 to 5.0.0 (#305)
* build(deps): bump @actions/github from 4.0.0 to 5.0.0

Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

Signed-off-by: dependabot[bot] <support@github.com>

* fix: Update @action/github 5

* build: new deps & rest fix

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: marocchino <marocchino@users.noreply.github.com>
2021-05-30 10:50:41 +09:00
marocchino
21998583f4
build: Rebuild with new deps 2021-05-30 10:31:00 +09:00
marocchino
51f328e21a
Use getBooleanInput
ref #216 for details
2021-05-26 05:41:35 +09:00
marocchino
322a2451da
refactor: several improvements (#262)
- more tests
- file read in config
- reduce if depth
- reduce unnecessary requests
2021-03-27 12:13:51 +09:00
marocchino
56ac27318d
refactor: extract config (#257)
* refactor: extract config

* test: mock dynamic value
2021-03-22 09:39:18 +09:00
marocchino
831680f812
dist with new generator 2021-02-25 16:22:36 +09:00
marocchino
74499a97b3
lint 2021-02-25 14:50:07 +09:00
Adrian Young
26fcd4ab88
Add ability to reference other repos 2021-02-24 13:23:19 +00:00
marocchino
acc9cee2ce
Fix unexpected delete fail 2021-01-22 02:29:12 +09:00
marocchino
20a3e8289a
update code with @action/github 4 2021-01-21 07:43:05 +09:00
Mike Barry
81f6eb258e fix boolean handling 2020-12-22 20:34:14 -05:00
Sebass van Boxel
f6651c5728
Convert buffer to string 2020-11-06 09:38:38 +01:00
Sebass van Boxel
2350aa6ad6
Don't make api call when body is empty 2020-11-04 22:20:58 +01:00
Sebass van Boxel
d830f732b0 Don't allow empty comment body 2020-10-30 19:27:23 +00:00
Sebass van Boxel
c116c20c11
Add support for deleting previously created comments 2020-10-11 19:29:41 +02:00
marocchino
8cea69fb3f
Merge branch 'master' into replace-option 2020-06-25 14:51:01 +09:00
Jake Hiller
7a2cc8a3dc simplify comment logic 2020-06-25 01:26:22 -04:00
Jake Hiller
1ee5fc7fa0 update hidden identifier comment to come last instead of first 2020-06-25 01:26:22 -04:00
Jake Hiller
1ec19bd242 rename option to recreate 2020-06-24 09:33:22 -04:00
Jake Hiller
eb64714cc1 cleanup previousBody variable creation 2020-06-23 11:58:52 -04:00
Jake Hiller
2f6d0e21be add option to delete the previous comment and create a new one 2020-06-23 11:45:02 -04:00