Skip to content

Add flag to use git commit instead of GitHub API #2

@alambike

Description

@alambike

Motivation

For performance needs we should have a flag to don't use the GitHub API to create the commits and push, and use the git commands instead, to commit in the name of an GitHub App:

Important

This method will not sign the commits

  1. configure git taking into account the recommended Email format for correct identification of GitHub apps
    1.1 Get the GitHub app user id from https://api.github.com/users/josh-issueops-bot[bot]
    1.2 Configure git
git config user.name josh-issueops-bot[bot]
git config user.email 149130343+josh-issueops-bot[bot]@users.noreply.github.com
  1. Add files modified / deleted and commit
git add -A
git commit --allow-empty -m "commit message"
  1. Push commit
git push --force origin HEAD:<branch_name>

Acceptance criteria

  • New --use-git flag to force usage of git intead of GitHub API to create and push the commit

Metadata

Metadata

Labels

featureFeature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions