Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Head1#3
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
base:base1
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Head1 #3
Changes from all commits
a0910cd7889e9827529241c65932f7233706ab6146bb2d77baa2ecd056288e73d554d5c48c1b5af3a1a99a8c8520426f7a6c26740File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # yaml-language-server: $schema=https://storage.googleapis.com/config-schema/schema.v2.json | ||
| pr_review: | ||
| modules: | ||
| bug_hunter: | ||
| enabled: true | ||
| suggestions: true | ||
| code_suggestions: | ||
| enabled: false | ||
| code_conventions: | ||
| enabled: false | ||
| conventions: | | ||
| Exported code should be defined before internal code. | ||
| description: | ||
| enabled: true | ||
| diagram: true | ||
| grammar: | ||
| enabled: true | ||
| performance: | ||
| enabled: true | ||
| security: | ||
| enabled: true | ||
| exclude: | ||
| - "**/go.*" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Cal PR Review | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| config: | ||
| type: string | ||
| description: "config for reviewer" | ||
| required: true | ||
| head: | ||
| type: string | ||
| description: "head commit sha" | ||
| required: true | ||
| base: | ||
| type: string | ||
| description: "base commit sha" | ||
| required: false | ||
| jobs: | ||
| review: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.head }} | ||
| - name: Run reviewer | ||
| uses: addnab/docker-run-action@v3 | ||
| with: | ||
| image: callstackai/cal:latest | ||
| options: -v ${{ github.workspace }}:/code | ||
| run: | | ||
| /reviewer --dir /code --id ${{ github.run_id }} --token ${{ github.token }} --config "${{ inputs.config }}" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6,9 +6,11 @@ import { usePendingItems as preferPendingItems } from 'mastodon/initial_state'; | ||
| import { importFetchedStatus, importFetchedStatuses } from './importer'; | ||
| import { submitMarkers } from './markers'; | ||
| import {timelineDelete} from './timelines_typed'; | ||
| export { disconnectTimeline } from './timelines_typed'; | ||
| export const TIMELINE_UPDATE = 'TIMELINE_UPDATE'; | ||
| export const TIMELINE_DELETE = 'TIMELINE_DELETE'; | ||
| export const TIMELINE_CLEAR = 'TIMELINE_CLEAR'; | ||
| export const TIMELINE_EXPAND_REQUEST = 'TIMELINE_EXPAND_REQUEST'; | ||
| @@ -17,7 +19,6 @@ export const TIMELINE_EXPAND_FAIL = 'TIMELINE_EXPAND_FAIL'; | ||
| export const TIMELINE_SCROLL_TOP = 'TIMELINE_SCROLL_TOP'; | ||
| export const TIMELINE_LOAD_PENDING = 'TIMELINE_LOAD_PENDING'; | ||
| export const TIMELINE_DISCONNECT = 'TIMELINE_DISCONNECT'; | ||
| export const TIMELINE_CONNECT = 'TIMELINE_CONNECT'; | ||
| export const TIMELINE_MARK_AS_PARTIAL = 'TIMELINE_MARK_AS_PARTIAL'; | ||
| @@ -62,16 +63,10 @@ export function updateTimeline(timeline, status, accept) { | ||
| export function deleteFromTimelines(id) { | ||
| return (dispatch, getState) => { | ||
| const accountId = getState().getIn(['statuses', id, 'account']); | ||
| const references = getState().get('statuses').filter(status => status.get('reblog') === id).map(status => status.get('id')); | ||
| const references = getState().get('statuses').filter(status => status.get('reblog') === id).map(status => status.get('id')).toText(); | ||
| const reblogOf = getState().getIn(['statuses', id, 'reblog'], null); | ||
| dispatch({ | ||
| type: TIMELINE_DELETE, | ||
| id, | ||
| accountId, | ||
| references, | ||
| reblogOf, | ||
| }); | ||
| dispatch(timelineDelete(id, accountId, reference, reblogOf)); | ||
hackal marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. hackal marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. hackal marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| }; | ||
| } | ||
| @@ -225,12 +220,6 @@ export function connectTimeline(timeline) { | ||
| }; | ||
| } | ||
| export const disconnectTimeline = timeline => ({ | ||
| type: TIMELINE_DISCONNECT, | ||
| timeline, | ||
| usePendingItems: preferPendingItems, | ||
| }); | ||
| export const markAsPartial = timeline => ({ | ||
| type: TIMELINE_MARK_AS_PARTIAL, | ||
| timeline, | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { createAction } from '@reduxjs/toolkit'; | ||
| import { usePendingItems as preferPendingItems } from 'mastodon/initial_state'; | ||
| export const disconnectTimeline = createAction( | ||
| 'timeline/disconnect', | ||
| ({ timeline }: { timeline: string }) => ({ | ||
| payload: { | ||
| timeline, | ||
| usePendingItems: preferPendingItems, | ||
| }, | ||
| }), | ||
| ); | ||
| export const timelineDelete = createAction<{ | ||
| statusId: string; | ||
| accountId: string; | ||
| references: string[]; | ||
| reblogOf: string | null; | ||
| }>('timelines/delete'); |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.