Commit Graph

40 Commits

Author SHA1 Message Date
Antoine Leblanc
fe22aa5407 ci: improve hlint messages
GitOrigin-RevId: 7547c2a08161989885b4e6c382c1e42cec809857
2021-05-04 21:52:55 +00:00
Praveen Durairaju
0ff26100bf update docs link to avoid redirects
GitOrigin-RevId: 1f2a1d21bfb9b2908d56305fa2dfb69270deafdf
2021-03-01 18:51:18 +00:00
Vishnu Bharathi
9e6f878440 ci: removes shadow-pr github workflow
GitOrigin-RevId: a831b3d5fb0d398faf39b327617a70ee37e618f4
2021-02-04 11:34:06 +00:00
Vishnu Bharathi
4004789106 ci: use envs instead of templating
GitOrigin-RevId: 7f83e62073a5e2ac77c06760f383a2c2c9c43098
2021-02-02 06:22:59 +00:00
Antoine Leblanc
6494229f54 server: generalize functions (#393)
Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
GitOrigin-RevId: 5d2140152a2a18601c785ea80a7689cbe3bd277e
2021-01-25 10:13:54 +00:00
Antoine Leblanc
591db631ea ci: run stylish haskell on all incoming PRs
### Description

This PR adds two new github actions: one in the OSS repo, one in the monorepo. The OSS action runs `stylish-haskell` on all files touched by the PR, and displays a warning for each file that was in need of a formatting. The monorepo action does the same thing, with a twist: if the branch is not a shadow copy of an OSS branch, we assume that it is a local branch, and simply push a new commit with the changes.

Furthermore, this PR upgrades our stylish-haskell config to add record formatting, as close as possible to our styleguide.

Both actions use the standard stylish-haskell, not our modified fork.

### Known limitation

The monorepo action does not handle forks: pushing to the branch will fail, and checking the branch out might fail too. This is probably acceptable since we don't use forks with the monorepo, but it wouldn't be hard to handle that gracefully.

GitOrigin-RevId: 814138c5b9826098e2e4ea192778fc0d93fbe390
2021-01-21 23:37:26 +00:00
Antoine Leblanc
3f87d9e886 ci: hlint suggestions do not mark the check as failed
Instead of using hlint's return value to determine whether the check was successful, we parse the output to see if there was any error. In practice, that means that hlint suggestions, which are translated as warnings on a pr, will no longer mark the check as failed.

GitOrigin-RevId: dff2a50180de0c5f0702a9799b1f6359499da6a5
2021-01-20 17:50:50 +00:00
Vishnu Bharathi
64a0a14fe2 includes deleted files while migrating OSS PR
GitOrigin-RevId: 91bfc73887b505c8654d0acfd528ec47b2147034
2020-12-23 06:00:17 +00:00
Vishnu Bharathi P
4ff84756ca uses event instead of input in shadow pr github action
GitOrigin-RevId: ccb772dc16d22e9a47da25f14d7f3a4f3eb445c7
2020-12-22 04:15:09 +00:00
Vishnu Bharathi
2f22e571e2 fixes permissions in shadow pr github action
GitOrigin-RevId: 6f6a4bab86c21e190c5b742ef9cb3118a186bf24
2020-12-22 03:23:21 +00:00
hasura-bot
05ccbff1ec Uses fallback migration logic for shadowing PRs
Co-authored-by: Vishnu Bharathi P <vishnubharathi04@gmail.com>
GITHUB_PR_NUMBER: 6378
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6378

Co-authored-by: Vishnu Bharathi P <vishnubharathi04@gmail.com>
GitOrigin-RevId: 1db14333fa4f81ea7845846e9f20f6a89b3805d0
2020-12-22 02:48:58 +00:00
hasura-bot
920c6ea427 ci: add hlint escape hatch (#71)
* ci: add hlint escape hatch

Co-authored-by: Antoine Leblanc <antoine@hasura.io>
GITHUB_PR_NUMBER: 6164
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6164

* Applied changes to new workflow files.

* Add missing label trigger for lint worklow

Co-authored-by: Antoine Leblanc <antoine@hasura.io>
GitOrigin-RevId: 3e22c301a9412f7f77978b35f29c38c7876ac13f
2020-12-07 12:10:38 +00:00
Vishnu Bharathi P
06ab0e537b [skip ci] adds name for shadow pr github action
Co-authored-by: Vishnu Bharathi P <vishnubharathi04@gmail.com>
GITHUB_PR_NUMBER: 6250
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6250
GitOrigin-RevId: 3f7cc8dd834d81cf465d4b33feff49c8714aa18a
2020-11-25 05:15:57 +00:00
hasura-bot
d9821b85f2 [skip ci] adds a github action to shadow pull requests
* [skip ci] adds a github action to shadow pull requests

Co-authored-by: Vishnu Bharathi P <vishnubharathi04@gmail.com>
GITHUB_PR_NUMBER: 6201
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6201

* uses setOutput instead of setting environment variable

Co-authored-by: Vishnu Bharathi P <vishnubharathi04@gmail.com>
GitOrigin-RevId: 6897541d2377e8442839ec869a4d21d9f74c5f08
2020-11-25 04:59:42 +00:00
Auke Booij
33eb0fbcbb
server: avoid running hlint on an empty list of files (#6087) 2020-10-28 16:41:04 +01:00
Auke Booij
8d0afb6f92
server: SQL that grows (#6003)
Add a backend type extension parameter to some RQL types, following the ideas of the paper "Trees that grow" (Najd & Jones 2016)

Co-authored-by: Antoine Leblanc <antoine@hasura.io>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-22 22:42:27 +02:00
Auke Booij
a4113eb9a6
add hlint config, run hlint through a github action, add to dev.sh (#5957)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-16 13:55:18 +02:00
Aleksandra Sikora
547e658b6d
console: replace remote schema url in tests (#5011)
* console: replace remote schema url

* Rename lint to console lint
2020-06-08 17:45:43 +05:30
Aleksandra Sikora
45c8699e23
console: dependencies cleanup (#4705) 2020-06-02 13:44:45 +05:30
Tirumarai Selvan
d9a51fede5
add no-changelog-required note to PR template (#4933) 2020-05-29 17:02:07 +05:30
Aleksandra Sikora
41b3be82fb
workflow: add lint and format action for console (#4501) 2020-05-29 16:45:43 +05:30
Alexis King
4698f054e0
gh: make all hge-server team members code owners (#4361) 2020-04-10 07:30:40 +05:30
Shahidh K Muhammed
a6491e337b
fix codeowners file (#4223) 2020-03-30 13:24:15 +05:30
Shahidh K Muhammed
5bc95d2b7a
add workflow automations, update changelog (#4079)
Co-authored-by: Aravind Shankar <aravind@hasura.io>
2020-03-29 12:01:30 +05:30
Shahidh K Muhammed
cba773fdc7
fix syntax error in codeowners file (#4006) 2020-03-03 14:28:16 +05:30
Shahidh K Muhammed
da54244115
add changelog file to the repo and update pr template (#3946)
* add changelog file to the repo and update pr template

* update codeowner for changelog file

* Update PULL_REQUEST_TEMPLATE.md

* Update CHANGELOG.md

Co-authored-by: Tirumarai Selvan <tirumarai.selvan@gmail.com>
2020-03-02 16:09:56 +05:30
Praveen Durairaju
865b150c82
noop: replace subdomain links with subpath (#3869)
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
2020-02-27 15:43:07 +05:30
Rikin Kachhia
87e97dfda7
update console codeowner (#3832)
[skip ci]
2020-02-05 15:19:10 +05:30
Rikin Kachhia
445061b99f rearrange PR template sections (#3592)
The current PR template has the server checklist above the Steps to verify and Limitations section. For non-server PRs this makes it very easy to miss adding and reading the content of those sections as the server checklist is huge and not relevant
2019-12-26 11:56:28 +05:30
Rakesh Emmadi
6daa1bb330 update pr template with server breaking changes checklist (#2932) 2019-10-26 09:54:20 +05:30
Shahidh K Muhammed
3f088cd7ac
remove generic rule from codeowners 2019-10-10 20:15:13 +05:30
Shahidh K Muhammed
e275142c63 Revert "change console codeowner"
This reverts commit 298d5f96c7.
2019-09-16 14:22:43 +05:30
Shahidh K Muhammed
298d5f96c7
change console codeowner 2019-08-28 14:15:39 +05:30
Shahidh K Muhammed
b32cfc7d28
change code owner for server 2019-07-23 14:43:08 +05:30
Shahidh K Muhammed
510d854e91
update code owner for docs 2019-07-08 11:42:31 +05:30
Shahidh K Muhammed
a5b4c5ffd6
change console code-owner to rikinsk 2019-03-08 11:24:09 +05:30
Shahidh K Muhammed
1be8faebea
update pull request template (#1672) 2019-02-27 16:56:31 +05:30
Shahidh K Muhammed
a25099427f
Create CODEOWNERS file (#1565)
This will automatically request reviews from owners https://help.github.com/articles/about-code-owners/
2019-02-06 11:13:35 +05:30
Arpit Kushwaha
0a43d53ab9 update pull request template (#532)
add build system to the checklists in pr_template, moved test as a checkbox
2018-09-26 18:01:37 +05:30
Arpit Kushwaha
a5ebd5a1c0 add pull request template and new demo gif (close #473) (#488) 2018-09-20 09:54:05 +05:30