-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1058 from lsst-it/maint/gha
(gha) update workflows to allow branch push or PR
- Loading branch information
Showing
9 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ name: Arborist | |
"on": | ||
- create | ||
- delete | ||
- pull_request | ||
- push | ||
|
||
permissions: | ||
contents: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
--- | ||
name: "Block Merge Commits" | ||
# yamllint disable rule:quoted-strings | ||
name: Block Merge Commits | ||
|
||
"on": "pull_request" | ||
"on": pull_request | ||
|
||
jobs: | ||
message-check: | ||
name: "Block Merge Commits" | ||
name: Block Merge Commits | ||
|
||
runs-on: "ubuntu-latest" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Block Merge Commits" | ||
uses: "Morishiri/[email protected]" | ||
- name: Block Merge Commits | ||
uses: Morishiri/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
--- | ||
name: 'Commit Message Check' | ||
# yamllint disable rule:quoted-strings | ||
name: Commit Message Check | ||
|
||
"on": | ||
- "push" | ||
"on": pull_request | ||
|
||
jobs: | ||
check-commit-message: | ||
name: "Check Commit Message" | ||
runs-on: "ubuntu-latest" | ||
name: Check Commit Message | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check Commit Type" | ||
uses: "gsactions/commit-message-checker@v2" | ||
- name: Check Commit Type | ||
uses: gsactions/commit-message-checker@v2 | ||
with: | ||
pattern: '\([^)]+\) .+$' | ||
flags: "gm" | ||
error: "Your first line has to contain a commit type like '(role/foo)'." | ||
flags: gm | ||
error: Your first line has to contain a commit type like '(role/foo)'. | ||
checkAllCommitMessages: "true" | ||
accessToken: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: "Check Line Length" | ||
uses: "gsactions/commit-message-checker@v2" | ||
- name: Check Line Length | ||
uses: gsactions/commit-message-checker@v2 | ||
with: | ||
pattern: "^(?!.{73})" | ||
error: "The maximum line length of 72 characters is exceeded." | ||
pattern: '^(?!.{73})' | ||
error: The maximum line length of 72 characters is exceeded. | ||
checkAllCommitMessages: "true" | ||
accessToken: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
--- | ||
name: "Pull Request Labels" | ||
# yamllint disable rule:quoted-strings | ||
name: Pull Request Labels | ||
|
||
"on": | ||
pull_request: | ||
types: ["opened", "labeled", "unlabeled", "synchronize"] | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
|
||
jobs: | ||
label: | ||
runs-on: "ubuntu-latest" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: "mheap/github-action-required-labels@v3" | ||
- uses: mheap/github-action-required-labels@v3 | ||
with: | ||
mode: "exactly" | ||
mode: exactly | ||
count: 1 | ||
labels: "enhancement, bug, skip-changelog" | ||
labels: enhancement, bug, skip-changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters