Bibliothek / Code, Git & Entwicklertools
Code, Git & Entwicklertools
n8n-Workflows aus gemergten GitHub-Pull-Requests wiederherstellen
Wenn in GitHub ein Pull Request gemergt wird, ruft es die Commit-Details ab und stellt die geänderten Workflows über die API in n8n wieder her.
Was sie bewirkt
## Setup 1. Connect GitHub: Use the GitHub Trigger node and configure GitHub API credentials. Note: I'd recommended to use *GitHub PAT (Personal Access Token) classic* with repo and admin:repo_hook permission scopes enabled. 2. Connect n8n API: Provide your n8n API credentials in the n8n nodes. - Check this doc 3. Set repository variables: Update github_owner and repo_name in the Define Local Variables node. 4. Enable webhook: Make sure your GitHub repository has a webhook for pull_request events pointing to this workflow.
Die Schritte
- Define Local Variables
- Github Trigger - When there is new pull request
- Check if trigger event is pull request merged
- Fetch merged commit details via GitHub API
- Get files changes details
- Filter modified workflows
- Filter created workflows
- Fetch workflow content from Git
- Fetch workflow content from Git1
- Decode workflow content to json
- Decode workflow content to json1
- Update workflow in n8n
- Create new workflow in n8n
Ähnliche Automatisierungen
Code, Git & Entwicklertoolsn8n-Workflows per Pull Requests auf GitHub sichern22 SchritteCode, Git & EntwicklertoolsGitHub-Pull-Requests mit OpenAI prüfen8 SchritteCode, Git & EntwicklertoolsGitHub-Pull-Requests mit OpenAI prüfen, in Sheets protokollieren20 SchritteCode, Git & EntwicklertoolsUnit-Tests für GitHub-Pull-Requests mit OpenAI generieren20 Schritte