diff options
author | 2023-11-09 14:17:34 +0300 | |
---|---|---|
committer | 2023-11-09 19:17:34 +0800 | |
commit | c325ba2031bd10746a854fa0607269b48855ed35 (patch) | |
tree | 369b1a883dda255db90e954fd60f7d184a004332 /source/features/use-first-commit-message-for-new-prs.tsx | |
parent | 4bf9306fd02592ab851cd1a5d85b900817ad4d04 (diff) | |
download | refined-github-c325ba2031bd10746a854fa0607269b48855ed35.tar.gz refined-github-c325ba2031bd10746a854fa0607269b48855ed35.tar.zst refined-github-c325ba2031bd10746a854fa0607269b48855ed35.zip |
Meta: Bump dependencies and minimum node version (#7047)
Co-authored-by: Federico Brigante <me@fregante.com>
Diffstat (limited to 'source/features/use-first-commit-message-for-new-prs.tsx')
-rw-r--r-- | source/features/use-first-commit-message-for-new-prs.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/use-first-commit-message-for-new-prs.tsx b/source/features/use-first-commit-message-for-new-prs.tsx index 6dff0a3f..e6999604 100644 --- a/source/features/use-first-commit-message-for-new-prs.tsx +++ b/source/features/use-first-commit-message-for-new-prs.tsx @@ -1,7 +1,7 @@ import {$, elementExists} from 'select-dom'; import elementReady from 'element-ready'; import * as pageDetect from 'github-url-detection'; -import * as textFieldEdit from 'text-field-edit'; +import {insertTextIntoField, setFieldText} from 'text-field-edit'; import features from '../feature-manager.js'; import looseParseInt from '../helpers/loose-parse-int.js'; @@ -46,14 +46,14 @@ async function init(): Promise<void | false> { const firstCommit = getFirstCommit(); if (!requestedContent.has('pull_request[title]')) { - textFieldEdit.set( + setFieldText( $('.discussion-topic-header input')!, firstCommit.title, ); } if (firstCommit.body && !requestedContent.has('pull_request[body]')) { - textFieldEdit.insert( + insertTextIntoField( $('#new_pull_request textarea[aria-label="Comment body"]')!, firstCommit.body, ); |