Refactor Notion WebHook and add user parameter#6
Open
JackBlaze132 wants to merge 15 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request makes significant changes to the GitHub Action that syncs commit data to Notion. The main focus is on simplifying the workflow, removing unused features, and improving the mapping of commit data to Notion database columns. The workflow file is cleaned up, unnecessary input options and code for file listing are removed, and a new field for commit user is added.
Workflow and configuration changes:
.github/workflows/main.ymlworkflow file is removed, eliminating the previous workflow that triggered on pushes and called the Notion sync action.action.ymlfile is updated to add a newcommit_userinput for mapping the committer to a Notion column, and to remove thefiles_formatandtokeninputs, simplifying the action's configuration. [1] [2]Codebase simplification and feature removal:
index.jsfile is refactored to:commit_userinput.These changes streamline the action, focusing it on syncing core commit metadata (including the new committer/user field) to Notion, and remove complexity related to file change tracking.