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

feat(ci): Add workflow to validate PR title #730

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

phated
Copy link
Contributor

@phated phated commented Feb 1, 2023

Related issue(s)

N/A

Description

This is a follow on to #717 that adds a PR title validation to CI. This should help to ensure we don't accidentally merge a PR with the wrong message when used in conjunction with these github settings:
Screenshot 2023-02-01 at 12 57 39 PM

While not perfect, it'll catch our common mistakes.

Summary of changes

Adds the CI action that happens on pull_request or pull_request_target using only pull-request: read permissions which will check the PR title is valid or fail a check.

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Additional context

@phated phated changed the title feat(ci): Add workflow to validate PR title invalid(ci): Add workflow to validate PR title Feb 1, 2023
@phated phated changed the title invalid(ci): Add workflow to validate PR title Add workflow to validate PR title Feb 1, 2023
@phated phated changed the title Add workflow to validate PR title feat(ci): Add workflow to validate PR title Feb 1, 2023
@phated
Copy link
Contributor Author

phated commented Feb 1, 2023

Y'all can try changing the title to see how the PR title lint action works.

@kevaundray kevaundray changed the title feat(ci): Add workflow to validate PR title feat(ci) : Add workflow to validate PR title Feb 3, 2023
@kevaundray kevaundray changed the title feat(ci) : Add workflow to validate PR title feat(ci): Add workflow to validate PR title Feb 3, 2023
@kevaundray
Copy link
Contributor

From conversation with @phated: Will need to add this in the branch protection settings

Base automatically changed from phated/release-process to master February 3, 2023 20:17
@phated phated merged commit e5e8542 into master Feb 3, 2023
@phated phated deleted the phated/pr-title-check branch February 3, 2023 20:40
TomAFrench added a commit to TomAFrench/noir that referenced this pull request Feb 3, 2023
* master:
  feat(nargo): Add `nargo test` command to run all unit tests (noir-lang#728)
  chore(ci): Apply `doc needed` label automatically on PRs (noir-lang#733)
  chore(ci): Remove failing bors workflow (noir-lang#744)
  feat(ci): Add workflow to validate PR title (noir-lang#730)
  feat(docs): Introduce Conventional Commits & release process docs (noir-lang#717)
TomAFrench added a commit that referenced this pull request Feb 3, 2023
* master:
  feat(nargo): Add `nargo test` command to run all unit tests (#728)
  chore(ci): Apply `doc needed` label automatically on PRs (#733)
  chore(ci): Remove failing bors workflow (#744)
  feat(ci): Add workflow to validate PR title (#730)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants