【发布时间】:2022-02-23 00:33:24
【问题描述】:
我正试图让它发挥这个作用,但在触发 peter-evans PR 之前,我也很困惑它之间缺少什么。
该场景非常简单,我喜欢在任何 feature/* 分支上进行推送,以自动创建 PR,但相反,我遇到了奇怪的场景,其中开发更改应用在 feature/* 分支之上。有人可以给我一些提示吗?
name: Pull Request Action
on:
push:
branches:
- feature/*
jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: develop
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.10.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Simple demo
title: '[Example] Simple demo'
body: >
This PR is auto-generated by
[create-pull-request](https://github.com/peter-evans/create-pull-request).
labels: feature, automated pr
branch: feature/workflow-demo
【问题讨论】:
标签: github github-actions pull-request