Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadesskey/create-upstream-sync-pr-action
Create PR that sync upstream
https://github.com/nadesskey/create-upstream-sync-pr-action
actions fork sync
Last synced: about 1 month ago
JSON representation
Create PR that sync upstream
- Host: GitHub
- URL: https://github.com/nadesskey/create-upstream-sync-pr-action
- Owner: nadesskey
- License: agpl-3.0
- Created: 2024-08-15T23:34:45.000Z (3 months ago)
- Default Branch: develop
- Last Pushed: 2024-08-17T03:43:28.000Z (3 months ago)
- Last Synced: 2024-09-30T23:23:19.253Z (about 2 months ago)
- Topics: actions, fork, sync
- Language: TypeScript
- Homepage:
- Size: 322 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/nadesskey/create-upstream-sync-pr-action/blob/master/example.yml)## Sequence Diagram(s)
```mermaid
sequenceDiagram
participant User
participant GitHubAction
participant UpstreamRepo
participant LoggerUser->>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
- Bot strategy: https://github.com/wei/pull
- fork-sync: https://github.com/tgymnich/fork-sync?tab=readme-ov-file
- That action source is more functionally
- I did not know it already existed, until I completed the first release
- DIFFERENCES:
- TEST before pr created and don't make PR if changes are conflict
- I think that you should be create new branch and mannualy merge when coflict.
- I have plan to autoclose action's auto-created PR when conflict detected.(Not implement yet.)- Fork-Sync-With-Upstream-action: https://github.com/aormsby/Fork-Sync-With-Upstream-action
- That is not reusable action, just example