chore: clean up some workflows and templates (#24542)
This commit is contained in:
parent
2e7bed9e72
commit
c2e66d630f
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
15
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -10,7 +10,8 @@ are the most critical to review. -->
|
||||
## Author Checklist
|
||||
|
||||
*All items are required. Please add a note to the item if the item is not applicable and
|
||||
please add links to any relevant follow up issues.*
|
||||
please add links to any relevant follow up issues. Your PR will not be merged unless you satisfy
|
||||
all of these items.*
|
||||
|
||||
I have...
|
||||
|
||||
@ -35,15 +36,3 @@ I have...
|
||||
* [ ] updated the relevant documentation or specification, including comments for [documenting Go code](https://blog.golang.org/godoc)
|
||||
* [ ] confirmed all CI checks have passed
|
||||
|
||||
## Reviewers Checklist
|
||||
|
||||
*All items are required. Please add a note if the item is not applicable and please add
|
||||
your handle next to the items reviewed if you only reviewed selected items.*
|
||||
|
||||
Please see [Pull Request Reviewer section in the contributing guide](../CONTRIBUTING.md#reviewer) for more information on how to review a pull request.
|
||||
|
||||
I have...
|
||||
|
||||
* [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
|
||||
* [ ] confirmed all author checklist items have been addressed
|
||||
* [ ] reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage
|
||||
|
||||
38
.github/PULL_REQUEST_TEMPLATE/docs.md
vendored
38
.github/PULL_REQUEST_TEMPLATE/docs.md
vendored
@ -1,38 +0,0 @@
|
||||
## Description
|
||||
|
||||
Closes: #XXXX
|
||||
|
||||
<!-- Add a description of the changes that this PR introduces and the files that
|
||||
are the most critical to review. -->
|
||||
|
||||
<!-- Pull requests that sit inactive for longer than 30 days will be closed. -->
|
||||
---
|
||||
|
||||
### Author Checklist
|
||||
|
||||
*All items are required. Please add a note to the item if the item is not applicable and
|
||||
please add links to any relevant follow up issues.*
|
||||
|
||||
I have...
|
||||
|
||||
- [ ] included the correct `docs:` prefix in the PR title
|
||||
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
|
||||
- [ ] provided a link to the relevant issue or specification
|
||||
- [ ] followed the [documentation writing guidelines](https://github.com/cosmos/cosmos-sdk/blob/main/docs/DOC_WRITING_GUIDELINES.md)
|
||||
- [ ] reviewed "Files changed" and left comments if necessary
|
||||
- [ ] confirmed all CI checks have passed
|
||||
|
||||
### Reviewers Checklist
|
||||
|
||||
*All items are required. Please add a note if the item is not applicable and please add
|
||||
your handle next to the items reviewed if you only reviewed selected items.*
|
||||
|
||||
I have...
|
||||
|
||||
- [ ] confirmed the correct `docs:` prefix in the PR title
|
||||
- [ ] confirmed all author checklist items have been addressed
|
||||
- [ ] confirmed that this PR only changes documentation
|
||||
- [ ] reviewed content for consistency
|
||||
- [ ] reviewed content for thoroughness
|
||||
- [ ] reviewed content for spelling and grammar
|
||||
- [ ] tested instructions (if applicable)
|
||||
32
.github/PULL_REQUEST_TEMPLATE/other.md
vendored
32
.github/PULL_REQUEST_TEMPLATE/other.md
vendored
@ -1,32 +0,0 @@
|
||||
## Description
|
||||
|
||||
Closes: #XXXX
|
||||
|
||||
<!-- Add a description of the changes that this PR introduces and the files that
|
||||
are the most critical to review. -->
|
||||
|
||||
---
|
||||
|
||||
### Author Checklist
|
||||
|
||||
*All items are required. Please add a note to the item if the item is not applicable and
|
||||
please add links to any relevant follow up issues.*
|
||||
|
||||
I have...
|
||||
|
||||
- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
|
||||
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
|
||||
- [ ] provided a link to the relevant issue or specification
|
||||
- [ ] reviewed "Files changed" and left comments if necessary
|
||||
- [ ] confirmed all CI checks have passed
|
||||
|
||||
### Reviewers Checklist
|
||||
|
||||
*All items are required. Please add a note if the item is not applicable and please add
|
||||
your handle next to the items reviewed if you only reviewed selected items.*
|
||||
|
||||
I have...
|
||||
|
||||
- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
|
||||
- [ ] confirmed all author checklist items have been addressed
|
||||
- [ ] confirmed that this PR does not change production code
|
||||
36
.github/actions/last-workflow-status/action.yaml
vendored
36
.github/actions/last-workflow-status/action.yaml
vendored
@ -1,36 +0,0 @@
|
||||
# from https://github.com/MercymeIlya/last-workflow-status with fixes
|
||||
name: "Get status of last workflow"
|
||||
description: "Get conclusion of last workflow run on current branch."
|
||||
branding:
|
||||
icon: "arrow-left"
|
||||
color: "yellow"
|
||||
inputs:
|
||||
github_token:
|
||||
description: Secret GitHub API token to use for making API requests.
|
||||
default: ${{ github.token }}
|
||||
required: true
|
||||
outputs:
|
||||
last_status:
|
||||
description: "Conclusion of last workflow run on current branch"
|
||||
value: ${{ steps.last_status.outputs.last_status }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Get workflow id
|
||||
shell: bash
|
||||
run: |
|
||||
WORKFLOW_ID=$(curl --header 'authorization: Bearer ${{ inputs.github_token }}' \
|
||||
--header 'content-type: application/json' \
|
||||
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }} | jq -r .workflow_id)
|
||||
echo "WORKFLOW_ID=$WORKFLOW_ID" >> $GITHUB_ENV
|
||||
echo "Workflow id: ${WORKFLOW_ID}"
|
||||
- name: Get previous build status
|
||||
shell: bash
|
||||
id: last_status
|
||||
run: |
|
||||
last_status=$(curl --silent --header 'authorization: Bearer ${{ inputs.github_token }}' \
|
||||
--header 'content-type: application/json' \
|
||||
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/${{ env.WORKFLOW_ID }}/runs?per_page=1&status=completed&branch=${{ env.GITHUB_HEAD_REF }}" \
|
||||
| jq -r .workflow_runs[0].conclusion)
|
||||
echo "Status of the previous build: $last_status"
|
||||
echo "::set-output name=last_status::${last_status}"
|
||||
2
.github/codeql/config.yml
vendored
2
.github/codeql/config.yml
vendored
@ -8,4 +8,4 @@ paths-ignore:
|
||||
- api
|
||||
- '**/*_test.go'
|
||||
- '**/*.pulsar.go'
|
||||
- '**/*.pb.gp'
|
||||
- '**/*.pb.go'
|
||||
|
||||
26
.github/workflows/stale.yml
vendored
26
.github/workflows/stale.yml
vendored
@ -1,26 +0,0 @@
|
||||
name: "Close stale issues & pull requests"
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write # for actions/stale to close stale issues
|
||||
pull-requests: write # for actions/stale to close stale PRs
|
||||
runs-on: depot-ubuntu-22.04-4
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-pr-message: "This pull request has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions."
|
||||
days-before-stale: -1
|
||||
days-before-close: -1
|
||||
days-before-pr-stale: 30
|
||||
days-before-pr-close: 4
|
||||
exempt-pr-labels: "pinned, security, proposal, blocked"
|
||||
Loading…
Reference in New Issue
Block a user