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

Update .gitignore #3

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/assign_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: "assign project"

on:
issues:
types: [opened]
types:
- opened

jobs:
assign-project:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- develop
- feature/*
tags:
- v*

Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/lint_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "lint pr"

on:
pull_request:
types:
- opened

jobs:

lint:
runs-on: ubuntu-latest
steps:

- name: Check linked issue
id: linked-issues
uses: nearform-actions/github-action-check-linked-issues@v1
continue-on-error: true
with:
comment: 0

- name: Check mentioned issue
id: mentioned-issues
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const pattern1 = /(^|\s)(#|gh-|roc-streaming/[\w-]+#)\d+($|\s)/i;
const pattern2 = /(^|\s)https?://github.com/roc-streaming/[\w-]+/issues/\d+($|\s)/i;
const body = github.context.payload.pull_request.body;
return pattern1.test(body) || pattern2.test(body);

- name: Post Comment
if: |
steps.linked-issues.outputs.linked_issues_count == 0 &&
steps.mentioned-issues.outputs.result == false
uses: actions/github-script@v6
with:
script: |
github.issues.createComment({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
issue_number: github.context.payload.pull_request.number,
body: 'Test comment.'
})
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# build results
# build resultsx
/bin
/build
/docs/html
Expand Down
Loading