Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include source commit message in deploy commit message #994

Open
JamesIves opened this issue Jan 7, 2022 Discussed in #993 · 1 comment
Open

Include source commit message in deploy commit message #994

JamesIves opened this issue Jan 7, 2022 Discussed in #993 · 1 comment
Labels
feature request ✨ New feature or request planned 🕘 This feature is planned.
Milestone

Comments

@JamesIves
Copy link
Owner

Discussed in #993

Originally posted by curiousdannii January 7, 2022
I'd like to be able to include the source commit's message (or the first line at least) in the deploy commit message, so that it says something like

Deploying to gh-pages from @ 84666d3 🚀 Catch errors for uploaded files, fixes #108

I see that there is a commit-message config option, but the docs don't really explain how to use it, so I'm not sure if this sort of customisation would be possible already, or if it would need changes to the action.

@JamesIves JamesIves added feature request ✨ New feature or request planned 🕘 This feature is planned. labels Jan 7, 2022
@JamesIves JamesIves added this to the 4.3.0 milestone Jan 7, 2022
@JamesIves JamesIves modified the milestones: 4.3.0, 4.4.0 Apr 5, 2022
@dhimmel
Copy link

dhimmel commented Feb 14, 2023

I don't think including the source commit title in the default deploy commit message is good, but +1 to docs that show users how to do this.

In related-sciences/nxontology-data@4b118f0, I made a custom commit message like:

      with:
        commit-message: |
          Export ${{ github.event.inputs.source }}
          
          Ontology generated from source code at ${{ github.sha }}.
          Run in https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
          Triggered by @${{ github.actor }}.

Unlikely to have a one size fits all solution by default, but examples are nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request ✨ New feature or request planned 🕘 This feature is planned.
Projects
None yet
Development

No branches or pull requests

2 participants