googleapis / release-please-action

automated releases based on conventional commits
Apache License 2.0
1.7k stars 209 forks source link

Trigger action while inside PR without Merging #875

Closed dinjazelena closed 11 months ago

dinjazelena commented 11 months ago

TL;DR

Hey, so i am trying to make a pre-release while in feature branch without needing to merge branch. Something like this:

on:
  workflow_dispatch

I wanna release-please action to create pre-release while i am in feature branch without merging it. Something like this:

permissions:
  contents: write
  pull-requests: write

name: release-please

jobs:
  release-please:
    runs-on: 
    container: 
    steps:
      - uses: google-github-actions/release-please-action@v3
        with:
          release-type: python
          package-name: niander
          default-branch: AAU-1234
          prerelease: true

But nothing really happens... What am i missing here?

Detailed design

No response

Additional information

✔ Looking for latest release on branch: AAU-1234 with prefix: niander
❯ Fetching merge commits on branch AAU-1234 with cursor: undefined
⚠ pullRequestTitlePattern miss the part of '${scope}'
⚠ pullRequestTitlePattern miss the part of '${scope}'
❯ Found latest release pull request: 7 version: 0.1.0
❯ Fetching releases with cursor undefined
❯ found release for niander Version {
  major: 0,
  minor: 1,
  patch: 0,
  preRelease: undefined,
  build: undefined
}
❯ found 2 possible releases. [
  Version {
    major: 0,
    minor: 1,
    patch: 0,
    preRelease: undefined,
    build: undefined
  },
  Version {
    major: 0,
    minor: 1,
    patch: 0,
    preRelease: undefined,
    build: undefined
  }
]
✔ Building releases
✔ Building strategies by path
❯ .: python
✔ Looking for latest release on branch: AAU-1234 with prefix: niander
❯ Fetching merge commits on branch AAU-1234 with cursor: undefined
⚠ pullRequestTitlePattern miss the part of '${scope}'
⚠ pullRequestTitlePattern miss the part of '${scope}'
❯ Found latest release pull request: 7 version: 0.1.0
❯ Fetching releases with cursor undefined
❯ found release for niander Version {
  major: 0,
  minor: 1,
  patch: 0,
  preRelease: undefined,
  build: undefined
}
❯ found 2 possible releases. [
  Version {
    major: 0,
    minor: 1,
    patch: 0,
    preRelease: undefined,
    build: undefined
  },
  Version {
    major: 0,
    minor: 1,
    patch: 0,
    preRelease: undefined,
    build: undefined
  }
]
✔ Building pull requests
✔ Building strategies by path
❯ .: python
✔ Collecting release commit SHAs
❯ release search depth: 400
❯ Fetching releases with cursor undefined
❯ Found release for path ., v0.1.0
❯ release for path: ., version: 0.1.0, sha: 10e4e6f90b95c30de71595dc42d7266263f52f05
✔ Collecting commits since all latest releases
❯ commit search depth: 500
❯ Set(1) { '10e4e6f90b95c30de71595dc42d7266263f52f05' }
❯ Fetching merge commits on branch AAU-1234 with cursor: undefined
❯ Backfilling file list for commit: 73ceb742d084f96d930956ae88691463524802b8
❯ Found 1 files
❯ Backfilling file list for commit: 7d2568d36909545bdd778ae8e[21](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:22)790c8ccc98611
❯ Found 1 files
❯ Backfilling file list for commit: 4bde1299cef9899e72511f25970e2127[23](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:24)eb9ef7
❯ Found 1 files
❯ Backfilling file list for commit: 3bb3aa3e968dc4618a636c9797640f118f6a4dc3
❯ Found 1 files
❯ Backfilling file list for commit: e4134148df079c84b66981af13d711a198123ce2
❯ Found 1 files
❯ Backfilling file list for commit: f0175fb9c7863160d2335bbe6780ca0114f109f9
❯ Found 3 files
❯ Backfilling file list for commit: 363dd05fee3a8e1846e1775fa5f0611de8ba8847
❯ Found 1 files
❯ Backfilling file list for commit: 2599a4dbc42cad979aed2d1a09f9eb016c66319c
❯ Found 1 files
❯ Backfilling file list for commit: 2fe9cac81cf7b82e9[24](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:25)bee745f02a0f9a0f92142
❯ Found 1 files
❯ Backfilling file list for commit: 610a49c[25](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:26)290ef03debbf70f[27](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:28)ad74c02ace8a13
❯ Found 1 files
❯ Backfilling file list for commit: 4197b215b38824e56385395[28](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:29)2a0a52d9a4ff188
❯ Found 1 files
❯ Backfilling file list for commit: b4c3f1e4779d5a7517543a0c802cf0e7ac88b248
❯ Found 2 files
❯ Backfilling file list for commit: 82cca0e4a5ec4c776b51bcc604c9added90125f6
❯ Found 5 files
❯ Backfilling file list for commit: 47ca2eec69bc01fbec17055e6a06fcdf752db033
❯ Found 4 files
✔ Splitting 2 commits by path
✔ Building candidate release pull request for path: .
❯ type: python
❯ targetBranch: AAU-1234
❯ commit could not be parsed: 73ceb742d084f96d9[30](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:31)956ae8869146[35](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:36)24802b8 Update README.md
❯ commit could not be parsed: 7d2568d[36](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:37)9095[45](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:46)bdd778ae8e21790c8ccc98[61](https://code.rbi.tech/raiffeisen/niander/actions/runs/1108829/job/4108256#step:3:62)1 a
❯ commits: 0
✔ Considering: 0 commits
✔ No commits for path: ., skipping

No response

chingor13 commented 11 months ago

When release-please is looking through your history, it's not seeing commits that match the conventional commits spec. It looks at commits on your release branch since the last detected release which looks like version 0.1.0 at 10e4e6f90b95c30de71595dc42d7266263f52f05.

It won't propose a new release until it sees a releaseable commit (e.g. fix: or feat:)