create-upstream-sync-pr-action

Create PR that sync upstream

AGPL-3.0 License

Stars
0
Committers
2

create-upstream-sync-pr-action

GitHub Action to fetch upstream on fork. This creates PR when changes detected.

Inputs

Name Description Required Default
upstream-owner The owner of the upstream repository. If a fork source is detected, it defaults to that. Otherwise, an error occurs if not set. No Fork source or error
upstream-repo The name of the upstream repository. If a fork source is detected, it defaults to that. Otherwise, an error occurs if not set. No Fork source or error
head The branch in the upstream repository to merge from (head). Yes N/A
base The branch in the current repository to merge into (base). Yes N/A
github-token GitHub token for authentication. No ${github.token}

Outputs

Name Description
pr-url The URL of the created Pull Request.

example

example.yml

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant GitHubAction
    participant UpstreamRepo
    participant Logger

    User->>GitHubAction: Trigger Sync Action
    GitHubAction->>Logger: Log Start
    GitHubAction->>UpstreamRepo: Fetch Changes
    alt Changes Found
        GitHubAction->>GitHubAction: Create Pull Request
        GitHubAction->>Logger: Log Success
    else No Changes
        GitHubAction->>Logger: Log No Changes
    end

alternatives

Related Projects